Skip to content

LCZ-ctrl/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-Game

Overview

A snake game developed in C++ using Visual Studio 2022
External library used: Raylib, Dear ImGui, rlImGui

Features

  • Dual difficulty modes. In Hard mode random obstacles are generated and the snake speeds up as it grows
  • High-impact explosion effects and screen shake upon collision
  • Built-in 6 background tracks, supports:
    • Space: Pause / Resume
    • A / D: Previous / Next track
    • W / S: Volume adjustment (±10%) with normalized initial levels
      (Notice: I've already adjusted the initial volume accroding to the source file)
  • Highest scores for both modes are automatically saved to a local folder

Screenshots


Menu
Menu

Normal Mode
Normal mode

Hard Mode
Hard mode

Give it a try now! 👉: Download



How to install external libraries

  • raylib and imgui: vcpkg
  • rlimgui:
    • Make sure you have installed imgui first
    • Clone the library: rlImGui, move the entire folder under the project folder
    • In Visual Studio, right-click the project, select "Properties", select "C/C++", select "General", and add the folder in "Additional Include Directories"

About

A snake game with UI developed in cpp, supporting dual difficulty modes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors