Asteroids Coding Challenge

Simon has built this fun Atari game where a spaceship shoots at asteroids with laser and breaks them down into pieces. It was actually another coding challenge by Daniel Shiffman that Simon had tried a couple months ago when he was just beginning to write code. Back then he got seriously stuck at the asteroids phase (using JavaScript and HTML5 canvas with the p5.js library to program the “laser” functionality and examine collision detection with the asteroids). This time around, however, he glided through the challenge, nearly effortlessly, in his own words. He did enjoy it immensely and even tried rebuilding it on the RaspberryPi, but had “a copy-paste issue”.

The code in online in the p5.js web editor. You can run it and play the game, you can also hit the Download button and play on a big screen!

http://alpha.editor.p5js.org/simontiger/sketches/r16tcHq3e

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s