A text-based adventure game in Java featuring grid-based exploration, item discovery, and health management.
Exit Not Found is a simple text-based adventure game in Java. The player explores a map, discovers items and the exit door, and must manage health while navigating hazards.
mvn exec:javaThe game starts in the console. Interact using text commands like:
go left/go right/go straight/go back- move aroundmap- display the current mapstats- show your health and progresscommands- list all available commandssave- save your gameexit- quit the game
mvn testmvn clean javadoc:javadocEdit mapa.txt to create custom maps:
- First line: width (number of columns)
- Second line: height (number of rows)
- Symbols (defined in
maputils/GameSymbols.java):P- player start positionG- good tile (heals)B- bad tile (damages)X- wall (impassable)D- exit door (goal)A- apple (health bonus) Example:
5
5
XXXXX
XPGDX
XBXBX
XGXGX
XXXXX
- game - core engine and game loop
- maputils - map model, tiles, and factories
- actions - player actions (move, display, save)
- commands - command parsing and validation
- toolkit - game state, player, save/load utilities
- ui - messages and I/O
- Java 25+
- Maven 3.6+