- JAVA (Swing)
This project is a simple theme based adventure 2D game created using the JAVA library Swing for my ICS4U1 final summative
Vegito has been placed in an experiment by Dr. Law and needs to escape through the sealed portal. Dr. Law informs him of his objective: To collect all 7 dragon balls and be able to break through the sealed door. BUT Beware!!! Pirate Hunter Zoro has once again lost his way and entered the Dragon Ball Universe to stand in Vegito's way. Find your way through the pirate's ferocious attacks and transform into your best possible form !!!
- Use the W key to move your player up
- Use the A key to move your player left
- Use the S key to move your player down
- Use the D key to move your player right
- You must collect all 7 Dragon Balls to be able to enter the sealed portal
- You start with 5 health and lose health on coming in contact with Zoro or falling down a pit
- Approach Dr. Law to learn more about your objective
- You lose 1 health for coming in contact with Zoro
- You lose 0.5 health for falling down a pit
- You can transform into Vegito Blue after collecting 2 Dragon Balls
- Upon collecting 2 Dragon Balls, you have the opportunity to transform and walk over water !!!
- Enter the Portal to win!
- It is recommended to open all the files in a code editor such as VS Code (Preferably)
- If not already downloaded, you need to ensure that you have downloaded the latest version of JAVA.
- After downloading JAVA and the necessary code editor, you need to use the code editor to open the folder on your device
- The code editor MUST be opened in the directory in which all the files are located
- After opening the code editor, open the Main.java file
- Upon opening the Main.java file you can do one of two things:
- You can either run the game by clicking on the run button (A Play Button) at the top - right of the window
- Or you can start a new terminal and enter this to compile the code
javac Main.java
- After compiling the files, type this command in the terminal to run the game
java Main




