Fully Working Game

This commit is contained in:
2026-04-26 18:39:43 -04:00
parent ab35c9216e
commit 5c2bb282ce
9 changed files with 334 additions and 119 deletions

View File

@@ -3,6 +3,8 @@
#include "network/networking.h"
#define NUM_OF_BALLS 2
// Setup game board
#define TOP_ROW 4
@@ -19,6 +21,8 @@ typedef struct
} GameData;
long GetCurrentMS();
/**
* Setups the curses terminal environment
*/
@@ -45,7 +49,7 @@ void DrawWalls(GameData);
/**
* Draws the scoreboard and header
*/
void DrawHeader(GameData);
void DrawHeader(GameData* data, int* scores, int numOfBalls);
/**
* Creates text at a location on screen