Skip to content

This software is a physical simulation. You can arrange different physical elements anywhere in the window, and they will evolve with each other according to the laws of physics.

License

Notifications You must be signed in to change notification settings

maxencebonamy/Sand-Box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sand Box

sand_box.mp4

Description

This software is a physical simulation. You can arrange different physical elements anywhere in the window, and they will evolve with each other according to the laws of physics.

air Air: the basic element, used above all to "clear" the screen if you've placed too many elements. Be careful: if you place air in water, the air will obviously rise to the surface.

sand Sand: evolves simply like powder, so is subject to gravity and forms hills.

water Water: evolves simply like a liquid, so is also subject to gravity, but spreads wherever possible.

steam Steam: evolves simply like a gas, but rises as high as possible because steam is lighter than air. Steam can return to its liquid state and turn back into water after a while, which is similar to rain.

wood Wood: here, the wood doesn't fall, which may seem odd, but you have to imagine that it's fixed in height. The wood burns and the fire spreads relatively quickly over it.

fire Fire: heats or even burns an element. Placed next to wood, it ignites the latter. Placed near snow or ice, it will transform it into water, and will also transform the latter into steam.

ash Ash: when wood burns, it turns to ash, which falls like sand, thus acting like powder.

stone Stone: like wood, it doesn't fall, and you have to imagine that it's "fixed". There's nothing special about stone, except that it doesn't burn.

acid Acid: dissolves any element, such as stone. Caution: when acid touches water, it dissolves.

snow Snow: acts like a classic powder, like sand or ashes. Beware, however, that snow sometimes transforms into water after a certain time, as the temperature of the simulation is considered to be room temperature.

ice Ice: like wood or stone, ice is not subject to gravity. And like snow, it melts after a certain time, turning into water.


Get Started

Launch the software:

  1. Click on the Releases button on the right and select the latest version.
  2. Download the .zip archive and extract the files.
  3. Run the .exe executable.

Compile:

Note

Prerequisites:

  • Git must be installed on your computer. If not, click here.
  • Xmake must be installed on your computer, if not, click here.

  1. Clone the repository on your computer. To do this, open a terminal in the folder of your choice and run the following command:
git clone https://github.com/maxencebonamy/Sand-Box
  1. Navigate inside the folder you've just cloned with the following command:
cd Sand-Box
  1. Compile the project with the following command:
xmake
  1. Run the executable with this command:
xmake run

Features

Actions you can perform in the software:

  • Hold down the left click and move your mouse to place elements on the window.
  • Right-click to show or hide the selection bar for the current element.
  • If the element selection bar is displayed, simply left-click on an element to select it.

About

This software is a physical simulation. You can arrange different physical elements anywhere in the window, and they will evolve with each other according to the laws of physics.

Topics

Resources

License

Stars

Watchers

Forks