Git Product home page Git Product logo

rocket's Introduction

Rocket

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

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
Up Boost
Left Rotate left
Right Rotate right
Space Shoot

Running it with Cargo

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

cargo run --release

Caveat: the version of Piston used in this project depends on the FreeType library, which must be installed in your system in order to compile the game. You can install it by following the instructions given in Piston Tutorials/getting-started project

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

rocket's People

Contributors

aochagavia avatar bvssvni avatar byron avatar dtibbs avatar johshoff avatar mightypork avatar zarathustra30 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.