summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-05-30 22:11:01 -0400
committerCharadon <dev@iotib.net>2022-05-30 22:11:01 -0400
commit2818ee50405fba641a7f2bdffb968379f8ea0eee (patch)
tree6f25baa5f25072be3833eb4d77f3151f95f6c48c /src/main.c
parentb35d42e0ec41370be618ad59312786ec3795a5e7 (diff)
downloadPong-C-2818ee50405fba641a7f2bdffb968379f8ea0eee.tar.gz
Finished on making flatpak work, and fixed a bug where the paddle could randomly not spawn.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d4120e8..280b16c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -103,7 +103,6 @@ int main() {
 	//Populate Audio Queue
 	for(int i = 0; i < sizeof(AudioQueue); i++) {
 		AudioQueue[i] = -1;
-		printf("%d\n", AudioQueue[i]);
 	}
 	mtx_init(&AudioQueueBeingModified, mtx_plain);
 
@@ -114,6 +113,7 @@ int main() {
 
 	// Init Enemy Variables
 	struct Players Enemy;
+	Enemy.Y = 0;
 	Enemy.Score = 0;
 	Enemy.Direction = 0;
 	char EnemyScore[50];
@@ -198,6 +198,7 @@ int main() {
 		//Turn Scores into strings.
 		snprintf(PlayerScore, 50, "Player: %d", Player.Score);
 		snprintf(EnemyScore, 50, "Enemy: %d", Enemy.Score);
+		printf("%f\n", Enemy.Y);
 		
 		BeginDrawing();
 			ClearBackground(BLACK);