Author Topic: Arduino's Game of Life  (Read 4673 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Arduino's Game of Life
« on: July 15, 2012, 04:08:49 pm »
Hi

i know lot's of the people here are interested in more than only calculator development. So i decided to put a little more arduino stuff in here.
i recently bought a color screen for my arduino, the MI0283QT-2 from watterott.com.

it's a wonderful screen, resolution 320*240 with touch (resistive). and it runs quite smooth with the arduino.
now there's an example of conway's game of life, which you can see in the video.

i just wanted to show this, because it's lovely :) and i hope you like it...



btw, i did not make it myself, it's an example program from the manufacturer :)

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Arduino's Game of Life
« Reply #1 on: July 15, 2012, 04:24:43 pm »
Wow, that's so awesome. And the touch-lcd shield looks quite good as well (for the super cheap price it is sold). Does it run at full speed or is it slowed down?

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Arduino's Game of Life
« Reply #2 on: July 15, 2012, 04:48:34 pm »
yes, it's running at full speed.. that's why i said 'quite smooth'. it's not really fast indeed, but fast enough to do some graphing, text, images etc, but not for gaming or equivalent speed-needing applications.

i don't really need the speed though, since i'm going to build my own logitech harmony 1000 (universal remote) with the screen, and for that it only needs to have the ability to display images and text at a reasonable speed, which it does :)
the arduino is only 16MHz, so don't expect it to be superspeed xp

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Arduino's Game of Life
« Reply #3 on: July 15, 2012, 05:02:12 pm »
A calc is only 15 MHz (on full speed mode), and you can play reasonable games on it. An arduino also doesn't run the outdated z80, so it should be a bit faster than the calc. Aslo, I noticed the blocks fade away. Is this an effect, or is the screen just really blurry?
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Arduino's Game of Life
« Reply #4 on: July 15, 2012, 05:29:53 pm »
well, it's not the arduino itself that is slow, but the time it needs to send the commands is quite long.. if you would take a b/w screen 96*64 like the 83/84+ ones, it would be a little faster indeed, but here we have a full color 320*240 lcd, which is slightly more enhanced than the other screen :)

and the color is an effect. it depends on how long it is dead, and that gives it a nice effect (if you know it), but if you don't know it, it might indeed look like blur
« Last Edit: July 15, 2012, 05:30:11 pm by Nick »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Arduino's Game of Life
« Reply #5 on: August 07, 2012, 03:53:29 am »
another program: paint
as the name says, it's a very simple paint program that lets you draw on the screen using different pens/colors/sizes. does not feature a lot until noq, wince i can't check the color of pixels and i can't store them in an array (tooooo big for the arduino). if i can manage to store it somehow on the sd-card (like bmp format or something) that reads fast, then i can add effects, layers, fileters etc..


Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Arduino's Game of Life
« Reply #6 on: August 07, 2012, 04:01:50 am »
Very nice Nick :)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Arduino's Game of Life
« Reply #7 on: August 07, 2012, 04:50:25 am »
thanks jim  :)
« Last Edit: August 07, 2012, 04:50:33 am by Nick »