Skip to content
PirefactorGames9 files · +462 −130

Review badlogic-game TUI platformer and add entity animation

Session from pi-extensions-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

9msession
0interventions
GOAL

Understand and review an existing Mario-style TUI game codebase, then add walk/run/jump animation for player and enemies with better glyphs, and document controls.

  1. Prompt · +0
    Can you review badlogic-game please? We did a lot of stuff and I'm not sure I understand the code
  2. Agent did · +0m
    Read through engine.js, logic.js, state.js, render.js, tiles.js, camera.js, effects.js, core.js, levels.js; ran the test suite and tsc typecheck
  3. Agent did · +1m
    Produced a full architecture review: 77 passing tests, clean TypeScript, breakdown of engine/logic/render/camera/effects modules
  4. Prompt · +2m
    Write up findings in a review doc; make the player and enemies appear to move (non-fixed shape), and find a more evocative mushroom symbol without using emojis
  5. Agent did · +3m
    Wrote badlogic-game/REVIEW.md and reworked render.js to add animated glyph frames for player, enemies and items based on tick/position
  6. Fail · +6m
    After the glyph animation change, 3 e2e tests failed: enemy+item render together, enemy renders in viewport, item renders in viewport
  7. Agent did · +6m
    Located and rewrote the stale fixture files to match new glyphs; one fixture (goomba glyph) still mismatched, fixed it, then reran until all 79 tests passed and tsc stayed clean
  8. Agent did · +7m
    Updated REVIEW.md with a new Entity Animation section documenting player/enemy glyph tables and summarized all changes
  9. Break · 3h 08m away, not counted
  10. Prompt · +8m
    What's walk vs. run speed, and how would I actually run in the game?
  11. Outcome · +9m
    Traced input.run through logic.js and arcade/badlogic-game.ts to find the key bindings; delivered a controls table (move, jump, run toggle via X, pause, quit) noting the TUI uses walk 5.2 / run 7.2 vs engine defaults of 3 / 4.2; all 79 tests passing, tsc clean, REVIEW.md updated
VERDICT

Next time I'd ask upfront for both a review doc and the animation/controls documentation in one go, since I ended up asking follow-up questions about run speed and key bindings that could've been covered in the initial review. The fixture-file fix after the glyph change was the correction that actually mattered — the agent caught its own test failures and fixed them without me having to point it out, which is what got us back to 79 passing tests.

I tried this · 0

Discussion · 0

How Builds work