A simple pixel physics simulator in Rust using Macroquad

https://news.ycombinator.com/rss Hits: 9
Summary

Sbixel Sbixel is a very simple pixel physics simulator I made to learn Rust. It uses macroquad for drawing โ€” and I was pleasantly surprised by how simple and awesome it is! Quick demo (click for youtube link): โš ๏ธ This project is very basilar and doesn't have much ambition to go anywhere โ€” it's mainly a learning sandbox. How It Works The simulation uses a "sector" system to reduce unnecessary processing by only simulating active areas of pixels. All settings related to simulation and performance can be found in src/def.rs . TODO List (aka: probably won't do soon ๐Ÿ˜…) That said, here's the current (loose) roadmap. If anyone wants to contribute, Iโ€™d be happy to give my support: ๐Ÿงช Upgrade water simulation ๐ŸŒŠ Improve sand/water interaction ๐Ÿ–ผ๏ธ Render pixels only in active sectors instead of rewriting the whole window every frame instead of rewriting the whole window every frame ๐Ÿง  Refactor pixel_already_processed logic โ€” it's very trivial and causes potential bugs logic โ€” it's very trivial and causes potential bugs ๐Ÿ’จ Add gas simulation ๐Ÿงฑ Add static objects Getting Started Make sure you have Rust installed. Then, run the project with (for performance go --release): cargo run Feel free to explore, break things, and maybe even improve the code ๐Ÿ˜Š

First seen: 2025-08-11 14:49

Last seen: 2025-08-11 23:51