Skip to content

baishuai/rocket

 
 

Repository files navigation

Rocket

Travis Build Status

Rocket is a toy game written in Rust, using the Piston library. The code is thoroughly commented in order to help people to follow it easily.

Screenshots

Screenshot

Auto Play mode

use Left Ctrl to enter auto play mode,
any other key will leave auto play mode.

Auto Play

You can find more screenshots in the screenshots directory.

How to play

As you can see in the screenshots below, you are the red rocket and have to save the world from the yellow invaders. To do so, you can use the following controls:

Keyboard Action
Boost
Rotate left
Rotate right
Space Shoot
LCtrl Auto-Mode

Requirements

Rocket targets the latest stable version of Rust.

Running it with Cargo

As always, it is a real pleasure to work with Cargo. You only need the following:

cargo run --release

Why?

After having implemented some toy games in C++ using SDL and SFML, I thought it would be a good idea to try the same in Rust. Additionally, I had written a similar game in Haskell and wanted to port it to see the similarities and differences between Haskell and Rust. Another reason to program this game was to have an easy to follow Rust project that could be useful for people learning the language.

License

MIT

About

A toy game in Rust, using Piston

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%