Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Conway's Game of Life  (Read 4831 times)
0 Members and 1 Guest are viewing this topic.
Offline Corvo

Senior Newbie

Projects: 1

« Posted 2013-01-14 00:11:50 »

I am playing around with Conways Game of Life for some days.
It is nothing special or new but i am going to implement some features which could be interesting.
The only thing which is ready now is the Distribution view with which i wanted to see if the 'cells' are getting distributed equally after some time.
Another feature i thought of is to generate some kind of music from the Game.
My goal is to get it running proper on Android, which would be cool with pinch zooming etc. .
I cant ensure that it will run, it runs on my computer but wont work on another (Could not find the main class)

The distribution view with blur (low pass).

The normal view.

Mouse dragged / Arrow keys: move around
1 : normal view
2 : distribution view
+ / - : increase / decrease speed
w / s : zoom in / out
r : reset


Offline HeroesGraveDev

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻

« Reply #1 - Posted 2013-01-14 00:36:08 »

I'd like to see terrain generated from the distribution view.
This could be good for landscapes that change over time.

As for the main class error. It could be that the Java version used to develop this is higher than the version giving the exception. I recommend using Java 6 if you happen to be using Java 7 currently.

Offline sproingie

JGO Kernel

Medals: 202

« Reply #2 - Posted 2013-01-14 02:47:20 »

That's a lot of cells in that distribution view.  How many FPS you getting from that?

Ah nevermind, the thumbnail made the field seem much larger.  I really like the effect -- maybe add a low-pass filtering algo to screen out the red cells and it really would look even more like some organic growth than conway's life normally does.

Any chance you could put it up on github or bitbucket?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orogamo
« Reply #3 - Posted 2013-01-14 11:03:53 »

Missing main class has something to do with the manifest or something.
it works in eclipse or similar IDE, but not as distributed jar, right?

java -jar Gameoflife.jar

javaw -jar Gameoflife.jar
Offline Corvo

Senior Newbie

Projects: 1

« Reply #4 - Posted 2013-01-14 14:25:57 »

Yes i am working with Java 7 (OpenJDK), i think i'm going to switch to Oracle Java  Undecided
It works when started in Intelij / eclispe and as a .jar file on my machine (Fedora 17)
The error happened on a Windows 7 machine.
Offline sproingie

JGO Kernel

Medals: 202

« Reply #5 - Posted 2013-01-14 16:01:23 »

I simply double-clicked on the jar (on a Windows 7 machine) and it just worked.
Offline Corvo

Senior Newbie

Projects: 1

« Reply #6 - Posted 2013-01-18 21:43:41 »

The project is now hosted on GitHub.
Pages: [1]
  ignore  |  Print  

xxMrPHDxx (22 views)
2017-11-21 16:21:00

xxMrPHDxx (14 views)
2017-11-21 16:14:31

xxMrPHDxx (17 views)
2017-11-21 16:10:57

Ecumene (117 views)
2017-09-30 02:57:34

theagentd (150 views)
2017-09-26 18:23:31

cybrmynd (260 views)
2017-08-02 12:28:51

cybrmynd (253 views)
2017-08-02 12:19:43

cybrmynd (248 views)
2017-08-02 12:18:09

Sralse (260 views)
2017-07-25 17:13:48

Archive (882 views)
2017-04-27 17:45:51
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!