/Snake-Game__UnityEngine

Snake Game Using Unity Engine

Primary LanguageC#

Snake Game

Project Assignment 1 - Computer Game Development and Animation , NITW (Winter 2021)

-----------------------------------------------------

📝 About The Project

For those of you not familiar with Snake game, it's a game where Snake (Moving Square Which moves from head side) moves around in a Open Field With Border and tries to eat as many food pellets (the small dots) as possible, while avoiding to Eat his own Body or we say tail. This Game is Based on how much high score you can do it can keep going on for hours even you can manage speed of food generation and speed of snake.

-----------------------------------------------------

☁️ Overview

In this project, the Snake will Move inside the border area, And it have to eat foods moving around. I implemented general Moving algorithm with keyboard keys and algo which keep track of score and increase of size of snake.

-----------------------------------------------------

💻 Language and Tools Used

  • C# - For Coding Part and Libraries.
  • Visual Studio Code - Text Editor For Running C# Codes.
  • Unity Engine - For Handling Scripts with Runnable Environment.

-----------------------------------------------------

💾 Project Files Description

  • Scripts/SpawnFood.cs - Here how and where food will generate with what speed resides.
  • Scripts/MainMenuScript.cs - Where all Main Menu UI design button allignment all resides.
  • Scripts/ScoreScript.cs - This Maintains the Score Increment With Every Food is Eaten.
  • Scripts/SoundManager.cs - This Maintains all Sound Element From welcoming in game to eating food to gameover.
  • Scripts/Snake.cs - This Binds All Scripts and also Handle Movement of Snake and Growth rate of Snake.
  • Scripts/GameOverScript.cs - This Contain GameOver Screen UI design and Score bar.

-----------------------------------------------------

⏯️ How to Run Game

Main-Menu

Main-Menu

Main-Menu