Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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 2017 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 Kernel


Medals: 238
Projects: 11
Exp: 2 years


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


« 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

JGO Kernel


Medals: 201



« 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
« 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

JGO Kernel


Medals: 201



« 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  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

pw (18 views)
2014-07-24 01:59:36

Riven (17 views)
2014-07-23 21:16:32

Riven (14 views)
2014-07-23 21:07:15

Riven (17 views)
2014-07-23 20:56:16

ctomni231 (45 views)
2014-07-18 06:55:21

Zero Volt (40 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (36 views)
2014-07-16 23:30:00

Cero (51 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!