I'll build an original Donkey Kong-inspired platformer with 4 distinct levels, all original characters. Let me start by exploring the project structure, then build the game.
Now I'll update the title and build the complete game. I'll create a single-file implementation with 4 original levels featuring unique characters (Rocco the hero, Konga the ape, Polly the damsel).
I need to fix a few unused variable warnings.
Now let me check that x1/y1 are actually used in drawPlatform:
Let me fix the barrel physics to roll downhill properly and fall vertically when leaving platform edges (classic DK behavior):
Let me improve the ladder detection logic so climbing in/out works smoothly:
Let me fix a bug where game state gets reset on every render:
Now let's build to verify everything compiles:
Let me fix a bug where the player can fall through floors when exiting a ladder:
Let me add collision detection for the falling boss in level 4:
Let me verify the build still works after all fixes:
Let me fix the hammer position so it's actually sitting on a floor (level 1):
Let me add simple arcade sound effects using Web Audio API to enhance the experience:
Let me add audio context resume on user interaction (required by browsers):
The game builds successfully. Here's a summary of what I built:
Konga's Tower — An Original 4-Stage Platformer
Original characters (no Mario/Donkey Kong/Pauline):
- Rocco — brave hero in red cap & overalls (pixel art drawn procedurally)
- Konga — giant ape villain who bobs and flexes
- Polly — pink-dressed princess with a golden crown who waves for help
Four distinct levels:
- Barrel Barrage — classic sloped girders zigzagging across the screen, rolling barrels, broken ladders, and a hammer powerup (8 seconds of barrel-smashing)
- Pie Panic — similar layout but Konga hurls bouncing pies instead of barrels
- Elevator Madness — ride moving girders up a vertical shaft (7 elevators going both directions)
- Rivet Rescue — run around yanking 8 rivets; once all removed, Konga falls with a screen-shake effect while you dodge him
Gameplay features:
- Sloped platform physics — barrels roll downhill and fall vertically off edges (classic DK behavior)
- Ladder climbing with broken ladders that only pass from one side
- Jump-over bonuses (+100), stomp bonuses (+200), hammer smash (+300), rivet bonus (+100), stage clear (+1000)
- 3 lives, score tracking, intro/complete/game-over/victory screens with a kiss scene at the end
- Arcade sound effects via Web Audio API (jump, death, pickup, score, rivet, victory fanfare)
- Per-level color themes and a starfield background
- Touch-friendly on-screen buttons for mobile play
- Keyboard: Arrows/WASD to move, Up/Space to jump and climb, Down to drop through ladders
Files built: index.html, src/App.tsx