Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (33 loc) · 1.49 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.49 KB

Twenty asteroids

Asteroids with procedural destruction and fog of war written in Rust

The project is abandoned long time ago.

twenty asteroids

How to run

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

Art

All graphics sources are located here

Code

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.

New game

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.