The downloaded character art looked good, but the figures were so small in the game that I could barely recognize them. Aurha also walked while facing the wrong way. Seeing those problems in a playtest changed the question from how to generate an image to how to make that image work as a character.
This was Warloop: Echoes of Solmara, a dark-fantasy 2D prototype based on a game-design document from a collaborator. I worked with Claude Code on phased implementation in TypeScript and Phaser, including generated character art and animations from Ludo.ai.
The prototype reached game scenes with those assets in use. It also left concrete problems to fix, from sprite geometry to bosses I could not find in later levels.
The image has to survive the move into the game
I cared about the art from the beginning and asked for a plan for high-quality assets. Aurha, the player character, became a visual reference for later characters. The intended look was detailed 2D dark fantasy, not pixel art.
A downloaded image and an in-game character need different checks. In the playtest, the images had good quality but the displayed characters were tiny. I asked to invert Aurha's facing direction, and at one point adjusted a boss's height manually.
Phaser reads a spritesheet as a set of animation frames. BootScene loads it with explicit frame dimensions and creates named animation sequences. Displaying it also requires a useful scale, the correct facing direction and a collision body that fits the character.
The development notes record frame-layout problems and body offsets after resolution changes. A successful generation request and a passing build could not establish whether the character looked or behaved correctly in a scene.
A defeated boss should stay defeated when the scene changes
Another problem sat between game state and animation. The boss code waited for a 1,500 ms visual death effect to finish before reporting the defeat. If the player died during that interval, a scene restart could cancel the effect. The completion callback would not run, so the defeat could be lost.
The revised BaseBoss.die() records the defeat first. It marks the boss dead, stops movement, disables collision, creates rewards and emits boss-defeated. Then it starts the visual effect. The final callback only destroys the sprite.
Defeat is recorded before the 1,500ms fade
- 01isAlive = falseIgnore a second defeat call
- 02Disable bodyStop movement and collisions
- 03boss-defeatedCreate rewards and emit the event
- 04Fade, destroyThe callback only removes the sprite
The early dead-state check also prevents the same defeat being processed twice. The important state change no longer depends on the screen staying active until the effect finishes.
ZoneScene has related lifecycle work: reset the enemy list and boss reference when a scene starts, and remove the player-death and shadow-defeat listeners when it shuts down. That prevents an old scene from continuing to respond after it stops being active.
Leave the pitfalls for the next session
I asked for separate phase documents and session notes because the work would continue across conversations with limited context. As problems appeared, I also asked whether we had a file recording the pitfalls we were finding and fixing.
That record covers scene reuse, event listeners, delayed defeat reporting and sprite geometry. It gives a later session something concrete to resume: what was built, what failed and what still needs attention.
Vite builds passed during development, and generated characters and animations reached the Phaser prototype. Later playtesting still left bosses missing from several levels, and I asked for their placement to be checked. The saved material does not include a fresh complete playthrough or a verified resolution of those later placement problems. Those unresolved playability issues are part of its current result.
Project sources & checks
The user starts from a game-design document supplied to the project, suggests Phaser and asks for phased implementation, persistent session notes and a plan for high-quality art.
Actual Ludo.ai source operations and user feedback cover character art, animation integration, tiny in-game characters, reversed walking direction, a manual boss-height adjustment and later missing bosses.
BaseBoss.die records the defeated state, disables its body, creates rewards and emits boss-defeated before its 1,500 ms visual tween. ZoneScene resets state and removes its player-death/shadow listeners on shutdown.
Successful historical Vite builds and selected archived source support the implementation. The original project folder is unavailable on this Mac, and there has been no fresh complete playthrough.