summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-09-25 16:50:18 -0400
committerSam Anthony <sam@samanthony.xyz>2024-09-25 16:50:18 -0400
commit89e07aae62dae995faa7540fc38e66fa0c0f7369 (patch)
tree54114ec6929ecefa4d1a06f7673b2dca85f3a584
parent5c8d1c3dc5e9b30f57aefe3c3993b0f61d22d2ff (diff)
downloadballs-89e07aae62dae995faa7540fc38e66fa0c0f7369.zip
set framerate and resolution
-rw-r--r--balls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/balls.c b/balls.c
index 5fd61f4..92f1f2d 100644
--- a/balls.c
+++ b/balls.c
@@ -14,8 +14,8 @@ enum {
WALLS = DBlack,
PAD = 0,
- WIDTH = 800,
- HEIGHT=600,
+ WIDTH = 960,
+ HEIGHT=640,
KEY_QUIT = 'q' ,
@@ -24,7 +24,7 @@ enum {
VMAX = 3,
MASS = 10,
- FPS = 30,
+ FPS = 60,
NS_PER_SEC = 1000000000,
FRAME_TIME = NS_PER_SEC / FPS,
TICK_BUFSIZE = 4,