o
odinpkg.dev
packages / app / particle-life

particle-life

71f4080app

A game of life variation based on gravity

MIT · updated 2 years ago

[WIP] Particle Life

note: Lag caused by gif's low framerate. This runs at 240fps.

demo

Rules

In particle life, we spawn a bunch of particles: they each have a position, a velocity and a color. They can attract or repel neighbouring particles. This attraction force is determined by the color of the particle: for each pair of colors, we have an attraction factor that tells us how strong the force between particles of these colors is.

Quick Start

odin run . -o:speed

Inspiration

Tom Mohr's video introduced me to this awesome game.