Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 784 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 784 Bytes

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