I made some fireworks

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

I made some fireworks

Post by Nuthen224 »

Happy 4th of July from America!
Although I dislike fireworks because they are loud, annoying, and typically used late at night, I was inspired by them and created this.

User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: I made some fireworks

Post by Sir_Silver »

That's great dude, love it =)
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: I made some fireworks

Post by davisdude »

That's actually really good looking! Did you use shaders for the fireworks?
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Re: I made some fireworks

Post by Nuthen224 »

Thanks, I like it too :)

The only shaders used are a bloom shader and another for the white "stripes" on the rockets.

The fireworks were made by spawning a bunch of particles with randomized direction and speed, all affected by gravity.
Each particle records its position and time each frame and then lines are drawn between each of those points. The alpha of the line is the average of its two points' time compared to the particle's current time.

Also each particle is shimmering because a circle is drawn at the particle location with radius randomized each frame.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 75 guests