Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grazen0/space-invaders
Space Invaders emulator written in Rust
https://github.com/grazen0/space-invaders
emulator intel-8080 rust sdl2 space-invaders
Last synced: 7 days ago
JSON representation
Space Invaders emulator written in Rust
- Host: GitHub
- URL: https://github.com/grazen0/space-invaders
- Owner: Grazen0
- License: mit
- Created: 2022-03-29T03:49:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-26T01:58:25.000Z (about 1 month ago)
- Last Synced: 2024-12-26T02:39:19.693Z (about 1 month ago)
- Topics: emulator, intel-8080, rust, sdl2, space-invaders
- Language: Rust
- Homepage:
- Size: 224 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Space Invaders
A pretty cool arcade Space Invaders emulator written in Rust, and powered by [SDL2](https://www.libsdl.org/).
## Try it out!
If you use [Nix](https://nixos.org), you can try out the program with the following command:
```bash
nix run github:Grazen0/space-invaders
```## Building
You will need the following dependencies:
- `rustc` and `cargo`
- SDL2The project may be built simply by using `cargo build`, or execute it directly with `cargo run`.
## Usage
The game uses the following mappings:
| Key | Mapping |
| :---------: | :-----------------: |
| C | Insert coin |
| T | Tilt |
| Enter | Player 1 start |
| Left arrow | Player 1 move left |
| Right arrow | Player 1 move right |
| Up/Z | Player 1 shoot |
| X | Player 2 start |
| A | Player 2 move left |
| D | Player 2 move right |
| Space/W | Player 2 shoot |The following additional binds are also present:
| Key | Action |
| :----: | :-------------: |
| Ctrl+Q | Quit game |
| Ctrl+S | Save game state |
| Ctrl+D | Load game state |
| Ctrl+R | Reset game |