Advertisement · 728 × 90
#
Hashtag
#gamefromaprompt
Advertisement · 728 × 90
Create an Asteroids-style game where I control a spaceship that moves with the arrow keys and fires lasers with the space bar. The game should start with multiple asteroids that move randomly across the screen. When a laser hits an asteroid, the asteroid should explode into two smaller asteroids if it's large enough, or disappear if it's small. If asteroids collide with each other, they should also shatter into smaller pieces. Additionally, if an asteroid collides with the spaceship, the game should end. When all asteroids are cleared, a new wave should appear, increasing the number of asteroids by one in each new wave. Also, add a score counter that increases when I destroy asteroids. Provide the full game as an HTML file with a link so that I can download and run in my browser, with all JavaScript included in the HTML file itself.

Create an Asteroids-style game where I control a spaceship that moves with the arrow keys and fires lasers with the space bar. The game should start with multiple asteroids that move randomly across the screen. When a laser hits an asteroid, the asteroid should explode into two smaller asteroids if it's large enough, or disappear if it's small. If asteroids collide with each other, they should also shatter into smaller pieces. Additionally, if an asteroid collides with the spaceship, the game should end. When all asteroids are cleared, a new wave should appear, increasing the number of asteroids by one in each new wave. Also, add a score counter that increases when I destroy asteroids. Provide the full game as an HTML file with a link so that I can download and run in my browser, with all JavaScript included in the HTML file itself.

Challenged myself to write a single prompt for gpt4o that makes a game - came up with this after lots of iteration - now got a challenge going at work - who can make the best game from a single prompt (prompt in the alt text) #gamefromaprompt

1 0 2 0