Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Game of Life Mode #1917
    Edmond
    Participant

    Found some time today and it didn’t take that long to finish up. I think this is probably a good finished version.

    Changes:
    1. Added a nice simple fade in/out when one run ends and another starts.
    2. Adjusted delay values to make things more pleasant.
    3. Added multiple different color combos for the dead cells. It will pick a random palette at the start of each run.
    4. Fixed a bug in the random code. (I was having to put in a dumb delay instead of just looping on the sample_waiting bool. Had to make declare it volatile to make sure the compiler didn’t stick it in a reg and enter a inf. loop).
    5. General code cleanup to make sure all variables are typed correctly.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Game of Life Mode #1915
    Edmond
    Participant

    Previous post rejected attaching the FW src *.ino file. Attaching as a zip this time.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Game of Life Mode #1913
    Edmond
    Participant

    I finally found some time to get around to making this. Attached is my first draft of the FW with a Game Of Life mode in place of the normal clock/breakout game. The “gol.bmp” needs to be placed in the 00system folder on the SD card.

    When GOL is running:
    “Setup” key returns to normal GameFrame mode.
    “Next” reinitializes the screen with random living cells.

    The screen will also auto reinitialize if:
    1. The sim has hit a steady state for 10 frames
    2. The sim has managed to keep going for 60 seconds since the last re-init.

    Some future improvements ideas that I might try put in:
    1. Have it do some sort of smooth animation when it needs to reinit (maybe a fade to black, then fade the new cells in).
    2. Come up with alternate color palettes, and rotate between those for each sim.
    3. Maybe have the colors, and other setting stored on the SD card to make it easier for others to come up with and share cool looking configs.

    Overall, pretty fun little project. Took a couple of re-writes to work around mem limits of the board. Seems like if you need something like ~900B of free memory for the stack before the GM will not boot past setup. 🙂

    Attachments:
    You must be logged in to view attached files.
    in reply to: FIrmware releases #1164
    Edmond
    Participant

    Ah, I totally missed that. Thanks!

    in reply to: FIrmware releases #1143
    Edmond
    Participant

    Jeremy,
    Has the FW been released?

Viewing 5 posts - 1 through 5 (of 5 total)