A pseudo-code prompt that can be used with Claude to generate a complete space shooter game using HTML, CSS, and JavaScript - without requiring detailed instructions
https://github.com/rbadillap/pseudocode-to-game.git
This README contains a pseudo-code prompt that can be used with Claude to generate a complete space shooter game using HTML, CSS, and JavaScript - without requiring detailed instructions.
Create space shooter game:
game {
player: spaceship at bottom of screen
enemies: spawn from top, move down
controls: arrow keys or WASD for movement, spacebar to shoot
physics: add gradual acceleration/deceleration for smooth movement
visuals {
theme: retro space with parallax star background
colors: blue/cyan for player, red for enemies
style: pixel/retro aesthetic
animations: shooting, explosions, particle effects
}
mechanics {
player shoots lasers upward
enemies shoot downward
collision detection
health system
scoring system
}
screens {
start: title, instructions, start button
gameplay: player, enemies, score, health
game over: final score, restart button
}
}
Implement using HTML, CSS, JS with responsive design and retro fonts
This demonstrates how Claude can generate a complete, functioning game from minimal instructions in pseudo-code format. The prompt captures the essential elements of the game without specifying implementation details.
The generated game should include: