Skip to content

Baka9k/magicgems

Repository files navigation

magicgems

##Description: Simple game written on JavaScript using canvas. Just click on the gems and earn points, but do not let the field to fill up to the top!

##Usage: All the code needed to add the game on the page is in magicgems/magicgems.js When this file is connected to your page, you can use following methods:

  • magicgems.createGameField() - creates game field in element with id given as argument. Gamefield width and length will be same as element width and length, and if you want create it in empty div you should specify its width and height before calling this method.
  • magicgems.removeGameField() removes game field from element with id given as argument and removes its event listeners.

##Live demo: https://baka9k.github.io/magicgems

##Screenshots: Screenshot 1 Screenshot 2 Screenshot 3