Skip to content

ConsoleGame is a dungeon game that can be played in a console.

License

Notifications You must be signed in to change notification settings

AutumnSpark1226/ConsoleGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java test CodeFactor

ConsoleGame

ConsoleGame is a dungeon game that can be played in a console.

Game

0 = player
8 = enemy
_ = floor
[] = exit

inventory:
HPO = health potion
HD = health double
ADP = attack damage plus
AP = accuracy plus

Compile

  1. Download the source code
  2. Go to the folder
    • Windows: cd {downloaded folder}\src
    • Linux/Mac OS/etc: cd {downloaded folder}/src
  3. Compile the file
    • javac ConsoleGame.java
  4. Execute the file
    • java ConsoleGame

How to play

Type a command and press enter
Commands are:

  • d or right (go right)
  • a or left (go left)
  • w or weapon (use your weapon and attack the enemy)
  • s or heal (use a health potion to heal your injuries)
  • i or inventory (look at your inventory)
  • t or stats (look at your stats)
  • u or use <item name or short form> (use this item)
  • del or delete <item name or short form> (delete an item from your inventory)
  • show (print the game)
  • exit (close the game)
  • getsavestate (print a string that contains the current game)
  • loadsavestate <savestate> (load a Savestate)

About

ConsoleGame is a dungeon game that can be played in a console.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages