The biggest hurdle in AI game development is not the underlying model—it is knowing how to ask.
Vague prompts like "make a game" produce generic, broken results with confusing controls. But structured, context-rich prompts produce clean, modular, playable game mechanics on the very first try.
Here are 10 battle-tested, copy-paste prompt recipes that we have refined across dozens of prototypes on ToozyMio. Save this page and paste them directly into your AI coding tool of choice.
1. The Retro Space Shooter Core Loop
Playable Inspiration: Cosmic Chaos
Role: Senior 2D HTML5 Canvas Game Engineer.
Task: Create a single-file index.html retro space shooter called 'Star Surge'.
SPECIFICATIONS:
1. PLAYER: A glowing cyan triangular ship at screen bottom. Follows mouse/touch pointer X with smooth lerp easing (factor 0.18). Clamped within screen edges.
2. SHOOTING: Automatically fires dual laser bolts every 140ms upwards.
3. ENEMIES: Crimson geometric alien drones spawn in waves from the top (V-formations and horizontal sine-wave drift patterns).
4. IMPACT: Destroying a drone triggers a burst of 14 glowing particles with fading alpha and slight trauma screen shake.
5. GAME LOOP: Stable 60 FPS requestAnimationFrame with delta-time calculation (clamped to max 0.1s).
6. VISUALS: Deep space slate background #0a0e17 with 150 parallax starfield particles drifting downwards at varying speeds.
7. HUD: Modern minimalist score counter in top-left; high score persisted in localStorage.
2. The Cozy Virtual Pet Aquarium
Playable Inspiration: Tiny Ocean Tank
Role: Creative Game Developer specializing in cozy, calming web simulations.
Task: Build a relaxing 2D HTML5 Canvas aquarium simulator in a single file.
SPECIFICATIONS:
1. ENVIRONMENT: Tranquil oceanic gradient from #0ea5e9 to #0369a1 with rising translucent air bubbles.
2. FISH BEHAVIOR: Spawn 5 colorful tropical fish. Each fish wanders to random target waypoints using gentle sine wave tail wagging and velocity dampening. Fish smoothly rotate to face their movement direction.
3. FEEDING MECHANIC: Tapping or clicking anywhere drops a golden fish food pellet that drifts slowly downward. Nearby fish detect food within 150px, swim toward it, and eat it.
4. HAPPINESS: Eating food displays a floating heart icon above the fish and increments a "Tank Joy" meter.
5. PROCEDURAL AUDIO: Use the Web Audio API to synthesize soft water bubble pop sounds on tap (sine wave pitch sweep 400Hz -> 800Hz with fast decay).
3. The Cyberpunk Endless Obstacle Runner
Playable Inspiration: Rift Runner Infinite
Role: HTML5 Game Physics Engineer.
Task: Create a fast-paced endless horizontal platform runner in index.html.
SPECIFICATIONS:
1. PLAYER: A neon cyan runner cube that moves along a continuous ground platform.
2. JUMP MECHANICS: Tap or Spacebar triggers jump with realistic gravity. Holding the input provides variable jump height. Double-jump allowed.
3. OBSTACLES: Spikes and vertical cyber-gates spawn from the right edge with procedural spacing (minimum gap guarantee).
4. DIFFICULTY PACING: Speed starts at 300 px/sec and smoothly accelerates by 4 px/sec every 5 seconds.
5. COLLISION: Decouple horizontal and vertical Swept AABB collision passes to eliminate tunneling or sticky wall glitches.
6. GAME OVER: Screen flashes white for 2 frames, triggers trauma camera shake, and shows final score and high score.
4. The Satisfying Chain-Reaction Bubble Popper
Playable Inspiration: Bubble Pop
Role: Casual Game Designer specializing in crunchy tactile feedback.
Task: Create a satisfying chain-reaction bubble popping arcade game.
SPECIFICATIONS:
1. BUBBLES: Translucent colored bubbles (coral, emerald, violet, amber) float upwards from screen bottom with gentle horizontal wobble.
2. INTERACTION: Pointer tap pops a bubble instantly and radiates an expanding shockwave ring (radius 60px).
3. CHAIN REACTION: Any bubble touching an expanding shockwave pops automatically, triggering its own shockwave.
4. COMBO SYSTEM: Multipliers escalate exponentially with each chain cascade (1x, 2x, 4x, 8x, 16x).
5. GAME JUICE: Render bold floating combo text (+400!) drifting upward with spring easing. Play ascending musical pitches via Web Audio API for higher chain combos.
5. The Meditative Pebble Wishing Pond
Playable Inspiration: Lily Wishing Pond
Role: Zen Game Designer.
Task: Create a meditative water ripple simulation in HTML5 Canvas.
SPECIFICATIONS:
1. SCENE: Top-down view of a serene garden pond with floating green lily pads and soft ambient water caustics.
2. RIPPLE ENGINE: Tapping or clicking the pond drops a smooth river pebble, generating concentric water wave rings that expand outward, reflect off pond borders, and decay gracefully.
3. PHYSICS: Wave ripples apply gentle physical displacement forces to nearby floating lily pads and lotus blossoms.
4. AUDIO: Web Audio synthesis generating a deep, resonant water "plop" and organic ambient brown noise surf.
6. The 8x8 Grid Match-3 Cascade Core
Playable Inspiration: Match Garden Tales
Role: Puzzle Game Architect.
Task: Build a clean 8x8 grid Match-3 game core in HTML5 Canvas.
SPECIFICATIONS:
1. GRID: 8 rows by 8 columns populated with 5 distinct gem colors/symbols.
2. SWAP MECHANIC: Tap one tile, then an adjacent neighbor. Animate them swapping over 120ms. If no match results, swap them back.
3. MATCH LOGIC: Scan for runs of 3, 4, or 5 identical horizontal or vertical gems.
4. FALL GRAVITY: Matched gems dissolve in particle bursts; gems above drop down smoothly to fill vacancies; new gems spawn from the top.
5. COMBO CASCADE: Automatically evaluate new matches after drops until grid settles.
7. The Trajectory Physics Slingshot
Role: 2D Physics Game Programmer.
Task: Create an Angry-Birds style slingshot trajectory prototype in Canvas.
SPECIFICATIONS:
1. SLINGSHOT: Anchored on the lower left of the screen.
2. AIMING: Dragging backwards with mouse/touch renders an elastic rubber band and a dotted parabolic trajectory prediction line.
3. LAUNCH: Releasing launches a round projectile with initial velocity proportional to drag distance: vx = dx * power, vy = dy * power.
4. TARGETS: A tower of stacked wooden physics crates on the right.
5. PHYSICS: Clean Euler integration applying gravity, crate friction, velocity dampening, and ground collision bounces.
8. The Procedural Web Audio SFX Engine
Role: Web Audio API Specialist.
Task: Write a zero-dependency SoundEngine class in JavaScript.
SPECIFICATIONS:
1. AUTOPLAY COMPLIANCE: Lazy-initialize AudioContext on first user interaction (pointerdown or keydown).
2. SYNTHESIZED SOUNDS:
- playJump(): Rapid square-wave pitch bend upward (150Hz -> 650Hz in 120ms).
- playCoin(): Dual-tone sine wave arpeggio (B5 987Hz -> E6 1318Hz).
- playLaser(): Sawtooth downward frequency plunge (900Hz -> 100Hz in 140ms).
- playExplosion(): Filtered white noise buffer passed through a low-pass filter (decay from 800Hz to 30Hz).
- playPowerup(): Ascending major chord arpeggio (C4, E4, G4, C5).
3. VOLUME & MUTE: Include setVolume(0..1) and toggleMute() methods.
9. The Trauma-Based Screen Shake & Particle Emitter
Role: Game Feel / Juice Specialist.
Task: Write a drop-in Juicer class for Canvas 2D games.
SPECIFICATIONS:
1. TRAUMA SHAKE:
- addTrauma(amount): Adds trauma clamped to 1.0.
- update(dt): Decays trauma linearly (trauma = Math.max(0, trauma - dt * 1.4)).
- apply(ctx): Translates canvas by (Math.random()*2 - 1) * maxOffset * trauma^2.
2. PARTICLE BURST:
- spawnBurst(x, y, count, color): Emits particles with randomized radial velocities, size decay, and alpha fade.
3. FLOATING TEXT:
- spawnText(x, y, text, color): Floats damage or score text upward over 0.7s with ease-out alpha fade.
10. The Cloud Leaderboard & Save-State PlayBridge
Role: Senior Frontend Platform Architect.
Task: Implement a secure PostMessage PlayBridge for an iframe game.
SPECIFICATIONS:
1. INIT HANDSHAKE: On game mount, emit window.parent.postMessage({ type: 'TOOTH_READY', slug: 'my-game' }, '*').
2. RECEIVE SAVE: Listen for { type: 'TOOTH_LOAD_STATE', state } and restore player levels and high scores.
3. AUTO-SAVE: Expose window.onSaveRequest to return current game state object.
4. SUBMIT SCORE: When game ends, emit { type: 'TOOTH_SCORE', score: number } to record global leaderboard ranking.
5. EXIT: In-game "Exit to Menu" button triggers { type: 'TOOTH_EXIT' } to return safely to portal catalog.
Conclusion: Start Building Today
You don't need to reinvent the wheel every time you have an idea. Use these prompt templates as your launchpad, iterate on the mechanics, and bring your vision to life.
Explore how these mechanics feel in our live catalog:
- Test 3D dogfights in Cosmic Chaos.
- Try endless running in Rift Runner Infinite.
- Relax with virtual pets in Tiny Ocean Tank.
- Check your score on our global Leaderboard!




