Welcome, Guest
Username: Password: Remember me

TOPIC: Games: The Game of Life

Games: The Game of Life 1 year 11 months ago #1855

  • Ray
  • Ray's Avatar
  • Moderator
  • Posts: 706
  • Thank you received: 151
  • Karma: 44
This code was taken from www.instructables.com/id/Arduino-based-B...Matrix-Game-of-Life/ and modified to fit in a 16x16 screen.
You can go there and check more about the author.
It basically creates a random pattern on the screen that regenerates itself (looks like an expanding virus).
It's cool to be used in the background as a random "screen saver".
  • You can adjust the speed of it by modifying the line
    unsigned int delayTime=200; // Time between each step
  • The code is designed to reset itself after some iteractions, defined by:
    //introduce some randomness
        if (idx++ > 200 )
    You can change the 200 by a smaller or bigger number if it gets stuck for too long
  • If you push the encoder button, the game will reset

File Attachment:

File Name: Game_of_Life.zip
File Size: 8 KB

Last Edit: 1 year 11 months ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.142 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio