Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (582)
games submitted by our members
Games in WIP (503)
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  
  Dynamic Ambient Effect?  (Read 961 times)
0 Members and 1 Guest are viewing this topic.
Offline Slyth2727
« Posted 2013-07-10 20:33:38 »

For a 2d topdown game I have created a particle effect with libGDX that is just small slighly transparent balls floating around, changing, color, and so on to create an ambient effect. As of yet there are no world limits, you can just shoot your little spaceship as far as you would like. Obviously if I created that particle effect every, say, 50 pixels or so it gets very very laggy. So is there a way to only emit the effect near the ship? Also, what other ways can you think of to make a top down space shooter more interesting in terms of graphics? Thanks, -cMp

Check out Escaping Vox, a 3D
|\ _\  voxel based puzzler!
 \|_|
Offline Slyth2727
« Reply #1 - Posted 2013-07-11 01:47:50 »

Anyone?

Check out Escaping Vox, a 3D
|\ _\  voxel based puzzler!
 \|_|
Offline Oskuro

JGO Coder


Medals: 32
Exp: 6 years


Coding in Style


« Reply #2 - Posted 2013-07-11 11:25:41 »

I don't know much about the inner workings of libGDX, so can't help there.

But if, like with Java2d, you have different render surfaces, you might want to render the effect into a smaller viewport-centered surface (layer) rather than all across the game map.

After all, effects are only necessary where the player can see them.


As for making top-down graphics interesting, an easy improvement is to work on the backgrounds. For space games, look into making cool looking planets and nebulae, rather than boring starts (plenty of games do that).

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slyth2727
« Reply #3 - Posted 2013-07-11 20:50:43 »

Thanks for the answer! I have always thought of putting planets in, but I have never done it Wink. Thanks again

Check out Escaping Vox, a 3D
|\ _\  voxel based puzzler!
 \|_|
Offline Otreum

Junior Member


Medals: 6



« Reply #4 - Posted 2013-07-17 13:14:49 »

If it's a sp game, you can probably just have it so once the particle leaves the camera projection area, the particle disappears from existence or something.
Or perhaps have it still exist, but not try to render it, just try to remember it's position incase it hits a ship off screen or something.

As for background stuff, ...stars...does the trick Tongue
In all seriousness though, as suggested, planets in the background, also maybe do some space station ruins, or the hulls of empty space ships from a massive battle floating around which would be not only in a background layer, but also a foreground layer to make if feel like the player is flying through the aftermath, rather than past it.
Shooting stars, comets, asteroid fields, nebulae, black holes, anomolies that you can make up yourself to look cool, they don't need any explanation Tongue.
Random space suit floating around, some kind of space creatures in a swarm like X2 and X3 have space flies (which are illegal, but make lots of money in game) Tongue

Just go crazy with ideas, but not to the point where the player is always going to see a bit of everything, make it random enough and frequent enough so that the player will see these things, but not so frequent that the player is going to see it all the time.
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.

xsi3rr4x (72 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!