An open API service indexing awesome lists of open source software.

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

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