A particle physics simulation built with Zig and Raylib, featuring gravitational interactions.
- Zig 0.15.1 or later
- Raylib (handled automatically via Zig package manager)
# Clone the repository
git clone <repository-url>
cd particles-simulation
# Build and run
zig build run# Build the executable
zig build
# The executable will be in zig-out/bin/particles
./zig-out/bin/particles# Run tests
zig build test
# Build with optimization
zig build -Doptimize=ReleaseFastgravitational-loss/
├── src/
│ ├── main.zig # Main application entry point
│ └── particle.zig # Particle system and physics logic
├── build.zig # Build configuration
├── build.zig.zon # Dependencies
└── README.md # This file
- Original C++ implementation by codemaker4
- Built with Raylib - A simple and easy-to-use library to enjoy videogames programming
- Zig programming language for memory safety and performance and most importantly I love programming in Zig :)