Skip to content

This is the repository for my small youtube series ~Create a C++ Text RPG~

License

Notifications You must be signed in to change notification settings

dwjclark11/TextRPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextRPGTitleScreen

C++ Text RPG

This is the repository for my youtube series that I am working on Create a C++ Text RPG! Currently this is only compatible with windows. It uses direct Windows API calls for the Console, Events, Inputs, etc. I may try to make it cross platform; however, I have a lot of other projects that need work as well, so that is on the back burner currently.

This is a work in progress and there are still many different features that we need. ** The current layout works on my machine and my crash on a smaller resolution. There are some magic numbers that are not checking if we are writing beyond the buffer boundaries. **

Build

  • Clone the repository git clone https://github.com/dwjclark11/TextRPG.git.
  • Go into the repo directory and run cmake -S . -B build.
  • Go into the build directory and run cmake --build . --config Debug or config Release.
    • If on MSVC, you can build from the sln that would have been generated.
    • MSVC also creates new Debug/Release folders when building. The assets folder gets copied to the bin folder.
    • Move the assets folder into the Debug/Release folders.

Features

Here are some of the features that have already been implemented.

  • StateMachine
    • The state machine allows the user to switch between different game states such as GameState, MenuState, TitleState, etc.
  • Typewritter
    • The typewritter is a simple class that will scroll the text based on certain parameters. The typewriter should be used in conjunction with the TextState that has not yet been implemented.
  • Item/Equipment Loaders
    • The Item/Equipment loaders are factories that will create the items for use based on the parameters that are passed in. We are also able to load these items from an XML file.
  • XML Parser
    • We have a simple XML parser that uses TinyXML2. The parser can be used to read XML files to help create the items/equipment in the game.

Typewriter Example

TheTypewriter.mp4

Desired Features

Some of the desired or planned features for the future are:

  • Battle system
    • A simple system in where we can battle various enemies. This will also have a battle state
  • Shops
    • This is something I already have in the works. We will have different shops where the player can buy items/weapons/armor etc.

Comments, feedback, and ideas are highly appreciated. Please check out the Youtube channel and let me know what you think. I am trying to make this a learning resource, for me as well. I love learning and becoming better everyday

About

This is the repository for my small youtube series ~Create a C++ Text RPG~

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published