Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Using Shapes as a Particle Engine

Author
Message
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 6th Mar 2007 11:33 Edited at: 28th Mar 2011 02:37
This example uses the PlayBasic shape engine to draw particles. Using Shapes allows the pixel rendering to be batched, so you only have to control the overall colour, size & rotation of the object. Simple by effective!


Get Source Code

Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 19th Mar 2007 20:22 Edited at: 28th Mar 2011 02:38
Particle Sprinkler

This is variation of the recent particle shape demo and is rendering around 34,500 alpha addition dot particles.

Source Code

Note: The example was written in PB1.68 (or so) but will work in older versions of PB also. (Just a bit Slower)


Screen shot attached also.

Login to post a reply

Server time is: 2026-07-05 10:09:45
Your offset time is: 2026-07-05 10:09:45