This project shows an example of an animated sprite control in Java.
This projet is based on the article "Ultimate Java Image Manipulation" by Josiah Hester. But there ar some differences between this implementation and the original implementation:
- In the original source, the sprite is directly drawn into the JFrame. In this project, the sprite is drawn into a JPanel, that is inside the JFrame;
- The original sprite doesn't move inside the screen, only changes its animation. In this project, it moves inside the screen, using the keyboard;
- The current project were divided into a MVC model (model-control-view) allowing easy maintenance.
The available source codes here are under the Apache License, version 2.0 (see the attached LICENSE
file for more details). Any questions can be submitted to my email: carloswilldecarvalho@outlook.com.