Game of Life in DCPU
Conway's Game of Life written in DCPU, the assembly-like language created by Notch to be used in the game 0x10c.
The program divides each font-space into 8 equal Game of Life-cells, each 2x2-pixels big. To print the cell it has to generate the font using all 128 slots available.
Since 8 cells can be ordered in 256 different combinations the last cell determines if it should be printed with inverted colors. That way we can get all 256 possible combinations.
The all-in-one-file is just a concatenation of the other files, to simplify copy and pasting into an online IDE. There is no import used between files.
Released under the Modifed BSD-license.
Features
- 2x2-pixels wide cells
- 64x48 cell board
- Premade Glider and Acorn patterns
Relevant links
- Online DCPU-IDE
- The Online IDE I used when creating this.
- Conway's Game of Life
- Wikipedia's entry about Conway's Game of Life.
- Square Dino
- Another Game of Life-program that I made with a friend.