diff --git a/Makefile.emscripten b/Makefile.emscripten index 748b148..bb2ca08 100644 --- a/Makefile.emscripten +++ b/Makefile.emscripten @@ -7,7 +7,7 @@ ECHO := echo LIBS := CFLAGS := -s FULL_ES2=1 -s ASM_JS=1 -O1 -Wno-implicit-function-declaration -DEMSCRIPTEN -LDFLAGS := --preload-file data +LDFLAGS := --preload-file data -s TOTAL_MEMORY=134217728 RES_GAMELIB := libgame.a RES_GAME := game.html @@ -16,7 +16,7 @@ BUILDDIR := build-emscripten ifeq ($(target),release) CFLAGS := -s FULL_ES2=1 -s ASM_JS=1 -O1 --llvm-lto 1 -Wno-implicit-function-declaration -DEMSCRIPTEN BUILDDIR := build-emscripten-release - LDFLAGS := --preload-file data + LDFLAGS := --preload-file data -s TOTAL_MEMORY=134217728 endif include Makefile.common diff --git a/web/play.html b/web/play.html index d058413..fa7b6cf 100644 --- a/web/play.html +++ b/web/play.html @@ -33,20 +33,24 @@ border-radius: 5px; padding: 5px; box-shadow: 0px 0px 5px #808080; + width: 600px; + display: block; + margin: 0 auto; } .progress-container progress{ - width:100%; + width: 100%; } .game-screen-container{ - margin:0 auto; - width:640px; - padding-top:10px; + display:block; + width: 100%; + padding-top: 10px; } .game-screen-container canvas{ border: 1px solid #808080; border-radius: 5px; padding: 5px; box-shadow: 0px 0px 5px #808080; + margin: 0 auto; } @@ -59,8 +63,11 @@ Data:

+
+ +
+ oncontextmenu="event.preventDefault()" onclick="document.getElementById('btnFocus').focus();"> + + + \ No newline at end of file