This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rectar2's profile picture

Fireworks

Started by Rectar2, 27 February 2015 - 05:58 AM
Rectar2 #1
Posted 27 February 2015 - 06:58 AM
Fireworks

A new, more forgiving unit of measure



That screenshot essentially sums it up; it's a firework simulator.

Pastebin code
pastebin get Yn5sWt3f fireworks

Note
On line 2 a variable named launchRate is defined. This variable is the chance of a firework being launched every 0.25 seconds. It can be anything from 0-1. Set this to your liking.
Edited on 27 February 2015 - 06:00 AM
oeed #2
Posted 27 February 2015 - 07:28 AM
Looks pretty cool, I can imagine this being used by many people as a screensaver.
ByteMe #3
Posted 27 February 2015 - 10:25 AM
I am enjoying the few releases of 'screen-savers' recently. :D/>
Dog #4
Posted 27 February 2015 - 04:43 PM
Count me in for fireworks! Nicely done :)/>
Creator #5
Posted 27 February 2015 - 08:08 PM
Super cool.

But I have to say "so useful…"

;)/>
biggest yikes #6
Posted 28 February 2015 - 02:27 PM
Very nice!
Super cool.

But I have to say "so useful…"

;)/>
Not all programs have to be useful!
Creator #7
Posted 28 February 2015 - 02:52 PM
True!