8000 GitHub - prof-redstone/sandbox: sandbox simulation c++
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prof-redstone/sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sandbox C++ simulation

forthebadge

This is my c++ sanbox simulation made from scratch using only the SFML library for rendering.

Below you will see a list of custom materials and propreties assiociated ith them.

Materials

Material Sand-like Liquid Solid (no gravity) Settable on fire Can generate heat Evaporates with heat Corrodible Water soluble
Sand
Water
Stone
Wood
Salt
Oil
Lava
Coal
Snow
Ice
Acid
Bedrock

special elements :

  • air : empty cell without update.

  • fire : air with fire set to on, can propagate heat but won't move or evolve.

  • steam : generated when water is heated, float up and after a moment cooldown back to water and raindrops.

  • salt-water : produced by dissolving salt in water, will generate steam and salt cell when heated.

Examples

Lava flow simulation

Lava flow and cooldown into stone.

Water dissolving salt

Built water circuit to dissolve salt.

Example of burning elements, and acid destroying stone

Oil, wood and coal can be set to fire, and propagate heat, water turn into steam.

Acid destroys stone and organic matter.

Example of ice turning into steam due to the lava

Snow and ice melt on contact with hot materials such as lava, and turn into water then steam.

Controls :

Controls Sand Water Stone Wood Salt Oil Lava Coal Snow Ice Acid Bedrock fire air
Keyboard S W T O L I V Q N G C B F A

Space_bar : pause simulation.

Up-arrow : increase speed of simulation.

Down-arrow : decrease speed of simulation.

Back-space : clear all with air.

External references :

Some external references I'm using to build this project :

About

sandbox simulation c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0