Computer Science Canada TheOneTrueGod's Particle System |
Author: | TheOneTrueGod [ Mon May 01, 2006 5:02 pm ] | ||
Post subject: | TheOneTrueGod's Particle System | ||
Well, since everyone else made particle systems, I decided "Why not me too?" so here's my spiffy particle system (Morphed to resemble fireworks)
|
Author: | upthescale [ Mon May 01, 2006 5:31 pm ] |
Post subject: | |
wow u are a god! |
Author: | Clayton [ Tue May 02, 2006 9:17 pm ] | ||||
Post subject: | |||||
nice, im not exactly sure whats going on in your code (although i have a faint idea, im not quite at your level yet), but i was playing around with it a bit (specifically the wind constant) i think you should either lessen its effect or something (just so it can actually be used more effectively) b/c i gave it a value and when i ran the program the "fire work" just kind of blew across my screen and right across, nice job though. another thing, could i ask you why you chose to do this (im not sure if this is the better way or not, im just asking)
as opposed to
im just wondering about that b/c i didnt know you could do that @upthescale: what is it with you and spamming on this site, its really annoying! use the PM system to say things like that, maybe you should read the rules to find out whats allowed and what isnt |
Author: | TheOneTrueGod [ Tue May 02, 2006 9:30 pm ] | ||||
Post subject: | |||||
I don't believe theres one thats better or not (You'd have to check with a mod / more knowledgable person). I chose to do it one way because it reduces the amount of lines of code, and it makes it so I don't have to have the (IMO) useless variable of "firework" If i was going to create multiple instances of "firework", then I might want to use that method. A very bad example of the above:
Anyone more knowledgable want to add something? Edit: After reading some of catalysts old posts, I discovered another implementation of it. You can return a record from a function. For example,
This may seem useless, but it has quite powerful applications in things like, say, the mandlebrot set. The mandlebrot set has probably (almost definetly) been posted here before, so you can just view it there. If you cannot find it, just send me a request and i'll try and program it and post it. |