Skip to content

remarkablegames/asteroids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asteroids

Run on Repl.it GitHub last commit

Asteroids game from p5.play examples. See Repl.it and blog post.

Built with:

Asteroids screenshot

Run

Clone repository:

git clone https://github.com/remarkablegames/asteroids.git
cd asteroids

Start a static server:

python -m SimpleHTTPServer

Open http://localhost:8000/:

open http://localhost:8000/

To stop the server, press Ctrl + C.

Changelog

Bug Fixes

  • Decrease ship and particle friction so they can move
  • Improve text readability by giving it a stroke and putting it in front of the layers

Features

  • Render the game full screen
  • Generate asteroids based on screen size
  • Destroy the ship on asteroid collision
  • Improve bounding box collision detection
  • Improve ship speed
  • Randomize the speed of sprites (asteroids and particles)
  • Control ship using arrow keys or WAD; fire bullet with space

Chore

  • Refactor to local scope so globals aren't polluted