...
This commit is contained in:
5
.firebaserc
Normal file
5
.firebaserc
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"projects": {
|
||||
"default": "co-swipelab-game"
|
||||
}
|
||||
}
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
modules/
|
||||
.sx-cache
|
||||
sx-out/
|
||||
.sx-tmp/
|
||||
sx-out/
|
||||
.firebase/
|
||||
16
firebase.json
Normal file
16
firebase.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"hosting": {
|
||||
"public": "sx-out/wasm32",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "**",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
8
main.sx
8
main.sx
@@ -10,14 +10,8 @@
|
||||
configure_build :: () {
|
||||
opts := build_options();
|
||||
inline if OS == {
|
||||
|
||||
case .wasm: {
|
||||
inline if POINTER_SIZE == 4 {
|
||||
opts.set_output_path("sx-out/wasm32/game.html");
|
||||
} else {
|
||||
opts.set_output_path("sx-out/wasm64/game.html");
|
||||
}
|
||||
|
||||
opts.set_output_path(if POINTER_SIZE == 4 then "sx-out/wasm32/index.html" else "sx-out/wasm32/index.html");
|
||||
opts.add_link_flag("-sUSE_SDL=3");
|
||||
opts.add_link_flag("-sMAX_WEBGL_VERSION=2");
|
||||
opts.add_link_flag("-sFULL_ES3=1");
|
||||
|
||||
Reference in New Issue
Block a user