Skip to content

A game where the user presses the spacebar to bounce a ball to avoid obstacles in order to get to the highest level.

License

Notifications You must be signed in to change notification settings

PranavAmarnath/Ball-Runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Programming Project

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)


(c) aditya2604, PranavAmarnath, sidhullur12.

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.


Compilation (Described from command line using java tool):

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.

V1:

// 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

V2:

Running (Described from command line using java tool):

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.

JAR Creation (Described from command line using java and jar tools):

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

Gameplay

BallRunner.mov

Game Preferences

preferences.mov

About

A game where the user presses the spacebar to bounce a ball to avoid obstacles in order to get to the highest level.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages