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

Adjust Creature sprite naming conventions #777

Open
nightm4re94 opened this issue Jan 8, 2023 · 0 comments
Open

Adjust Creature sprite naming conventions #777

nightm4re94 opened this issue Jan 8, 2023 · 0 comments

Comments

@nightm4re94
Copy link
Member

nightm4re94 commented Jan 8, 2023

Instead of creature-walk-right.png, use creature-move-right.png for automatic animationcontroller initialization.
Moving is a more generic name that applies also to creatures without legs.

Furthermore, determining the sprite states and directions by splitting spritesheet names at '-' characters is super prone to errors and doesn't allow you to deviate from the order at all. You can't, for example, call a sprite 'spaceship1-yellow-idle' because the 'yellow' part is then interpreted as sprite state. Use RegEx to determine sprite states and directions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant