Share your repls and programming experiences

← Back to all posts
Fireworks
ThatCoolCoder

Click on the canvas to launch fireworks. Under the canvas, you can toggle automatic fireworks and change the likelihood of them spawning. I didn't originally intend to make a firework simulation - I was just experimenting with particle effects and I thought to make fireworks.

WORKS BEST WHEN OPENED IN NEW TAB - https://fireworks.thatcoolcoder.repl.co/

Changelog:

  • Optimised particle movement & drawing
  • Improved firework chance slider - improved the exponential function
  • Improved firework chance slider again - made it go from 0 to 1 - thanks to @Bookie0 for this suggestion
Voters
Calbabreaker
Bookie0
gibbsfreenergy
ThatCoolCoder
Comments
hotnewtop
gibbsfreenergy

Dude, this is so cool! Just one suggestion could you make the firwork screen bigger! THIS IS SO GOOD! WOW, @potatojs would be jealous of this!!!

ThatCoolCoder

@JosephSanthosh If I made the canvas any bigger, then the controls at the bottom wouldn't fit on smaller screens.

gibbsfreenergy

Why wouldn't it? More than half the page is empty though. So if you expanded it a little bit then it should be fine right. @ThatCoolCoder

ThatCoolCoder

@JosephSanthosh Where are you viewing it? When I open it at https://fireworks.thatcoolcoder.repl.co/ it fills 90% of screen. (tested on firefox and chrome)

gibbsfreenergy

ohhhh, ok now i get it, i was looking from the post, is there anyway you can reduce the lag when you increase the chance of fireworks. @ThatCoolCoder

ThatCoolCoder

@JosephSanthosh I'll optimise the movement if I can

gibbsfreenergy
gibbsfreenergy

Oh and you should rename it to get more people attracted. @ThatCoolCoder

potatojs

@JosephSanthosh jalous? lmao

potatojs

NICE
but maybe you wanna remove the default padding

good job ;)

Bookie0

nice work! but why does it end at 0.44 lmao?