This is a virus simulation game created in Java for COMP610 at AUT. Feel free to clone this repo and use fairly. If you are currently studying COMP610, DO NOT plagiarise this work.
To run the game, simply download VirusSimulation.jar from releases.
For cloning the repo the relevant packages are named:
com.jackdarlington.question1com.jackdarlington.question2
If a phone does not make it to the Repair Shop before all it's health runs out, it will die and be removed from the screen.
Phones can be in three different states: NORMAL, GOING TO REPAIR, or INFECTED.
The simulation features multiple GUI windows each for different uses and displaying different information.
The most important information for the simulation is inside the Scoreboard tab (bottom left corner).
This tab stores information regarding all current phones such as:
- Phones Currently Alive
- Phones Currently Infected
- Repairs Taken Place
- Phones Dead
- The current phone being repaired/going to the Repair Shop
You can click on any alive phone to see more information about it in the Phone info tab (bottom right corner).
This tab stores information regarding the selected phone such as:
- Phone Health
- If the phone is infected
- How many repairs the phone has had
- Current state: Alive or Dead (Phone tab will display when your selected phone has died)
The game has many controls to change various aspects of the simulation.
- Use space to add a new phone
- Use i to infect the selected phone
- Use r to infect a random phone
- Use c to kill all phones
- Health - Use the up arrow and down arrow keys to increase or decrease the health of all currently alive phones
- Spread Radius - Use the page up and page down keys to increase or decrease the spread radius of the virus
- Click the
PAUSEbutton or escape to pause the simulation - Click the
PLAYbutton to play at regular speed - Click the
FAST FORWARDbutton to play at two times the regular speed (Repair Shop speed will also increase accordingly)
Have fun!