GlassOverflow

This was a group project where we had to create game around a fluid similation. I worked with Arthur Whurlin and Mael Rios.

The goal of the game is to fill a cup with a fluid. The player can interact with objects in the scene, by moving them or rotating them.

The games uses a real time, particle-based simulation in 2D. The user can interact with it. There is support for various fluid densities and the rendering is made with a pixel art style.

Different fluids

We added collision with walls by replacing them with unmovable particles. We also added a rigid body to the simulation. It is made with particles that will accumulate the forces and then move the whole body proportionaly to its mass.

The rigid body can float

To run everything in real time, we had to optimize carefully the game. We implemented an algorithm called DFSPH. This algorithm assures a good stability with reasonable time steps.