Im making a basic space invaders game. I got all the resources from the LWJGL .zip file (Im not using LWJGL librarys to create my game, just got the pictures, etc. from it.) Any
The idea is that the listeners should change the state of the game (i.e. create a bullet, or change the location of the bullet, or whatever), and then call repaint()
. Then Swing will invoke the paintComponent(Graphics g)
method, which will paint the updated game state using the Graphics passed as argument.