Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lua Fireworks Simulator

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,656
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 28, 2008

Well, this is another crazy idea, created by me. I was watching 4th of July fireworks, when I suddenly thought, Why can't I try to make a program like that?
So, I did. And this is it. I started it a while ago, back on July 6th. Of course, I've added to it, and it's still getting there.

So, it starts by picking a random number, based on the random size of the explosion radius. (This is because when it makes the explosion, it doesn't like negative numbers.)
After that, it then moves the dot (firework) up at a random speed, until it reaches a random height, where it explodes. The explosion radius is random as well.
Once it has reached the explosion state, it 'dissapates', by decreasing the red color in the explosion, making it look like it faded away.
Once the explosion has faded, then it is black, and is not blitted to the screen anymore, and it starts the whole process over again from there.
It even uses my own MakeRandomStuff() function that I created.

Sorry, you can't see the dot in this video, but it's there. It's not visible because of how small it is.

So, with a little bit of time, thought, effort and knowledge, I (sort of) pulled it off. I'll hopefully be adding to it more.

Again, kudos to all of the great people who made homebrew possible on the PSP! Without them and lots of other people, this would never be possible!
And thanks to PSP-vault.com for their awesome Lua Tutorials! Great job!

If you would like this program for you own use (or any other use), please leave a comment, or send me a message and I'll get it to you ASAP.

BTW, you lost the game. Especially M100kid.

later

Recorded on 7-24-08.

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (ats3117)

  • squares?

  • Yes, I didn't get around to attempting to make the explosion a random thing, like making every other pixel a certain color. And making a circle would be very difficult, as there is no drawCircle() command in this version of luaplayer. So, yeah.

    I'll probably never get it working again, but I've tried a few times. I've moved on to bigger and better things.

    Thanks for watching!

  • nice

  • Thank you.

    Too bad it's broken right now.

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • You should of used particles...

    I made a particle engine if you want to look at it...

    Are you still using lua?

  • @ats3117:

    you could "screen:blit" an image of a firework explosion.

    also you could show random explosions with

    "firework = math.random(1,5)

    if firework == 1 screen:blit(randomx,randomy,fi­rework1)

    if firework == 2 screen:blit(randomx,randomy,fi­rework2)

    and so on

    Greetz,

    0M9H4X

  • hmmm.... i like it.... all you need really is to change the code up to play an animation... but i like this idea too..... i could use this :D

  • Cool idea. Cool work.

  • yea

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more