An open API service indexing awesome lists of open source software.

https://github.com/boreec/space-race

Implementation of the Space Race game, created by Atari.
https://github.com/boreec/space-race

arcade-game atari-games game game-development indiegame rust rust-lang sdl2 sdl2-ttf spacerace

Last synced: about 2 months ago
JSON representation

Implementation of the Space Race game, created by Atari.

Awesome Lists containing this project

README

        

warning: this repository is a backup mirror for https://gitlab.com/boreec/space-race

# Space Race

This game is an amateur reproduction of the [Space Race](https://en.wikipedia.org/wiki/Space_Race_(video_game)) game initially created by Atari, Inc. in 1973.

This program was built completely with rust and the sdl2 bindings.

I made a brief video of the game running on [youtube](https://www.youtube.com/watch?v=bzm3udWB7Kc)

## How to run ?

Use **cargo** to build and run the program:
```bash
cargo run --release
```

## Documentation

If you are interested in the code, you can read the documentation with:
```bash
cargo doc --open
```

## Gameplay

Your goal is to pilot your spaceship (on the left) towards the top of screen, while avoiding missiles.
You have 45 seconds (indicated by the decreasing timeline in the middle of the screen) in order to score
more points than your opponent (on the right), controlled by the computer.

Every time you get touched by a missile, you respawn after a few seconds at the bottom of the screen!
Although your opponent keeps moving upward without resting, it may not be the best strategy to win...

### Controls

You can use the following keys during the game:
* **ESC key** : Quit the game (you can also click on the window's cross).
* **Space key**: Restart the game.
* **Up arrow key**: Move your spaceship toward the top of the screen.
* **Down arrow key**: Move your spaceship toward the bottom of the screen.

### Images


disclaimer
game
game_over


## Troubleshooting

If you have issues building the program, make sure the following packages are installed on the system:

```bash
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev libsdl2-gfx-1.0.0 libsdl2-gfx-dev
```