Giter VIP home page Giter VIP logo

snake's Introduction

Snake Game

Snake is a classic arcade game implemented in C++ using the Qt framework. The objective of the game is to navigate a continuously growing snake and eat as much food as possible while avoiding collisions with walls or the snake's own body.

animation2

Features

  • Classic Snake gameplay mechanics
  • Retro color scheme inspired by the Nokia 3310 (RGB(182,196,3) and RGB(101,83,10))
  • Adjustable game grid size and snake scale
  • Increasing game speed as the snake grows longer
  • Pause, resume, and restart functionality

Requirements

  • Qt 5.x

Build

  1. Clone the repository
  2. Create a build directory and navigate to it: mkdir build && cd build
  3. Generate the build files using CMake: cmake ..
  4. Build the project: make

Controls

Action Key
Change snake direction Arrow Keys
Start the game S
Pause the game P
Resume the game R
Start a new game N

Contributing

This project was developed as part of a university course and is not actively maintained. However, if you would like to contribute improvements or bug fixes, you can submit a pull request on the project's GitHub repository.

Credits

Snake was developed by the class of Programming Techniques 2020 under the supervision of Prof. Alessandro Bria at the University of Cassino and Southern Lazio.

snake's People

Contributors

alessiopittiglio 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.