• last year
Amazing Java 2D Animation you can make today (bouncing ball animation)

I have created many 2D animations including my own interactive resume, Android Apps, games and many more. It is time for me to show you how you too can create your own animation, Apps and games with Java. It is easy and needs some of your time to dedicate and learn Java to creat the future.

Watch the video for details on the three files that must be downloaded from the first comment below.

1. Create Java Project, with Eclipse and call it Animation, or whatever.
2. Create Main Class: Main.java
3. Creat two seperate classes: MyFrame.java and MyPanel.java
4. Copy the three files into their proper locations per the files you created above.
5. Make sure you have added the libraries into Eclipse from Oracle.
6. You need two png images to paste in the folder which Eclipse IDE created for you. Download those two images from the following link:
Download "enemy.png" from: https://ibb.co/3mjhHpD
Download "space.png" from: https://ibb.co/qN51XS1

7. Make sure the above images with proper names and extensions are associated to the Java code in the first comment below.

Your code should run properly on Eclipse if you follow the above steps.

If you have problem running the code or downloading the png images then comment below with your questions.

Like and subscribe for more videos like this, and advanced ones as well.

Firas Faham
=
=

Category

🤖
Tech

Recommended