A talking simulator game written in C++ with SFML Lib.
Main game mechanic is player going around, talking with npc and do question (Discrete Math, Data Structure and Algorithm, Politics, History, …) Answering question will give you point in stats, and your stats with affect the game ending.
Currently the game have up to 9 Ending!
Source repo: https://github.com/quochung-cyou/TalkingSimulator
Project Structure
- main.cpp : Running the game
- Game.cpp : Main game loop
- GameStateBase.cpp, GameStateMachine.cpp: Handle the game state <INTRO (Splash screen) -> STORY -> MENU -> PLAY -> QUIZ -> END>
- GSQuiz.cpp, Quiz.cpp: Handle the question system
- MapConnector.cpp: Store player data like stats, last map, current map, map …
- GSPlay.cpp: Play game state, Gameplay, handle the conversation with npc, render object, interact object
- DialogSystem.cpp: Handle the dialog chat
Installation
Prerequisites
In order to compile this project you will need to:
- have SFML installed on your system. If you don’t know how to do it see this link.
- have CMake installed
Compilation
Detailed explanation here
On Linux with install.sh
- Go in the repo folder
cd the/repo/location
- Execute
install.sh
script
./install.sh
On Windows with CMake GUI and Visual Studio
- Install the right SFML version or compile it (see this)
- Run CMake
- Select the repo location
- Click on
Configure
, if you have installed thex64
version of SFML, in the pop up window selectx64
in theOptionnal platform for generator
drop down - Click on
Finish
- Click on
Generate