MultipleGamesinOne is a Windows console game hub written in C++. It brings several classic mini-games into one menu-driven application.
- Brick Breaker
- Pac-Man
- Snake
- Flappy Bird
- Main menu for selecting a game
- Separate source and header files for each game
- Console cursor control for smoother rendering
- Keyboard-based input through
conio.h - Windows console API usage for screen and cursor behavior
- Basic high-score file support
- Code::Blocks project files included
- C++
- Windows console APIs
- Code::Blocks project format
main.cpp Game hub entry point and menu
BrickBreaker.cpp/.h Brick Breaker implementation
PacMan.cpp/.h Pac-Man implementation
SnakeGame.cpp/.h Snake implementation
FlappyBird.cpp/.h Flappy Bird implementation
highscore.txt Score storage
MultipleGamesinOne.cbp Code::Blocks project file
- Open
MultipleGamesinOne.cbpin Code::Blocks. - Build the project.
- Run the generated executable from the IDE.
Compile all source files together with a Windows-compatible C++ compiler:
g++ main.cpp BrickBreaker.cpp PacMan.cpp SnakeGame.cpp FlappyBird.cpp -o MultipleGamesinOne.exeRun the game hub:
.\MultipleGamesinOne.exeThis project uses Windows-specific headers such as windows.h and conio.h, so it is intended for Windows terminals.
This repository is licensed under the GPL-3.0 license. See LICENSE for details.