I\'m writing easy space invaders and have a problem with moving ship. Basically I change position of ship and then repaint()
. If the change is big it is more li
Please post some code? Is the whole game running inside a canvas or is every ship a JComponent? For games I would use JavaFX or a game engine like http://jmonkeyengine.com. To create smooth animations in Swing you can use a animation framework:
The Space Invaders - 2D Rendering in Java tutorial may be helpful as an example using an explicit BufferStrategy
.