Page 1 of 3

My 2d particle library! Updated

Posted: Sat Feb 18, 2006 1:45 am
by Joakim Christiansen
Image
A very fast particle library which you can use to create nice effects!
A fireworks example is included, press mousebuttons to test it!
Download

EDIT: New version, with much faster right click rockets!
If you like it feel free to click the paypal button on my webpage! :P

BTW:
And if you're going to use it as a includefile in your project, then you must declare both #ScreenWidth and #ScreenHeight first since it use those constants.

Removed code from forum, since the forum made a mess of it... :?

Posted: Sat Feb 18, 2006 4:50 am
by SoS
Image

PB 4 Beta 3

Posted: Sat Feb 18, 2006 5:10 am
by Amiga5k
I think you have to explicitly enable inline assembler in File/Preferences, Editor/Defaults, third item (checked).

Then it should work.

Russell

Posted: Sat Feb 18, 2006 5:16 am
by SoS
I got this with and without Inline Assembler. :(

Posted: Sat Feb 18, 2006 5:41 am
by Fangbeast
Just tested this on PB4, beta 3 and it works quite well. Didn't have ASM turned on at all.

Must say that it would look good as a screensaver.

I would like to see a self running program with random rockets and streams.

Looking good.

Posted: Sat Feb 18, 2006 6:09 am
by netmaestro
Doesn't work here. Inline Asm enabled or not. Just blank screen with fps continuous updates in top left corner.

Posted: Sat Feb 18, 2006 6:14 am
by Fangbeast
netmaestro wrote:Doesn't work here. Inline Asm enabled or not. Just blank screen with fps continuous updates in top left corner.
Did you read this? "Press left or rigth mousebutton to send up rockets! "

Posted: Sat Feb 18, 2006 8:26 am
by Hroudtwolf
It doesn't work with my PB. (PB 4.00 BETA 3)

Syntax Error on line 88

Posted: Sat Feb 18, 2006 9:37 am
by Comtois
Work fine here . PB4.0 Beta 3

Joakim Christiansen , Very nice .

Posted: Sat Feb 18, 2006 10:05 am
by Hades
Beta 3 and working fine here too.

Nice work. :D

Posted: Sat Feb 18, 2006 3:38 pm
by Joakim Christiansen
It was made with beta 3 and should work nice, don't know why someone got syntax errors...

Posted: Sat Feb 18, 2006 11:28 pm
by va!n
@Joakim Christiansen:
Very nice effect! Works fine here on my system with PB4 beta3 !!! no problems and no source changing required!

The effects runs here at 100 fps/s.... even when i hold down the left mouse button i get arroung 50.000-52.000 particels and they are moving still at 50 fps/sec...

i like the effect! Great work! ;)

Posted: Wed Feb 22, 2006 4:23 am
by Amiga5k
Works here, too, even with Inline turned off.

I'm embarrassed to say, though, that my $25 32MB video card chugs along at 4fps if I hold both buttons for ten seconds or so... I know, time for an upgrade :)

It's a good card for game development, though, because it forces me to think optimally (literally)!

Russell

Posted: Wed Feb 22, 2006 4:38 pm
by Joakim Christiansen
Amiga5k wrote:Works here, too, even with Inline turned off.

I'm embarrassed to say, though, that my $25 32MB video card chugs along at 4fps if I hold both buttons for ten seconds or so... I know, time for an upgrade :)

It's a good card for game development, though, because it forces me to think optimally (literally)!

Russell
Hehe, you should get yourself a new card indeed.
But my code is also a little slow when there is much particles on the screen and the right mousebutton rocket explodes, it's weird...

And yeah, it's smart to do game developing on a old/slow machine!

Posted: Wed Feb 22, 2006 4:41 pm
by netmaestro
@joakim christiansen: Thanks for all the work you did on this, it's beautiful. I tried it a couple days ago but didn't realize I had to press mouse buttons to see anything :oops:
Super job!