Skip to content

A particles falling simulation using cellular automaton

Notifications You must be signed in to change notification settings

mpioski/falling-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

falling-simulation

A particles falling simulation using cellular automaton and pygame. Pygame is used only for graphics purposes, since the algorithm is independent of the graphics library.

sand

Features

  • Falling sand

TODO

  • Add water
  • Add gas
  • Add oil
  • Add fire
  • Switch to ModernGL
  • Multithreading for each row of the grid

Optimizations

Largers screen sizes, like 800x800, can not be handled by the current branch implementation. However, there is a branch called numpy which is used to speed up the simulation using numpy array as "minimap" to store the current state of the screen.

Installation

pip install -r requirements.txt

About

A particles falling simulation using cellular automaton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages