FLUID SIMULATOR!

This forum is currently in read-only mode.
From the Asset Store
Find pleasure in juggling balls with this basic HTML5 template
  • by fluid i mean any body of liquid/fine dust.

    this is a simple example (CPU WHORE) that i whipped up after seeing a falling sand game on my friends ipod touch at school, i wanted to figure out how it was done so during my french class i thought up of this little beauty, although inefficient through constructs event engine it is by no means ineffectient. ive seen java games with tons of particles run really fast, and after research i saw theyre made my way. which is compare your bottom 5 neighbors and reacts based on which ones are open or closed (via an array)

    the scans are performed bottom to top, so that everything falls at the same time

    i see a possible extension using this in the future, its a really simple concept and it works pretty well 2 this one was thrown toghether.

    http://www.mediafire.com/?sharekey=d3fa ... 4777b59d28

  • CPU Whore is right. I get around 10fps with only 2000 grains of sand. Which if you think about it isn't really all that much considering there are 102400 pixels in your 320x320 app alone.

    I tried bogging it down to 1fps but I gave up around 6500 grains of sand (was about 3fps).

  • as i said, its just a demo really, its an efficient method, just not well used through events.

    http://enigmasand.com/pyro2.html

    this shows the power of the method through java, or even better C++, and my events are a tad messy, i could only account for the grains outside of the main area, but i dint set that up.

    if it can run through and ipod touch thats pretty fast compared to a "real" simulator, although it would be cool to see some GPU powered effects like in that nvidia demo

  • Cool demo.

    BTW is there another way to edit the small sprite beside double clicking them. When objects are small enough it becomes hard to double click on them.

  • That was pretty cool, mine started to drop below 60 FPS at around 2000 though.

    Reminds me of Bloody Zombies

    http://db.tigsource.com/games/bloody-zombies

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Did ok on my laptop... got to 10fps once I hit 6500 or so grains of sand. My main PC doesn't flinch lol... at least, I got bored before it started to slow down... xD

    Cool idea... kind of reminds me of "Powder" by Dan Ball... fun game is fun.

    ~Sol

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)