Skip to content

anmej/piston-falling-sand-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piston-falling-sand-prototype

A simple prototype of a falling-sand game, with only 2 types of particles:
moving sand and immobile obstacle.

Space to pause/unpause the game.
R to toggle rain of sand.
D to print debug information to standard output
Left mouse button to draw obstacles.
Right mouse button to delete obstacles and sand.

Change WINDOW_HEIGHT and WINDOW_WIDTH const to adjust the size of the game screen.
Change RAIN_SPARSENESS const to change the density of the falling sand.

This program might require installation of freetype and SDL2 libraries to work.

Compiles with: rustc 1.18.0 (03fc9d622 2017-06-06)

Screenshot

About

Falling Sand game prototype, using Piston game engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages