Nazar2347/Snake
关于
My own representation of a classic Snake game
游戏与模拟器可以做什么
- 🎮 W,A,S,D - controls
- 🤖 Movable food for Snake - so it's a bit challeging :)
- 🔰 3 levels with different layout + Level cutomization (incoming feature)
- 🟢 Rendering, UI, visuals with Raylib
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Snake Game (C++ / Raylib)
My representaion on the classic Snake game, built in C++ with Raylib library for rendering and CMake for build automation. Includes core game logic, interactive UI, and robust unit tests using Catch2
Project Features
- 🎮 W,A,S,D - controls
- 🤖 Movable food for Snake - so it's a bit challeging :)
- 🔰 3 levels with different layout + Level cutomization (incoming feature)
- 🟢 Rendering, UI, visuals with Raylib
- 🧪 Unit tests with Catch2
- 🧱 Used OOP Game patterns: Command, GameLoop, Game State
- 🧩 Separeted {core logic} from {render} and merging into {game logic} then into game loop
- 📁 Clean folder structure and CMake build automation
- 📄 DoxyDocumentaion
- 📑 Clang for Code formating
- 📊 Kanban Project Managment methodology using Jira
Gameplay

How to run the game (Windows) (2.17 MB) 🕹
1st Option You can run game by cloning my project and run those commands:
- cmake -S. -B ./build -DCMAKE_INSTALL_PREFIX=
- cmake --build ./build --config Release
- cmake --install ./build And afterwards, you should get executable in your desirable folder
2nd Option:
Download from my GoogleDisk
OR
3rd Option: (⚠️ Not reliable )
Run .exe file in "Install" folder
How to run the tests 🧪
- Clone repository, open command console in downloaded repo
- Run these commands:
- cmake -S . -B ./build
- cmake --build ./build
- ctests --test-dir ./build/tests --verbose
OR
You can see tests are always running after succesfull build and compilation of the program!
Project structure📂:
Snake/
├── Assets # Textures for game
├── external #External libraries source files (RayLib)
├── Install/ # Game Instalation package
├── source/
│ ├── Core/ # Game logic (Snake, Board, Food)
│ ├── Render/ # Raylib rendering code
│ └── App/ # Game entry point and logic
├── Tests/ # Catch2 unit tests
├── CMakeLists.txt # Build configuration
└── README.md # This file
Kanban Project Managment methology 📊🧐
- Since the beginning till the first release version all the work tasks have been described and managed
by applying Kanban Project Managment methology in Jira Atlassian to have structured worflow and clear steps inorder to succeed

🤓☝️ It's my third small game project, where this time I used newly obtained skills such as:
- Game Patterns (GameLoop, Command,Game State)
- Combination of popular code practices (S.O.L.I.D), and less coupling class architecture
- Smart pointers
- Jira Kanban project managment
- GitHub branch-based workflow
PROJECT UPDATE NOTE:
Special thanks to Cherno who made 2 amaizing videos to review my project,
and THANKS to ALL programers who were supporting me and giving an advices/critics which pointed me to my weak points!
I achived and got all what I wanted and even more in terms of experience and knowlenge! 🧠⚡️
THANK YOU ALL VERY MUCH!!! 🙏🏻
I have learned a lot during this project. It was an greate opportunity to finally pour my knowlege gained
from courses and books into practise, especially I finally get familiarized with OOP stuff
and used my knowlenge in Project Manegment (which I gained in one of named subjects in University: WSB-NLU)
And as you saw and guessed, I indeed used AI for creating documentation and creating some game assets but not fully used it in code,
as after first attempts AI was leading me in completele wrong direction ❌ so.... I abounded using AI after 3-4 days.
The rest was my pure code and code-style fix form "Clang Fromat"
For now.... I want to archive this project put it onto shelf and abondom it, as I want to grow and go further but...
this time in Unreal Engine 5 and VR which is my dream destination point!
And AGAIN: THANKS YOU ALL VERY MUCH for Support!💛
探索相关项目
加载中…