fixed broken assets in the HTML5 version
This commit is contained in:
parent
60bcd24121
commit
0b48d5b137
12 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
1
game.js
1
game.js
File diff suppressed because one or more lines are too long
BIN
game.wasm
BIN
game.wasm
Binary file not shown.
BIN
html5/Avoid-ITCHIO.zip
Normal file
BIN
html5/Avoid-ITCHIO.zip
Normal file
Binary file not shown.
2
html5/build-html5.sh
Executable file
2
html5/build-html5.sh
Executable 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
|
|
@ -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
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
1
html5/index.js
Normal file
File diff suppressed because one or more lines are too long
BIN
html5/index.wasm
Executable file
BIN
html5/index.wasm
Executable file
Binary file not shown.
BIN
html5/rec/01-Slipin-Sunday.ogg
Normal file
BIN
html5/rec/01-Slipin-Sunday.ogg
Normal file
Binary file not shown.
Loading…
Reference in a new issue