Coder Social home page Coder Social logo

2d_open_world_game's Introduction

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.

2d_open_world_game's People

Contributors

iamhexi avatar krzysztof01-sz avatar

Stargazers

Raman Verma avatar  avatar Damian Mendel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.