[Game C++] Talking Simulator

[Game C++] Talking Simulator
Screenshot 1

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 the x64 version of SFML, in the pop up window select x64 in the Optionnal platform for generator drop down
  • Click on Finish
  • Click on Generate

Screenshots


Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5
Screenshot 6
Screenshot 7

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply