A simple console game for learning Rust
Install Rust lang https://www.rust-lang.org/tools/install
- confirm your installation
cargo --version
- Clone this repo and cd to the project directory
git clone https://github.com/sjbeskur/drones-attack.git
cd drones-attack
- Build and run drones-attack using cargo
cargo build
cargo run
or compile standalone binary using the following:
./build.sh
the drones-attack binary will be placed in the "target" folder. To run the binary directly:
cd target
./drones-attack
left arrow - moves player left
right arrow - moves player Right
space - fires missile
esc - quits the game