hp
toc

Circle Walk

2015-03-30, post № 4

programming, Pygame, Python, #circle, #color, #controlled, #distance, #entity, #influence, #mouse, #orbital, #pi, #random, #repel, #simulation, #spawn, #system

In an attempt to create systems with entities which influence each other I created ‘Circle Walk’. In this program you can spawn in entities which will go around the center with variant speed. When two entities get near each other, they will randomly change their distance to the center and eventually get away from one another.

Usage

  • Click with the left mouse button to spawn in a new entity.
circle-walk-1.png
circle-walk-2.png
circle-walk-3.png
Source code: circle-walk.py
Jonathan Frech's blog; built 2024/04/13 20:55:09 CEST