https://github.com/thekoushik/life-sim-2d
2D life simulation with Bevy
https://github.com/thekoushik/life-sim-2d
2d bevy rust simulation
Last synced: 2 months ago
JSON representation
2D life simulation with Bevy
- Host: GitHub
- URL: https://github.com/thekoushik/life-sim-2d
- Owner: thekoushik
- License: mit
- Created: 2025-11-04T18:03:19.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-11-06T05:01:37.000Z (8 months ago)
- Last Synced: 2025-11-06T07:04:28.986Z (8 months ago)
- Topics: 2d, bevy, rust, simulation
- Language: Rust
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Life Sim 2D
This is a 2D life simulation built with Bevy.
## Installation
1. Clone the repository
2. Run `cargo run` to download dependencies and start the simulation
3. Press F12 to toggle the FPS counter(on by default)
## Features
- Prey(Yellow) and Food(Green) entities
- Spatial grid for efficient lookup
- Perception system for detecting nearby entities
- Behavior system for controlling entity behavior
- Genetic system
- Camera movement with WASD keys
- Forest like areas for food
- Entities age and die
- Click to spawn prey and food
- Cascade movement for avoiding neighbors
- Basic reproduction system
- Species system for grouping entities
## Requirements
- Bevy 0.14.0
- Rust 1.85.1
## TODO
- [x] Reproduction system for entities
- [x] Simulation speed
- [x] Add species system for grouping entities
- [ ] Same species herd formation
- [ ] Performance optimizations
- [ ] Add more complex evolution
- [ ] Needs system for tracking entity needs
- [ ] Add predators(Red) system for hunting prey
- [ ] Add corpse and decay system
- [ ] Add more complex behavior
- [ ] Add more complex environment
- [ ] Add more complex interactions
- [ ] Add more complex ai
- [ ] Add more complex genetics
- [ ] Monitoring system for tracking entity health and behavior
- [ ] UI for managing simulation