您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
seba
9e185ce008
|
15 年前 | |
---|---|---|
.gitignore | 15 年前 | |
Makefile | 15 年前 | |
defaultfont.png | 15 年前 | |
example.fld | 15 年前 | |
gameoflife.cpp | 15 年前 | |
gameoflife.h | 15 年前 | |
libsegl.so.1 | 15 年前 | |
life.cpp | 15 年前 | |
readme.txt | 15 年前 | |
start.fld | 15 年前 | |
waves.fld | 15 年前 |
readme.txt
Conway's "Game of Life" in 2d/3d
written by seba (www.seba-geek.de)
- Write a field-file
Begin with a header in the first line
<x (width)> <y (height)> <torus>
For example "21 21 1" would be a 21x21 field torus
After the header follows the field-definition,
col => x-axis, row => y-axis
0 is a dead cell
1 is a living cell
Look at the example.fld for further explaination
- Controls
t Toggle 2d/3d mode
p Pause
o Toggle OSD
e Toggle Edit-Mode
Move with shift + arrows
Toggle fieldstate withs Space
Clear field with shift + c
b Toggle buildup of cells
-/+ In- or decrease speed