-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bad Game Loop Created with the FPS counter Check
- Loading branch information
1 parent
110af6e
commit caef506
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# PinBall | ||
A simple Pin Ball game using java | ||
|
||
1. First Simple JFrame And JPanel for the game | ||
2. 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. | ||
3. Game Loop ---> | ||
Every Game must contain a game Loop | ||
1. repaint() game loop | ||
2. make a fps counter | ||
3. visuals |