GithubHelp home page GithubHelp logo

t-scholtz / classic-rpg_fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makeopensource/classic-rpg

0.0 0.0 0.0 188 KB

A classic role-playing game with an engine.

License: GNU General Public License v3.0

Python 100.00%

classic-rpg_fork's Introduction

Classic RPG

Prerequisites

  • Python >= 3.8

Installation

python3 -m pip install -r requirements.txt

python3 game-2.py

Configuration

The crpg API is now configured via a filetype called a ".dl" file (dungeon layout). DLs have a very specific format that allow them to be parsed.

The first part is a list of nodes for the decision graph. Each node has a unique tag, its name, description, and any other parameters that need to be passed to the constructor to create the appropriate object.

Three dashes separate the first and second parts.

The second part is a list of connections between nodes. Instead of passing some sort of unique identifier for each node, you use the tag from the first part to identify the node. Then, you can use one of two symbols to denote a connection between two nodes:

  • node_a -> node_b means node_a points towards node_b (in only one direction)
  • node_a <-> node_b means node_a points to node_b, and vice versa

If we want to expand the API for connections, we can always add more symbols for parsing. One I was thinking about is \->, which would denote an "ending" connection (to signal destroying the path to reach the current action)

classic-rpg_fork's People

Contributors

emilkovacev avatar sploder12 avatar zacharylyh 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.