Skip to content

The 2D open world game written in C++20 using SFML library.

Notifications You must be signed in to change notification settings

igor-sosnowicz/2d_open_world_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2d_open_world_game

It's the 2D open world game written in C++20 using SFML library for graphics. Work in progress.

Requirements

Software required to build the game:

  • make

  • cmake (version >= 3.22)

  • sfml (version >= 2.6)

  • gtest

Installation

Run the following commands:

cmake . -B build
cd build
make
./run

Todo list

  • Let the player change an active item with the e and q keys.
  • Display an active item in the main character's hand.
  • Add NPCs to the main scene.
  • Let the player start dialogues with NPCs.
  • Each NPCs should have an original dialogue. Dialogues should be automatically loaded from text files.
  • Allow the player to replay any dialogue infinite number of times.
  • Add path to an individual NPC follow. Some NPCs may just stand.
  • Fix the bug causing the player to stop moving only in the conversation with the first NPC and allowing the player to move in the later ones.
  • Fix the bug allowing an NPC to move during a conversation.

Gameplay

Key bindings

Key Action
Enter/Return Go to the next dialogue line during a dialogue.
f Pick up an item.
w Move up.
s Move down.
a Move left.
d Move right.
e Choose the next item from an inventory.
q Choose the previous item from an invetory.
z Start a conversation with a nearby character.

About

The 2D open world game written in C++20 using SFML library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published