A text-based game written in Java. It was originally created as a project of the progether subreddit and worked on by Applzor, add7, geniuus, Malfunction, bdong_, Qasaur, and rock-fish. It has been revived by Hawk554.
Current diagram of this project.
To move in a new direction:
gotoNORTH, gotoSOUTH, gotoEAST, gotoWEST
-
Create an issue (optional)
-
Fork the codebase
-
Create a branch
git branch git checkout
-
Make your changes
-
Write tests (optional)
-
Make a pull request between your branch and the Hawk554's master
You can download the game with:
git clone https://github.com/hawk554/JAdventure
###The Manual Way###
cd to src/JAdventure Compile the game files in with:
javac *
Then start the game with:
java TextAdventure
###Run with Ant###
Install apache-ant
Run the game with:
ant -emacs run
It will automatically compile, test, and run the game.
To start a new game:
start
Get a list of commands with:
help
To get a list of monsters around you:
monsters
To get your own current status/stats:
stats
To quit the game:
quit
- Cleanup code
- Remove/fix methods that don't work or are not implemented
To help make code more readable, understandable, and consistent, each contributor should follow the set guidelines lain out below. If you disagree with something or come across a style that has not been decided upon, make an issue or a pull request respectively for discussion on the best style. The standard will be decided based on either majority rule or official documentation (i.e. oracle coding standard).
- Spaces not tabs
- Space width is 4
- No beginning/trailing empty lines
- Each file should start with an import statement if necessary single-spaced
- After class declaration and between class methods, there should be a space.
- Within methods, there should be no spaces unless to separate specific chuncks of code (i.e not for if statements, return values, or loops)
- Opening curly braces appear a space after the closing parentheses, not directly after.
- Closing curly braces appear on own line unless followed by an else etc. which will be a space after the curly brace.
- Comments should have one space after "//"
- Comments 4 or greater in length should be multi-line commented
16NOV2013
- changed the variables from public to private in Entity class
- created setters and getters in Entity class
- added the singleton pattern in the player class so that only one player can ever be instasiated except when loading
- changed accessing public variables of Entity to accessing them through accessor "get" methods.
- Instead of player.backpack it's player.getBackpack() -cleaned up code in all the menus (PlayerMenu, DebugMenu...)
14NOV2013
- cleaned up code
- added basics for proper items
30OCT2013
- projectdelphai cleaned code to new project standards.
- Added projectdelphai as a contributor.
- Created milestone for completing menu system.
- started work on json menus
- made main menu
- started work for profile saves