I've decided to make a few text adventures in Java to learn about the language and become more familiar with it's functions. Go to index.java to play! (sorry im too used to html so i just called it index)
- Spaceship - You wake up to find yourself inside a spaceship, and you have 180 seconds to escape before the spaceship takes off!
- Triton - You're a researcher in Habitat Triton, a small research station in the Mariana Trench. Suddenly, something breaks, and water starts to sink in. You have to repair and signal for help before the backup oxygen runs out.\
- Dungeon - Dungeon Simulator
So... only text adventures is a bit boring, especially when you're spending upwards of 3 hrs on each one 🥲🥲. So I have some other games to play
- ASCII Name Generator - type in your name and it makes ascii from it! very nice but idk how much of a game that is...
- Guess The Number
The scripts/build-release.ps1 helper compiles every class, builds a trimmed runtime image with jlink, and packages everything (including platform launchers) into build/java-text-adventures- plus a .zip archive.
Requirements:
- Windows with PowerShell 7+
JAVA_HOMEpointing to a JDK 14+ (needsjlinkandjmods).
Steps:
pwsh -File scripts/build-release.ps1- Find the folder + zip inside
build/.
- On Windows: double-click
run.bator execute from PowerShell/CMD. - On macOS/Linux:
chmod +x run.sh && ./run.sh./run.sh.
Both launchers use the embedded runtime, so no system-wide JRE is required.