gptdiff · diff → smartapply
checking…
Sign in with NanoGPT
paste key
sign out
save
— from
nano-gpt.com
→ Settings → API
Diff model:
…
change
Apply model:
…
change
· top = each frontier lab's latest flagship · price = $ in / $ out per 1M · Enter to use exact text
File path
Existing file — just notes & pseudocode (let the AI build it)
GAME PLAN — a small browser arcade game in one self-contained index.html. A canvas-based Space Invaders: dark background, centered, no libraries. LAYOUT - a title and a score readout - a game canvas, about 480 x 600 - a one-line hint for the controls STATE - player: x, y, width, height, speed — sits near the bottom - bullets: player shots that move up - enemies: a grid of aliens near the top - enemyDir: +1, march right then flip and step down - score = 0, gameOver = false INPUT - ArrowLeft / ArrowRight move the player - Space fires a bullet (rate-limited) EACH FRAME (requestAnimationFrame) - move the player from input, clamped to the canvas - move bullets up, drop the ones off-screen - move the enemy block; at an edge, flip direction and step down - bullet hits an enemy: remove both, score += 10 - lose if any enemy reaches the player's row - draw everything; show GAME OVER when done TODO: turn this plan into a real, playable game.
▶ Play (build it first)
Goal (what to change)
Diff & apply
◐
starting…
· ⏱
0.0
s
↓
0
in · ↑
0
out ·
$0.00000
Generated diff
New file — applied to the editor automatically
✕ close (Esc)