focused on expanding the system into a full animation framework.
Instead of using one image, I implemented a sprite sheet loader that splits images into multiple frames. This allows the character to animate smoothly while running, jumping, and idling.
A major improvement in this session was introducing direction-based sprite flipping, which means the same animation can be reused for left and right movement without duplicating assets.
I also started restructuring the Player class so that animation is handled separately from movement logic. This makes the code much more scalable for future additions like enemies and traps.
Problems Encountered
Problem 1: Sprite sheets not splitting correctly
At first, animations were broken because frames were not being sliced properly.
Cause:
Incorrect calculation of sprite width division.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.