Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 1109 times)
0 Members and 1 Guest are viewing this topic.
Offline Corvo

Senior Newbie


Projects: 1



« Posted 2013-01-14 01: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.

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

Download:
https://www.dropbox.com/s/1nnfzzg3g70gmv6/Gameoflife.jar



Offline HeroesGraveDev

JGO Wizard


Medals: 64
Projects: 8


Muahahahahahaha...


« Reply #1 - Posted 2013-01-14 01: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
« Reply #2 - Posted 2013-01-14 03: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

Senior Member


Medals: 5
Projects: 1



« Reply #3 - Posted 2013-01-14 12: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?

Solution:
1  
java -jar Gameoflife.jar

Or:
1  
javaw -jar Gameoflife.jar
Offline Corvo

Senior Newbie


Projects: 1



« Reply #4 - Posted 2013-01-14 15: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
« Reply #5 - Posted 2013-01-14 17: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 22:43:41 »

The project is now hosted on GitHub.

https://github.com/LucasKl/Plotter
Pages: [1]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (84 views)
2013-05-17 21:29:12

alaslipknot (92 views)
2013-05-16 21:24:48

gouessej (123 views)
2013-05-16 00:53:38

gouessej (115 views)
2013-05-16 00:17:58

theagentd (127 views)
2013-05-15 15:01:13

theagentd (114 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.115 seconds with 20 queries.