Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a5huynh/defender-game
A super basic 2D game written in Rust
https://github.com/a5huynh/defender-game
game-2d piston-game-engine rust-lang
Last synced: 3 months ago
JSON representation
A super basic 2D game written in Rust
- Host: GitHub
- URL: https://github.com/a5huynh/defender-game
- Owner: a5huynh
- License: mit
- Created: 2018-01-29T06:33:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T16:58:05.000Z (over 3 years ago)
- Last Synced: 2023-03-10T22:11:27.858Z (almost 2 years ago)
- Topics: game-2d, piston-game-engine, rust-lang
- Language: Rust
- Homepage: https://a5huynh.github.io/2018/02/02/adventures-in-rust.html
- Size: 524 KB
- Stars: 22
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## defender
This is a very basic 2D game that I built in order to learn and build
a somewhat complex program with Rust.You can check out my write-up of the experience here:
https://a5huynh.github.io/posts/2018/adventures-in-rust/The version that was developed for that blog post is tagged as [v0.1.0](https://github.com/a5huynh/defender-game/releases/tag/0.1.0)
![game in action](docs/final-result.gif)
### Running the Game
Currently there's no packaging to make it easy for non-devs to run the game
on their machines. So to get started with this example, you'll need to have
rust installed and run the following:cargo run
### Controls
Key | Action
------------|--------------------------------
Arrow keys | Move space ship.
Space | Fire bullets.
Enter | Restart game if you died/won.
Esc | Exit the game.