Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ducks and building rotation #1411

Merged
merged 3 commits into from
May 24, 2024
Merged

Fix ducks and building rotation #1411

merged 3 commits into from
May 24, 2024

Conversation

JackPlaymint
Copy link
Contributor

This PR rotates the duck roofs on both the factory buildings and the duck counter buildings so that the face the same direction as the building itself.

It also adjusts how dynamically placed buildings are rotated so that they show off both of their detailed sides

@JackPlaymint JackPlaymint self-assigned this May 24, 2024
@@ -75,7 +75,8 @@ export const Buildings = memo(
const coords = getCoords(b.location.tile);
const height = getTileHeightFromCoords(coords);
const selected = selectedElementID === b.id ? 'outline' : 'none';
const rotation = b.facingDirection == FacingDirectionKind.RIGHT ? -30 : 30;
console.log(b);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stray console.log 👁️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oopsy Poopsy!

Comment on lines +1 to +13
{
"useBuildCacheServer": false,
"cacheServerHost": "",
"cacheServerPort": 8126,
"threadedArchiving": true,
"logCacheMiss": false,
"slimWriteResults": true,
"maximumCacheSize": 20,
"useDetailedBuildLog": false,
"useV2Hasher": true,
"fileIDHashSeed": 0,
"prefabPackedHeaderSize": 2
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to commit this? ... seems unrelated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not mean to commit this... I also don't know what it is 🤔. It may be a left over from playing with the rendering. I'll remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooookay... turns out it's auto-generated and will appear after a build forever, so I guess we need it. It's also been added in the Graphics update PR I made.

Copy link
Contributor

@chrisfarms chrisfarms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dunno if that ScriptableBuildPipeline things should be .gitignored or not ... but will leave it up to you

@ldunnplaymint
Copy link
Contributor

ldunnplaymint commented May 24, 2024

Id gitignore it, easier to remove from the list later than to add it and make sure everyone's local copies get the message!

@ldunnplaymint ldunnplaymint merged commit ac4cd4b into main May 24, 2024
3 checks passed
@ldunnplaymint ldunnplaymint deleted the rotations-fix branch May 24, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ducks never face right (also building rotations may be wrong still)
3 participants