๐Ÿ“ฆ rbadillap / pseudocode-to-game

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

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
claudegamegenaihtml-css-javascriptprompt-engineering
๐Ÿ“ฅ Clone https://github.com/rbadillap/pseudocode-to-game.git
HTTPS git clone https://github.com/rbadillap/pseudocode-to-game.git
SSH git clone git@github.com:rbadillap/pseudocode-to-game.git
CLI gh repo clone rbadillap/pseudocode-to-game
Ronny Badilla Ronny Badilla first commit 022ff74 11 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ game.js
๐Ÿ“„ index.html
๐Ÿ“„ README.md
๐Ÿ“„ styles.css
๐Ÿ“„ README.md

Space Shooter Game Generator

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.

Pseudo-Code Prompt

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

Purpose

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:

  • A player-controlled spaceship with smooth movement
  • Enemy ships that spawn and attack
  • Shooting mechanics and collision detection
  • Health and scoring systems
  • Animated visual effects (stars, lasers, explosions)
  • Multiple game states (start, gameplay, game over)
  • Retro visual styling
No detailed HTML structure, CSS styles, or JavaScript logic needs to be specified - Claude can generate all the necessary code from this high-level description.

How To Use

  • Copy the pseudo-code prompt above
  • Paste it into a conversation with Claude
  • Claude will generate complete HTML, CSS, and JavaScript files for a functioning space shooter game
  • Save the files and open the HTML file in a browser to play