Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  SpaceMaker (Fun with particles)  (Read 1193 times)
0 Members and 1 Guest are viewing this topic.
Offline StumpyStrust

Full Member
**

Posts: 103
Medals: 1



« on: 2012-01-20 22:16:32 »

Hello world.

I have been goofing around with particle systems for a while now and this is one of the results.  Grin

I call it SpaceMaker. It is a great way to kill time, slack off at work, or procrastinate a school project.
(will probably keep you amused for 10-15 minutes depending on your attention span and love of colors)

The game lets you create outer space like scenes and then mash them up with mouse clicks and drags.

The controls are in the readme as well has how to install it.

It is relatively intensive on the gpu/cpu so its recommended to not run it on a machine that uses integrated graphics.

Here it is "http://www.2shared.com/file/vVL96tx-/SpaceMaker.html" Sorry I do not have a website or anything to let you play it online.    Sad

Enjoy.


<Edit>
Another DL link "http://www.mediafire.com/?zguc6zru665gntc"

Screens.






Offline ReBirth

JGO Wizard
****

Posts: 1279
Medals: 19



« Reply #1 on: 2012-01-20 23:48:19 »

Really unfortunately, my ISP use public IP so I can't DL. Try mediafire maybe? I suggest you to have weebly site, it's free and support applet. Check out my site.

Follow me, your mastah, on TWITTAH!
Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #2 on: 2012-01-21 01:40:51 »

I believe you have an off by one error in there: hitting G adds 5001 particles and hitting H adds 501 particles Wink

Anyway, this was stunningly beautiful! I could get up to 30,000 particles at 100FPS. So many neat tricks when clicking and moving around Tongue

I bet the full screen would have looked even better if you had set the DisplayMode to the desktop resolution by doing Display.setDisplayMode(Display.getDesktopDisplayMode()) and then setting the glViewPort and glOrtho correctly.

Games published by our own members! Go get 'em!
Offline StumpyStrust

Full Member
**

Posts: 103
Medals: 1



« Reply #3 on: 2012-01-21 02:58:47 »

Ehh there are 2 particles that jump to the mouses location and out of habit I made it get the size - 1 instead of just size.  Grin

And yeah I tried the full-screen method you said but when I did glOrtho to the new size, it retained the original ortho, 800x600.

The only thing I want to change in it, is letting the user define the chance that a particle will be a "space dust" particle or a star particle.
Looks more realistic with less stars and more dust.  I also wanted to colorize a gray scale texture so there is much more variety in the textures but ehh whateverz.

[Edit]

No you were right it was creating 5001/501 particles. I had thought I put the 2 "pulling" particles in the array but I did not.
my for loop had "<= 5000" and it starts at 0. So 5001 particles. Lulz
Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #4 on: 2012-01-21 03:11:19 »

1  
2  
3  
4  
glViewPort(0,0,Display.getWidth(),Display.getHeight());
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0,Display.getWidth(),Display.getHeight(),0,-1,1);

Pages: [1]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.125 seconds with 19 queries.