Commit e0e20264 authored by charadon's avatar charadon
Browse files

Fixed issue for haiku where 2 BApplications instances would crash the game,...

Fixed issue for haiku where 2 BApplications instances would crash the game, and fixed install script so it works on Mac
parent 170c83ae
......@@ -10,7 +10,7 @@ project("Pong")
os.mkdir(string.format("%s/Pong/docs", prefix))
os.executef("cp -r resources/* %s/Pong/resources/", prefix)
os.executef("cp -r docs/* %s/Pong/docs", prefix)
os.executef("install -m755 bin/*/Pong %s/Pong/pong", prefix)
os.executef("install -m755 bin/*/Pong* %s/Pong/", prefix)
os.exit(0)
end
}
......
......@@ -143,8 +143,8 @@ bool play_audio(int SoundEffect) {
int main(int argc, char *argv[]) {
/* Raylib Init */
InitWindow(1280, 720, "Pong");
SDL_Init(SDL_INIT_AUDIO);
InitWindow(1280, 720, "Pong");
SDL_AtomicSet(&Ticks, 0);
SDL_Thread *InternalClock = SDL_CreateThread(internal_clock, "Internal Clock", NULL);
SetTargetFPS(60);
......
......@@ -15,6 +15,7 @@
#include <setjmp.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "sounds.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment