The Bouncing Ball game is a simple, interactive JavaFX application where a ball bounces around the screen. Users can control the speed of the ball using the up and down arrow keys. The game demonstrates the use of JavaFX animation and event handling capabilities.
git clone <repository-url>
.Before running the application, ensure that JavaFX is properly configured in your IDE (e.g., IntelliJ IDEA, Eclipse):
File
> Project Structure
> Libraries
and add the JavaFX SDK as a library to the project.Run
configurations, add the VM options to include the JavaFX modules:
--module-path "path/to/javafx-sdk/lib" --add-modules javafx.controls,javafx.fxml
Replace "path/to/javafx-sdk/lib"
with the actual path to the JavaFX SDK lib directory on your machine.
Properties
> Java Build Path
> Libraries
and add the JavaFX SDK as an external JAR.To run the application, navigate to the src/com/example/bouncingballgamejavafx
directory and compile the BouncingBall.java
file. Then, execute the main method within the BouncingBall
class.
Contributions to the Bouncing Ball game are welcome. Please feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT license. See LICENSE for more details.