New little engine - opinions wanted

I just made a new little engine. WHat it does is raising and lowering the level of the image and adds light corresponding to this.

Link:

http://ryer.dk/applets/?applet=push

Use left and right mouse button to raise / lower the level

What do you think?

wow, very nice. Love the bugs and liquid!

With “Liquid” you mean the “Sand” ?

Nice work, I think the sand/solid demo is pretty amazing too. Do you do the physics calculations for each particle?

In the Sand/Solid applet I have an array of booleans (A map) to determine if a certain spot is takeng by another sand-particle. Then I have an array of ints telling how high the ground gows.

When a sand-particle is updated, it checks if the spots beneith is free. This is found out by combining the boolean map and the ground int-array. If is is taken it checks if it is possible to move to one of the sides.

So the answer is yes, I do the calculation for each sand-particle :slight_smile: