Asteroids with procedural destruction and fog of war written in Rust
To clone the repo
git clone [email protected]:pum-purum-pum-pum/asteroids2.0.git
git submodule update --init --recursive
Install SDL deps. For example on Ubuntu:
sudo apt-get install libsdl2-dev
sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;
Then with cargo (install if needed):
cargo run --release
And wait while it compiles
All graphics sources are located here
The code is the worst thing that ever existed (How do you like it Terry Cavanagh?). Don't use this code to "learn Rust". It's a collection of worst practices. I highly recommend reading makepad for education/inspiration purposes.
I wrote it during my "learning Rust/gamedev/graphics" times. Don't read it :) I don't know why I haven't used linters at least... But I guess the moment is lost :)
It will not compile without provided Cargo.lock :\
Yes, there are too many dependencies.
Check out the announcement of the game that I'm working now It has nothing in common with twenty asteroids -- it's a strategy and it's online!
It's written much more carefully, but nothing is yet opensourced.