Skip to content

vb8146649/SnakeRunners_CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnakeRunners_CPP

Introduction

Snake Runner is a recreation of the classic Snake game, developed entirely in C++ using the Raylib library. This project showcases fundamental C++ concepts such as classes, inheritance, modularity, and the integration of graphics and audio. It serves as a stepping stone for anyone looking to dive into game development with C++.

Screenshot

snakerunner_preview

Features

  • Classic Gameplay: Navigate the snake to eat food and grow longer.
  • Keyboard Controls: Use arrow keys to control the snake's direction.
  • Sound Effects: Enjoy sound effects for eating food and hitting walls.
  • Game Over State: Clear indication when the game ends.

How to Download and Run

Prerequisites

  • Ensure you have Raylib installed on your system.

Clone the Repository

git clone https://github.com/vb8146649/SnakeRunners_CPP
cd SnakeRunners_CPP
  • Open the Repo invscode and press F5. Make sure to Update the task.json.

Controls

Arrow Keys: Control the direction of the snake. AnyKey: Reset the game after a game over.

Learning Objectives

This project was developed to achieve the following learning goals:

Classes and Inheritance: Understanding how to structure a game using object-oriented programming. Code Modularity: Breaking down the game logic into manageable modules. Graphics in C++: Learning how to integrate graphics using Raylib. Audio Integration: Adding sound effects to enhance the gaming experience. Game Mechanics: Implementing basic game mechanics like collision detection and scoring.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published