Graham van de Ruit

Editorial & information designer


  About   |   Links   |   Teaching   |


Paper.js games


2012

Paper.js


As an exercise in learning Paper.js I have built a few basic games. They make use of the Canvas element in HTML5, so if you’re not seeing anything you probably need to update your browser.


Minesweeper

Click the squares to uncover them. Hold Shift and click to flag squares you think hide mines. Click again to unflag the squares. Numbers on the board indicate how many mines are concealed under the surrounding squares, and the number to the left under the board shows how many mines are still to be flagged.


Four-up

The aim of this game is to get four blocks in a row (vertically, horizontally or diagonally) before your opponent. Blocks stack from the bottom of the columns. Click in a column to place a block. Colours alternate with clicks to represent the two players. I may try to create a computer player, but at the moment you’ll have to play against a friend or yourself.