Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (854)
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 2720 times)
0 Members and 1 Guest are viewing this topic.
Offline Slyth2727
« Posted 2013-07-10 18: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
Offline Slyth2727
« Reply #1 - Posted 2013-07-10 23:47:50 »

Offline Oskuro

JGO Ninja

Medals: 77
Exp: 10 years

Coding in Style

« Reply #2 - Posted 2013-07-11 09: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 18:50:43 »

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

Junior Devvie

Medals: 6

« Reply #4 - Posted 2013-07-17 11: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  

EgonOlsen (1314 views)
2018-06-10 19:43:48

EgonOlsen (1179 views)
2018-06-10 19:43:44

EgonOlsen (916 views)
2018-06-10 19:43:20

DesertCoockie (1318 views)
2018-05-13 18:23:11

nelsongames (1106 views)
2018-04-24 18:15:36

nelsongames (1338 views)
2018-04-24 18:14:32

ivj94 (2080 views)
2018-03-24 14:47:39

ivj94 (1231 views)
2018-03-24 14:46:31

ivj94 (2230 views)
2018-03-24 14:43:53

Solater (798 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!