Giter VIP home page Giter VIP logo

snake's Introduction

warning: this repository is a backup mirror for https://gitlab.com/boreec/snake.

Snake

This is a Snake game completly written in Rust and the SDL2 bindings.

You can see more similar projects here: https://boreec.fr/projects/

Here is a video of the game running: https://www.youtube.com/watch?v=Heaoez-ZWxA

How to execute ?

Use cargo to build this project with the following command:

cargo run --release

If an error occur, make sure the following packages are installed on the system:

sudo apt-get install libsdl2-dev libsdl2-ttf-dev

How to play ?

Use the arrow keys to move around the Snake (light green square), in order to eat the apple. When you eat the apple, the Snake length grows by one. If the Snake encounters a border or itself it dies.

Controls

  • left-arrow key: move left
  • right-arrow key: move right
  • up-arrow key: move up
  • down-arrow key: move down
  • escape key: quit the game and close the window
  • space key: restart the game

Images

snake_img game_over

snake's People

Contributors

boreec avatar

Stargazers

 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.