Giter Site home page Giter Site logo

dungeon's Introduction

Dungeon

on-push-do-docs Test, Release and Deploy to NuGet

Framework for a 2D adventure/RPG game made using TDD approach. Character/gameplay rules based on GURPS 4e.

Only the parts of the original rules that are actually useful for the game will be implemented!

Game Initialization and Loading

The instance of the game is a singleton, that can be accessed using the property:

public static Game Instance
{
    get
    {
        instance ??= new Game();
        return instance;
    }
}

This instance can be filled with custom game data using one of the GameLoader*** classes from the Services namespace.

GameLoaderJson.Load(path);

Sample Games

There are some simple game setups stored in the Game Samples Folder that demonstrate some of the basic concepts of the Dungeon Toolkit.

  • Dialogue Condition Contains a simple dialog with three possible answers, one of which is disabled because the John Smith character's intelligence is not greater than the requiered value.
  • Fetch Quest Is a game instance in which the party has a quest to bring an item to a NPC. After this item is picked up in the inventory, the NPC dialogue will enable an option to give this item to the NPC and therefore complete the quest. After choosing this dialogue option, the quest is completed, the item is removed from character's inventory and experience points are assigned.

Credits and Honorable Mentions

  • One of the big reasons to create this project was to learn the test-driven product development as taught by Llewelyn Falco.
  • Refactoring the code with ReSharper.

dungeon's People

Contributors

actions-user avatar tvomacka avatar

Stargazers

 avatar

Watchers

 avatar

dungeon's Issues

Character Races

Races will be done using Racial Templates with predefined advantages/disadvantages and attribute bonuses.
Needs to be determined if the templates will be loadable from a data file or hard-coded and this work item needs to be implemented accordingly to this decision.

Special dialogue outcomes

A dialogue must be able to affect the game state by adding quest, providing items, experience etc.

Dialogue Traversal does not Work

The dialogue cannot be traversed - it doesn't keep track of its own state and the state cannot be changed using the dialog options.

Conditional dialogue options

Some of the options in the dialogue will only be accessible when a certain condition is met. Such as having a quest assigned or having a certain score of skill/ability, etc.

Fetch Quest

Add a quest which consists of finding a specific item and bringing this item back to an NPC.

Compound Conditions

Provide way to compound conditions into expressions using bool algebra operators such as NOT, AND, OR and others if necessary.

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.