Saturday, March 14, 2015

The game of Color Matrix



Attribution

We are using the artwork from the following source:

MATCH 3 by Buch/CC0
We just need a single file (match3_sheet_0.png) provided by Buch:
match3_sheet_0

Explanation

For a brief explanation of the source code, please visit Teach Yourself Java Programming in 21 Games

Compile and run

You will need the following files :
match3_sheet_0.png
ColorMatrix.java    
Board.java
Cell.java
BlockSprite.java
BlockType.java
Sprite.java
Token.java

To compile:
  javac *.java
To run
  java ColorMatrix
match3_sheet_0.png can be downloaded in opengameart.org

Alternatively, you may just right click the image in the attribution section and download it.

Source Code


ColorMatrix.java
Board.java Cell.java
BlockSprite.java
BlockType.java
Sprite.java
Token.java