Skip to content

TobseF/Hospital

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hospital - The Game

Screenshot

Help! The hospital is burning. Try to save lives and catch jumping patients.
Move your team with the mesh before patients hit the ground. Good Luck!

๐ŸŒŸ Features

  • Realistic smoke rendering
  • Spectacular people animations
  • Blood puddles on the ground
  • In game help menu

โŒจ Controls

Also printed on start.

  • S Start game.
  • P Pause game.
  • N Start a New game.
  • ESC Stop the current game.
  • 123 Change the size of the catching mesh.
  • H Open the help screen.

๐Ÿ“– About

This is one of my first software projects and my first computer game. I uploaded it also as a reminder... that I also started very, very simply and wrote horrible code. But I was very proud of it, and it was a magic moment seeing others playing my game. With exactly 600 lines of code (including imports & JDoc) it's even my shortest game. And it doesn't use any graphics.

The game play blueprint is the Nintendo Game & Watch Video Game Fireman from 1980. It was a monochrome single game handheld gaming device. I never owned an original, but the game was included in the Nintendo Game Box Game Game & Watch Gallery from 1997

โฌ‡๏ธ Downloads

๐Ÿ“ฆHospital-1.1-EN-Installer-WIN.zip 31.2 MB

All in one Windows Installer. No need to install Java on your own.

๐Ÿ“ฆHospital-v1.1-EN-Portable-WIN.zip 26.5 MB

Same as installer, but without setup. Just extract the zip archive on Windows and run the game

๐Ÿ“ฆHospital-v1.1-EN-JVM.zip 0.1 MB

Platform independent JAR file. โ„น Requires an installed Java JRE.

๐Ÿ”จ Build

To build the project, run the Maven task:

mvn package

This will build a runnable jar in target/hospital-1.0-SNAPSHOT-jar-with-dependencies.jar.

๐Ÿ“ฆ Create Windows Executable

To create a minimal runnable Java executable for Windows using JLink, follow these steps:

  1. Make sure you have JDK 11 or later installed
  2. Update the JAVA_HOME path in the create-jlink-image.bat script if needed
  3. Run the batch script:
create-jlink-image.bat
  1. This will create a minimal Java runtime with the game in target/jlink-image
  2. Run the game using the launcher script:
target\jlink-image\bin\hospital.bat

The JLink image contains only the necessary Java modules required to run the game, resulting in a smaller distribution size compared to bundling the entire JRE.

About

๐Ÿš‘ Arcade game - My very first video game

Resources

Stars

Watchers

Forks

Packages

No packages published