Almost a game with no events

Post your own tutorials, guides and demos.

Post » Wed Feb 11, 2009 1:12 pm

Inspired by mipey's snow / rain demos and David's No Events stuff, I thought I'd see how far I could go with no events. Using only the particle emitter for everything but the ship (has 8 direction behaviour assigned to it so you can use the arrow keys to move) and the background of course. I was going to add 1 event and a couple of actions to do collision but found out that the particle emitter has no collision stuff... oh well. It was fun anyway!

BTW, there's a glow shader being used for the glittery stars. Remove that shader if you have problems.

I'm uploading to zippyshare for now until I sort out some permanent space as the attachment limit here is 256k.



[url=http://dl.dropbox.com/u/666574/Starfield%20No%20Events%20v2%20Asteroid%20Terrain.cap[/url]
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Wed Feb 11, 2009 6:00 pm

Very nice ! :D

Are teh graphics yours ?


thats awesome that you could use the particle object to have fly debree etc in the background of a game.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Wed Feb 11, 2009 7:21 pm

Yeah the graphics are mine. Been a long time since I did any graphics so I'm a bit rusty!

The particle emitter is so powerful from the get-go. It's a shame there's no collision stuff for the sprite / texture... maybe in a future update we could have the option to assign that to a family... But yeah it'd be great for debris and stuff like you suggested.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Wed Feb 11, 2009 8:18 pm

Quite CPU intensive, though. At least it is stuttering for me...
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Feb 11, 2009 10:34 pm

What CPU do you have?
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Thu Feb 12, 2009 3:42 am

Nice :D

It's also a little laggy for me on my laptop... 2.2Ghz Centrino Duo.

Graphics are really nice though!

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Feb 12, 2009 9:05 am

[quote="procrastinator":l69ft96i]What CPU do you have?[/quote:l69ft96i]
Celeron 2.4GHz :?

Pretty low end, yeah.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Feb 12, 2009 11:37 am

Could be the huge 256x256 asteroids then. I noticed I had the timeout set to 5 - 8s on particles that were on screen for around 2-3secs. I sorted that and I'm not sure if it made any difference at all on my work machine (dual core). I'll try it on my P4 after a few adjustments and will post the results/update here. Would be nice to get it smooth on low end machines.

Cheers guys!
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Thu Feb 12, 2009 1:12 pm

The FPS varies between 40 and 75 on unlimited mode, stutters a bit here and there.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Feb 12, 2009 1:34 pm

OK after some quick experimenting.. I was getting 500-600 FPS with this version. Then I set about deleting each particle emitter one by one starting with the asteroid particles and the frame rate only went up around 50-100 FPS. Eventually I deleted the background glittering stars and my FPS shot up to 2000+! So... that emitter was causing a huge slowdown. I disabled the effects on that layer and it runs at 2000+ FPS so that's where the problem was... at least for me.

Try removing those effects and see what your FPS is :)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest