![]() |
Remake of classic style Fireworks
2 Attachment(s)
This is a remake of fireworks I did in GS1 years ago, before I could go on Testbed to learn GS2. Please, don't state the obvious, that I didn't use the built in particle engine, I'll work on it later... maybe. But any other comments are welcome. :D
Also thanks to Door for helping me make it prettier. And all the Testbed Server people for allowing me to learn GS2 there. And for everybody else in IRC who logs into testbed just because I say help I need a body to test on! PHP Code:
|
Quote:
|
You could shorten some things considerably:
PHP Code:
PHP Code:
PHP Code:
temp.i.red = temp.i.green = temp.i.blue = 1; this.rockets = this.bursts = his.trails = new[0]; |
You can make the whole thing more colorful and more realistic by using my HSLtoRGB function, allowing you to have slightly different tones of whichever color you wish. Bet it looks quite cool :) I guess adding a random hue value between -0.02 and 0.02 to the color of your choice using my function should do the trick. Those single color effects still look a bit not-so-nice, so that'd spice it up (:
|
Quote:
|
Dusty's inspiration and comments added. Should be outwardly the same, but the code is much shorter in the color respect. I wonder if you can add a random function to an array and let it pass through so the value is random everytime, although my hack really didn't add even a single line.
Added: I am wondering, I think I can assign one of TStaticVar's subvariables as a funciton pass it through to the moving updating and have it do some fancy processing that way. Maybe I'll try that later. Now that that's out of the way, perhaps I'll work on that HSL, i'm curious how it will look. PHP Code:
|
Quote:
|
Quote:
|
I added code so when somebody shoots a rocket, all players with the weapon can see them. The colors and burst shape might be different, but the trajectory should be the same for everybody.
PHP Code:
|
All times are GMT +2. The time now is 09:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.