Skip to content

About

A text-based adventure game in Java featuring grid-based exploration, item discovery, and health management.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exit Not Found

A text-based adventure game in Java featuring grid-based exploration, item discovery, and health management.

Overview

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.

Quick Start

Run the Game

mvn exec:java

Gameplay

The game starts in the console. Interact using text commands like:

  • go left / go right / go straight / go back - move around
  • map - display the current map
  • stats - show your health and progress
  • commands - list all available commands
  • save - save your game
  • exit - quit the game

Run Tests

mvn test

Generate Javadoc

mvn clean javadoc:javadoc

Map Format

Edit 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 position
    • G - 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

Project Structure

  • 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

Requirements

  • Java 25+
  • Maven 3.6+

About

A text-based adventure game in Java featuring grid-based exploration, item discovery, and health management.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages