Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LittleB0xes/stunning_barnacle
Play with life and Rust
https://github.com/LittleB0xes/stunning_barnacle
life macroquad physics rust
Last synced: 3 months ago
JSON representation
Play with life and Rust
- Host: GitHub
- URL: https://github.com/LittleB0xes/stunning_barnacle
- Owner: LittleB0xes
- Created: 2022-09-09T12:46:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T14:19:00.000Z (about 2 years ago)
- Last Synced: 2024-05-15T14:38:36.322Z (6 months ago)
- Topics: life, macroquad, physics, rust
- Language: Rust
- Homepage:
- Size: 2.22 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-quads - stunning barnacle - a simulator of primitive artificial life using attraction/reuplsion forces between many particles. (Games / Games: On top of macroquad)
README
# stunning_barnacle
**Play with life and Rust**After seeing this wonderful [video](https://www.youtube.com/watch?v=0Kx4Y9TVMGg&t=455s), I wanted to have a little fun with Rust to see what it looks like.
It's a work in progress, and just for fun...For this project, i use (~~[Rust-SDL2](https://github.com/Rust-SDL2/rust-sdl2)~~) [Macroquad](https://macroquad.rs) for rendering
It's still a work in progress...
Actually, it uses a naive approach for collision checking. A future step will be to use quadtrees to make this more efficient.
## How to use it
There are currently 4 types of particles and the possibility of adjusting the forces of attraction/repulsion between each of them by clicking on either side of the colored rectangle.The `A` key allows you to randomize the interaction rules.
The `Z` key is used to generate a new starting position of the particles.
## Some result
![](https://github.com/LittleB0xes/stunning_barnacle/blob/main/screenshots/gif_3.gif)
![](https://github.com/LittleB0xes/stunning_barnacle/blob/main/screenshots/gif_1.gif)
![](https://github.com/LittleB0xes/stunning_barnacle/blob/main/screenshots/gif_2.gif)