32leaves.net

Yet another game of life

I’ve always wanted to do something with Java and 3D. Therefore a few years ago, I bought myself a book called “Killer Game Programming in Java“, but honestly only came to like the fifth page. Doing OpenGL or similiar just sucks when don’t even know what a (spatial) vector or matrix is.

A few years later and another year of school later, I do know what those stuff is. And I’m not going to mess around with Java3D anymore. This time it’s the Java Monkey Engine. And just to get my hands on this thing I wrote a small Game of Life implementation. Nothing fancy, and actually it’s just a few GOLs stacked up to become a cube. But nice anyway.

You wanna see this thing? Click here then and hope you’ve got Java WebStart at your fingertips.

Ahh, I forgot the keybindings:

ESC Exit
G Add a glider
R Add some random population
C Clear the population (like kill everyone)
RETURN Let there be evolution

The screenshot is not as much fun as the real “product” is, as you can’t see things evolving.

One Response to “Yet another game of life”

  1. PhiLho says:

    I don’t have luck with your JWS!
    java.io.FileNotFoundException: http://www.jmonkeyengine.com/webstart/jme.jnlp
    Relying on external resources is brittle (except perhaps when offered by Google and such big players, but even then…).

Leave a Reply

Fork me on GitHub