fixed broken assets in the HTML5 version

This commit is contained in:
Return0ne 2022-03-31 21:32:34 -04:00
parent 60bcd24121
commit 0b48d5b137
12 changed files with 6 additions and 7 deletions

View File

@ -1,3 +0,0 @@
#!/bin/sh
emcc -o game.html Main.c -Os -Wall /usr/local/lib/libraylib.a -I. -I/usr/local/include/raylib.h -L. -L/usr/local/lib/libraylib.a -s USE_GLFW=3 -s ASYNCIFY -DPLATFORM_WEB

File diff suppressed because one or more lines are too long

BIN
game.wasm

Binary file not shown.

BIN
html5/Avoid-ITCHIO.zip Normal file

Binary file not shown.

2
html5/build-html5.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
emcc -o index.html game.c -Os -Wall /usr/local/lib/libraylib.a -I. -I/usr/local/include/raylib.h -L. -L/usr/local/lib/libraylib.a -s USE_GLFW=3 -DPLATFORM_WEB --preload-file rec/boing.mp3 --preload-file rec/01-Slipin-Sunday.ogg #--shell-file minshell.html

View File

@ -72,9 +72,9 @@ void GameInit(void)
{
currentScreen = TITLE;
Bgm01 = LoadMusicStream("assets/bgm/01-Slipin-Sunday.ogg");
Bgm01 = LoadMusicStream("rec/01-Slipin-Sunday.ogg");
fxbounce = LoadSound("assets/sfx/boing.mp3");
fxbounce = LoadSound("rec/boing.mp3");
PlayMusicStream(Bgm01);

BIN
html5/index.data Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

1
html5/index.js Normal file

File diff suppressed because one or more lines are too long

BIN
html5/index.wasm Executable file

Binary file not shown.

Binary file not shown.