diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/launch.sh | 5 | ||||
-rw-r--r-- | src/main.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/launch.sh b/src/launch.sh new file mode 100644 index 0000000..7449fcb --- /dev/null +++ b/src/launch.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# This file is only for flatpak. + +cd /app/Pong +./pong $@ \ No newline at end of file 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); |