PDA

View Full Version : DSlife v2 - Conways Game Of Life Port to DS



wraggster
December 3rd, 2006, 15:55
News/release from Jeremysr: (http://forum.gbadev.org/viewtopic.php?t=11850&sid=91c9783e82ba9043376fd094a6f1c19b)

The original one I released had an invisible bad bug in it that made almost all cells die unless you drew really slowly. This one fixes that and adds some more features described in readme.txt which I'll quote.

readme.txt:

DSlife by Jeremysr
[email protected]
------------------

What is Conway's Game of Life? Go here to find out: http://en.wikipedia.org/wiki/Conways_life

DSlife follows the same rules as Conway's Life. It comes in three versions: 32, 64, and 256. These numbers are the width of the array of cells in the game of life.

DSlife_256: 256x192 cells, each cell is 1x1 pixel
DSlife_64: 64x48 cells, each cell is 4x4 pixels
DSlife_32: 32x24 cells, each cell is 8x8 pixels (most accurate for creating life patterns)

With DSlife_256, you can draw on the screen to create life, but the only way of erasing life is to clear the whole screen. With DSlife_64 and DSlife_32, you tap the screen to create 1 life cell at a time, or, if the cell already has life on it, erase that life.

Menu:

Start simulation - Starts the life simulation after you have drawn life on the screen
Clear screen - Destroys all life making the screen white
Speed - Changes the speed ranging from 0 to 9. 0 being the slowest, 9 being as fast as the DS can go. (Which isn't too fast :( )
Rules - Changes the rules of life. There are 10 preset rules, the default being normal life (23/3).
Save to... - Saves the speed and rules and life array currently being shown on the bottom screen to a file on the root of the card (DSlife_32.life, DSlife_64.life, or DSlife_256.life). If they don't exist DSlife will create them. You can only save one at a time. To edit them on the computer, open them in a text editor and from line 2 to the end of the file is the life array. 0's are dead (white) and 1's are alive (black).
Load from... - Loads the speed and rules and life array from a file (DSlife_32.life, DSlife_64.life, or DSlife_256.life) on the root of the card.

All of the menu options are selected or toggled using the A button.

In this directory there are DSlife_*.life savefiles that you can put in your root directory:

DSlife_256.life - Gosper's Glider Gun pattern
DSlife_64.life - Diehard pattern
DSlife_32.life - Glider pattern

---

Thanks to felix123 for the variable speed and lid checking code!

Download here (http://viewsourcecode.org/homebrew/ds-life) and Give Feedback Via Comments

kuja2k3
January 4th, 2007, 00:28
i love it

sabernet
February 25th, 2007, 21:39
Doesn't work on Slot1 cards:(

cedeckovec
June 20th, 2011, 11:58
thanks
nice job

mm75
December 30th, 2011, 15:19
how do u download?
it sounds cool

Shrygue
December 31st, 2011, 17:14
Get it from here (http://viewsourcecode.org/homebrew/ds-life).

mm75
January 3rd, 2012, 15:17
Thanks it works !!!!!!!!!!!!