Giter Club home page Giter Club logo

textrpg's Introduction

TextRPG

This is a simple text based game. Feel free to use it if you want. Better documentation will be put up later once it is more developed.

End Goal

I plan on using SQLite3 to store items, jobs, monsters etc. for the game so that people can make games just by creating and modifying the database that the game reads from. This is what TextRPGCreator is eventually going to do. Everything is still in a rough testing state but feel free to send pull requests or help out. Also any criticism is appreciated!

textrpg's People

Contributors

tomaq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

textrpg's Issues

Look at Item's statsModified

//If index 8 is 1 then it can increase the hp or mana over the max else it can't.

This does not exist in Items

Add unequip command

The command "unequip" should remove whatever the player specifies from their equipment.

Fix method names

Some methods have confusing names such as Game.getItem() and Game.searchItem(). One searches with an item and the other with a list and both return an item.

Refactor for Webapp

The engine should only read from the database for now until saving is implemented.

Add more unequip commands

Add commands for unequip weapons, all, boot/boots, etc.

Use helper method to parse and return a new string such as

method(string)
array {boot, boots}
if string = array[i] : return array[0]

Fix formatting of code

No white space, opening braces need to be on same line, no space between method head and start of code. Look at Game.java for format.

Check access modifiers

Some methods have public when they can/should be private. Look and see which methods should have what.

Fix reusing code

Some code is reused a lot. Make separate methods for it, such as getting users input and catching an input mismatch when casting ints.

Dropping Items formatting

When you drop multiple of the same item it should say "there are (quantity) (Item name)'s on the ground" instead of "there is a (item name) on the ground. there is a (same item) of the ground" x however many. Also check for "a/an".

Add database

Use json or something to store objects in a database. All objects will need a key so that (for example) rooms can have exits and instead of setting them to objects, they are set to keys that are associated to another room.

Gson :https://code.google.com/p/google-gson/
sqlite and some orm. Look for something that can easily migrate to database and search through.

Make array for commands

When parsing a command have an array of available command words and loop through. If they match then return a default word back to the parseCommand method in Game.java. For example: player types 'get', loop through an array that contains take, get, gain, steal (those last 2 are just examples), if it matches return take.

Fix formatting of choices

Fix formatting of Potion(0) and [0] Potion(2) in choosing in general, or coming up with a different way to choose things.

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.