DEM1TASSE / Greedy-Snake

A Classic Snake Game @Tongji University, 2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Greedy Snake

image

Welcome to Greedy Snake, a classic and addictive game that was developed as the final project for software engineering honors course during my freshman year at Tongji University.

Introduction

Greedy Snake is a retro-style game where you control a snake on a quest for food. The objective is to guide the snake to eat as much food as possible while avoiding collisions with its own body. With its simple yet challenging gameplay, Greedy Snake provides a fun and nostalgic experience for players of all ages.

How to run

To run the Greedy Snake Game, clone the repository and open the "snake.exe" file in the "Release" folder.

Guidance and Screenshots

Main Menu

image
  • Start: Begins the game.
  • RankingList: Displays the top scores.
  • Exit: Quits the game.

Difficulty Selection

image
  • Easy: Choose this for a simple difficulty level.
  • Normal: Choose this for a moderate difficulty level.
  • Difficult: Choose this for a challenging difficulty level.

Gameplay

image

The orange square represents food. Your goal is to guide the snake to eat the food.
Use the arrow keys to control the snake's direction (up, down, left, right).
When the snake eats the food, it will grow longer by one unit, and a new piece of food will appear. Your score will increase by one.
The score counter on the left side of the screen displays your current score.
As your score reaches certain thresholds, the snake's movement speed will increase.
If the snake's head collides with its own body, the game ends and you will be redirected to the Game Over screen.

Game Over

image
  • Clicking the "Back to menu" button will return you to the main menu.
  • Clicking "Exit" will close the game.

Rankinglist

image
  • The Rankinglist screen shows the top five local scores.
  • It displays the highest scores achieved locally.
  • Clicking the "Back to menu" button will return you to the main menu.

Have fun playing the Greedy Snake Game!

About

A Classic Snake Game @Tongji University, 2021


Languages

Language:C++ 81.8%Language:CMake 11.2%Language:C 7.0%