A game where an object has to avoid obstacles. The player must press SPACE to cause the ball to jump, which will allow it to avoid the obstacles. The goal of the game is to get to the highest level possible by avoiding the most obstacles that the player can. Made with Java Swing. - Aditya (Bobby), Pranav (Billy), Siddhant (Benny)
This product is licensed under the MIT License. See LICENSE for more details.
Unless otherwise stated, all commands have been tested with Java SE 15 though they should work with later versions.
It's Java, so compilation is same on most systems.
Minimum Supported Java Version: JDK11.
NOTE: The following commands may vary on different platforms. Test different commands, but they will be very similar to those described.
NOTE: All paths described are only for demonstration of tree structure. Please change directory path during compilation and running accordingly.
// If using release v1.0 Directory -> "C:\Users\Jon Doe\Downloads\CompProgFinal-1.0\"
// If cloning Directory -> "C:\Users\Jon Doe\Downloads\CompProgFinal\V1\"
> javac Main.java
> java Main
Double-click the JAR file present in the folder. If this doesn't work, try the below steps in command line.
// Directory -> "C:\Users\Jon Doe\Downloads\CompProgFinal\V2\"
> java -jar jarexample.jar
// OR
> java -jar jarexample_JDK11.jar
If the JAR file does not work, create your own by trying the below steps.
From V2, Ball Runner uses a package, ball_runner
, so compilation and running changes accordingly.
// Directory -> "C:\Users\Jon Doe\Downloads\CompProgFinal\V2\"
> jar cfm jarexample.jar MANIFEST.MF ball_runner\"*".class ball_runner\img\"*"."*"
> java -jar jarexample.jar
JDK11:
// Directory -> "C:\Users\Jon Doe\Downloads\CompProgFinal\V2\"
> jar cfm jarexample_JDK11.jar MANIFEST.MF ball_runner
> java -jar jarexample_JDK11.jar