Space Trash – HTML 5 Canvas Game

This is an experiment made for an university exam, a 2d game that uses just html5 canvas with its Javascript API and no additional framework.

In order to make the game programming easier a little framework has been built, it handles:

  • animations
  • mouse events
  • keyboard events
  • collissions, almost pixel perfect
  • custom graphic controllers
  • homogenous transformation
  • levels serialization and persistence

Gameplay

You have a space ship, your goal is to get to some planet and/or collect some trash. Taking into account gravity, limited fuel, moving planet, asteroids and trash.

You’ll find here an online playable version of the game.

Becarefull

The purpose of this project was to pass an exam, it has been coded in hurry, thus there things that can be done better and things that are buggy. More over it has only been tested on Chrome. Here the Git Repository.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *