Welcome, Guest
Username: Password: Remember me

TOPIC: Games: The Game of Life

Games: The Game of Life 3 months 2 weeks ago #1855

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 687
  • Thank you received: 146
  • Karma: 40
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



game_life.jpg
Last Edit: 3 months 6 days ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.287 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio