Skip to content
An html5/js clone of a game I loved as a kid
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
js
scripts
README.md
index.html

README.md

Diamonds

About

This is the clone of Diamonds, an old Macintosh game I loved as a kid. It is still very much a work in progress.

Currently I'm just working on implementing features and levels from the original game (which was really hard!) but eventually I'll have a more reasonable difficulty mode.

I used the Crafty.js game library for my game. It's a very light weight library that provided me with an entity system and handled cross platform canvas manipulations easily.

Play it

Diamonds is playable at http://twymer.github.io/diamonds-js/.

It can also be opened locally as everything needed is included.

Controls

  • Left and right arrow keys to move
  • E -- Opens custom level editor (still a work in progress)
  • D -- Delete any existing custom levels and restart game

Instructions

The goal of Diamonds is to clear all of the diamond blocks. In order to be able to clear a diamond block, however, all of the colored blocks need to be cleared first. To break a block of a given color you must first touch the appropriate paintbrush block. Careful, though, there are no light blue paintbrushes!

Other than color blocks, later levels feature lock, key and reverse blocks. To break a key or lock you have to touch the appropriate paintbrush first. The reverse blocks can be taken no matter what color you are.

Every 10,000 points you receive a new life.

Good luck!

Cheater cheater pumpkin eater?

Okay, like I said, the game was/is hard. The original game had like 75 levels and while procrastinating (researching) I rarely got past level 15. So here are some helpful ways to cheat if you know how to get to your Javascript console.

  • game.skipLevel(); -- Skip the current level (you even get to keep the time bonus here)
  • game.skipToLevel(number); -- Jump to a given level number (zero indexed)
  • game.lives = 9001; -- It's over 9000!
You can’t perform that action at this time.