NOTE It was my first uni project, so it's a bit chaotic and doesn't obey every OOP rule, but i was really satisfied with the result.
A student life survival simulator developed in C++ using the SFML library. Manage your hunger, exhaustion, and finances while fighting off hooligans to survive the week and pass your final exams!
- Survival Stats: Monitor Health, Hunger, Sleep and Money.
- Locations: On map there are few interactive locations where you can sleep, eat, shop and study
- Combat: Hooligans appear on the map at night. Defend yourself by throwing bottles!
- Goal: Reach 20 Knowledge points within 5 days without dying.
Tutorial prepared for Visual Studio IDE. This project uses vcpkg in manifest mode. This means the SFML library will be downloaded and configured automatically when you first build the project.
-
Open PowerShell or CMD as an Administrator and navigate to a folder where you want to keep vcpkg:
git clone https://github.com/microsoft/vcpkg.git # download .\vcpkg\bootstrap-vcpkg.bat # build .\vcpkg\vcpkg integrate install # integrate
-
Clone this repository:
git clone https://github.com/kubapadlo/StudentSimulatorGame.git
-
Open the project: Double-click
StudentSimulatorGame.slnto open it in Visual Studio 2022. -
Set the Working Directory (Crucial for Assets):
- Right-click on the project name in Solution Explorer -> Properties.
- Go to Debugging -> Working Directory.
- Set it to:
$(ProjectDir) - This ensures the game looks for fonts and textures in the
assets/folder.
-
Run the game: Good luck, have fun! :)
- WSAD: Character movement.
- SPACE: Shoot/Throw bottle.
- MOUSE (LMB): Interact with menus, shop items, and buttons.
- ARROWS / ENTER: Navigate and select options in the Main Menu.
- Language: C++ 17/20
- Library: SFML 2.6.1
- Package Manager: vcpkg (Manifest Mode)
- IDE: Visual Studio 2022
