New "Game": Conway's Game Of Life

Use this forum to share and discuss Uzebox games and demos.
Post Reply
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

New "Game": Conway's Game Of Life

Post by uze6666 »

Image Image
Here's a small project I was doing on the side, Conway's Game Of Life. I was bored and it became the excuse to do a new video mode! It's a dual text+bitmapped mode supporting splitscreen and a resolution of 96x74 pixels in the bitmapped mode and 40x28 in text mode. The bitmap mode also has a dual buffer (two pages) and takes only 888 bytes per page. It's not really a game per se, more a cellular automaton were you set "cells" and watch them evolve according to 4 simple rules.

The in-game menu allows you to pre-set common object like gliders and ships at the cursor position (the red flashing dot). Then hit START to start/top the simulation. Press A to set a cell, B to clear it.

Update 22-jul-2013, v1.1: Fixed the video mode sync issue
Attachments
gameoflife_1.1.uze
(25.46 KiB) Downloaded 925 times
gameoflife_1.1.hex
(70.23 KiB) Downloaded 741 times
User avatar
D3thAdd3r
Posts: 3221
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: New "Game": Conway's Game Of Life

Post by D3thAdd3r »

Perfect port :ugeek:
User avatar
Janka
Posts: 214
Joined: Fri Sep 21, 2012 10:46 pm
Location: inside Out

Re: New "Game": Conway's Game Of Life

Post by Janka »

Nice! I really wondered why nobody had already implemented that.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: New "Game": Conway's Game Of Life

Post by uze6666 »

Janka wrote:Nice! I really wondered why nobody had already implemented that.
The challenge with this game is really the video mode. It really needs to video pages to avoid flicker. A simple 1bpp mode looked too cheap, so I needed a custom mode which also renders the grid and the flashing cursor in real time. I'm wte surprised with speed, thought it would be much slower...
User avatar
Kerby
Posts: 90
Joined: Wed Feb 06, 2013 6:02 pm

Re: New "Game": Conway's Game Of Life

Post by Kerby »

Hi! The game from my childhood, in the era of 8-bit computers, such doing in BASIC. Here works pretty fast! In a new video mode can be white only (Bitmap mode)? While a grid and a red cursor? I'm thinking, what other classic game can be done in this mode...
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: New "Game": Conway's Game Of Life

Post by uze6666 »

Update: Fixed the video mode sync problem. Updated binaries are in the main post.
CunningFellow
Posts: 1445
Joined: Mon Feb 11, 2013 8:08 am
Location: Brisbane, Australia

Re: New "Game": Conway's Game Of Life

Post by CunningFellow »

Uze,

No good for a general purpose bitmap mode, but have you considered that you don't need a WHOLE double buffer if you can do the cell-calculations during render time. You will only need a rolling buffer with two extra scanlines than the screen has.
chocolate7
Posts: 1
Joined: Mon Jan 27, 2014 11:07 am

Re: New "Game": Conway's Game Of Life

Post by chocolate7 »

I really wondered why nobody had already implemented that.
Nice!
Smile PleazZZZzzzZZZzzzz
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: New "Game": Conway's Game Of Life

Post by uze6666 »

FYI, the sources for this project are now available in the master branch. :)
Post Reply