Code Monkey home page Code Monkey logo

tbag-java's Introduction

Text Based Adventure Game (TBAG)

A text-based game engine written in Java. Currently a work-in-progress.

Getting Started

From the terminal, do make and then run tbag.jar

To generate just class files, do make classes.

Classes

Game

The main game class that keeps track of game objects and will eventually the flow of the story.

Editor

An AWT interface that will eventually be used for creating/editing scenes in the story. It currently offers a rough preview of some test objects. The interface is comprised of a room/object heirarchy on the left, an inspector on the right, and a (currently) empty resizable space in between.

BaseObject

The base class for all game objects. Actor, Item, and Container are extensions of BaseObject that are specialized to serve various purposes to the story.

Item

A type of BaseObject that have a size value. They can be picked up and stored within containers.

Container

A type of BaseObject that can store Items within it. They have a fixed capacity track their current fullness.

Actor

A type of BaseObject that represents a character in the story. They can trigger actions/events on other objects.

Scene

An iterable object that can store BaseObjects (and its subclasses) within.

Format

Used for string formatting, such as adding 'a' or 'an' to the front of a noun or fixing capitalization/punctuation in a sentence.

Console

Responsible for printing story events and debug messages to the screen.

Clickable

A type of JLabel which stores a reference to the object it represents. Used for making text on the console interactable by clicking on it.

tbag-java's People

Contributors

theonlyzac 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.