make an original donkey kong clone. all levels
- User
make an original donkey kong clone. all levels
Assistant
I will now check the existing files in the project to understand the structure and dependencies available.
I will read
package.jsonto check which dependencies and UI libraries are already installed in the project.I am now going to install
lucide-reactfor arcade menu icons, controls, and game setting buttons, along withcanvas-confettifor celebratory effects when clearing arcade levels.I will read
index.htmlandsrc/index.cssto check the current layout and Tailwind CSS configuration so we can prepare it for retro arcade aesthetics and pixel fonts.I am now going to update
index.htmlto include the title "Donkey Kong 1981 Arcade - All Levels Clone", preload Google Fonts ("Press Start 2P" and "VT323" for authentic retro typography), and set up a clean dark background for the game cabinet.I have successfully updated
index.htmlwith the new arcade title and retro Google fonts. Now I am going to updatesrc/index.cssto create custom utility classes for our CRT scanlines effect, pixelated font families, cabinet glowing animations, and retro UI scrollbars.I will now create
src/types.tsto define all TypeScript interfaces and types for game entities, levels, Mario physics, Donkey Kong behaviors, menu states, themes, achievements, and scoring mechanics.I will now create
src/utils/audio.tsto implement an 8-bit retro arcade sound synthesizer using the native browser Web Audio API, producing instant, faithful chiptune sound effects without needing external audio files.I will now create
src/game/levels.tscontaining the layout data for all four classic Donkey Kong stages (25m, 50m, 75m, and 100m), specifying girders, slopes, ladders, rivets, elevator shafts, collectibles, and enemy spawn locations.I will now create
src/game/engine.tsto implement the core gameplay simulation: sloped girder physics, ladder climbing, jumping over barrels for score bonuses, hammer swinging animations, enemy state machines (barrels, fireballs, cement pies, bouncing springs), conveyor and elevator interactions, and the dramatic 100m rivet demolition sequence.I will now edit
src/game/engine.tsto fix the two TypeScript lint errors by removing the unusedCollectibleimport and settingfb.currentLaddertoundefinedinstead ofnull.I will now create
src/game/renderer.tscontaining the complete HTML5 Canvas rendering engine, implementing procedurally styled retro art for Donkey Kong, Mario, Pauline, enemies, sloped girders with rivets, moving conveyors, elevator shafts, collectibles, particle explosions, and custom theme palettes (Classic 1981, Neon Cyberpunk, GameBoy, and Sepia).I will now edit
src/game/renderer.tsto fix the unused variable lint errors by prefixing unused arguments with underscores or utilizing them within their rendering functions.I will now create
src/components/ArcadeCanvas.tsxto host the live interactive HTML5 game canvas, managing the 60fps animation loop, keyboard controls, mobile touch D-pad, HUD displays (Score, High Score, Level Meterage, Bonus Timer, Lives), level win transitions, and Game Over overlays.I will now edit
src/components/ArcadeCanvas.tsxto remove the unusedGameEngineStateimport, clearing the TypeScript lint error.I will now create
src/components/MainMenu.tsxfeaturing an animated arcade lobby screen with flashing "INSERT COIN" interactive graphics, theme selector (Classic, Neon, GameBoy, Sepia), difficulty modifiers (Infinite Hammer, Turbo Jump, God Mode), and access to Level Select, Encyclopedia, and High Scores.I will now create
src/components/LevelSelectModal.tsxto provide an interactive level selection interface where players can examine the dangers, bonuses, and gameplay mechanics of Stage 1 (25m), Stage 2 (50m), Stage 3 (75m), and Stage 4 (100m) before launching directly into any stage.I will now edit
src/components/LevelSelectModal.tsxto remove the unusedZap,Flame, andAwardicon imports, resolving all TypeScript lint errors.I will now create
src/components/EncyclopediaModal.tsxto serve as an illustrated in-game arcade compendium explaining character lore, enemy behaviors (flaming barrels, firebeasts, springs, cement pies), hammer mechanics, scoring tables, and historical notes from the 1981 original release.I will now edit
src/components/EncyclopediaModal.tsxto remove the unusedShieldicon import, removing the TypeScript lint error.I will now create
src/components/LeaderboardModal.tsxto handle persistent local high scores, custom initials entry after Game Over or Victory, and an interactive trophies dashboard tracking milestones like Barrel Hurdler, Mallet Demolition, and Structural Breakdown.I will now create
src/App.tsxto integrate the Main Menu, live Arcade Canvas, Level Select, Encyclopedia, Hall of Fame leaderboards, local storage achievement persistence, and pop-up toast notification animations for when players unlock new medals.I will now edit
src/App.tsxto exportAppas the default export so thatsrc/main.tsxcan import it correctly without TypeScript errors.I will now test building the project with
build_projectto ensure that all TypeScript types, assets, packages, and components compile successfully into a complete application.I have built an original Donkey Kong (1981 Nintendo Arcade) Clone featuring all four classic levels, authentic gameplay physics, Web Audio API chiptune sound effect synthesis, retro cabinet styling, and arcade fun modifiers!
✨ Key Features of Your Donkey Kong Web App
-
Complete 4-Stage Classic Arcade Loop:
- 🪜 Stage 1 (25m - The Girders): Climb slanted red girders while Donkey Kong tosses wooden rolling barrels down the slopes and drops flaming blue barrels into the Oil Drum to spawn unpredictable roaming Firebeasts!
- 🥟 Stage 2 (50m - The Pie Factory): Navigate high-speed moving conveyor belts pushing Mario while avoiding sliding cement dishes. Collect Pauline's Hat, Purse, and Parasol for +800 bonus score!
- 🌀 Stage 3 (75m - The Elevators): Leap across continuous up and down moving elevator platforms while Donkey Kong flings bounding springs (jacks) straight down the open shafts!
- ⚡ Stage 4 (100m - The Rivet Board): The final confrontation! Walk over or leap onto all 8 Yellow Steel Rivet Plugs to tear down the bridge floors and send Donkey Kong crashing down to save Pauline!
-
Authentic Physics & Arcade Power-Ups:
- 🏃♂️ Parabolic Jump & Score Bonus: Precise jump-over-barrel mechanics that award floating +100 point scores every time Mario leaps directly over rolling barrels or flames.
- 🔨 The Mallet Hammer: Grab a shiny hammer to transform Mario into an invincible demolition machine for 8 seconds, swinging the mallet to crush enemies for +300 points accompanied by fast-paced power-up audio!
- ❤️ Extra Life 1-UP: Gain extra lives upon surpassing 20,000 score points!
-
Audio & Controls:
- 🔊 Web Audio API 8-Bit Synthesizer: Pure procedural chiptune sound generation including coin insert chirps, intro victory jingles, jumping boings, barrel bounces, hammer bonks, and Pauline calling out "HELP!" with zero external sound files needed.
- 🎮 Universal Control Support: Play with Keyboard (
Arrow Keys/WASDto move and climb,Space/Upto Jump,Pto Pause) or use the responsive on-screen mobile/tablet Touch D-Pad!
-
Arcade Lobby & Customization Modes:
- 🪙 Interactive Coin In & Credits: Flashing arcade coin insertion button with sound cues.
- 🗺️ Stage Practice & Select Mode: Instantly pick and challenge any of the 4 individual boards at will.
- 🎨 4 Visual Arcade Themes: Toggle between 1981 Classic Original, Neon Synthwave, GameBoy 8-Bit Green Monochrome, and Vintage Western Sepia, plus toggleable CRT scanline & phosphor glow overlays!
- ⚙️ Difficulty Modifiers & Cheats: Choose between Easy, Normal (Arcade 3-Lives), Hard, or unlock God Mode (infinite lives), Infinite Hammer Time, and Turbo High Jump!
- 📖 Arcade Encyclopedia & Lore Guide: Illustrated interactive compendium breaking down enemies, scoring mechanics, history, and tips from the 1981 Shigeru Miyamoto masterpiece.
- 🏆 Hall of Fame & Trophy Medals: Persistent local storage High Score tables with custom initials registration on new records and an achievement badge unlocking system with live pop-up toast notifications!
Files built:
index.html,src/index.css,src/types.ts,src/utils/audio.ts,src/game/levels.ts,src/game/engine.ts,src/game/renderer.ts,src/components/ArcadeCanvas.tsx,src/components/MainMenu.tsx,src/components/LevelSelectModal.tsx,src/components/EncyclopediaModal.tsx,src/components/LeaderboardModal.tsx,src/App.tsx-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.