A simple Pin Ball game using java
- First Simple JFrame And JPanel for the game
- Draw basic components using the paintComponent defined in JPanel
public void paintCompoent(Graphics g){ super.paintComponent(g); ...// drawing methods ... }
Also, update the paintComponet() using the repaint() method. 4. Game Loop ---> Every Game must contain a game Loop 1. repaint() game loop 2. make a fps counter 3. visuals Now the sepearte game loop with different thread.