mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
Fixes for linux
This commit is contained in:
parent
4c956235e2
commit
f26c7b91e1
5 changed files with 22 additions and 2 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
-cp src
|
-cp src
|
||||||
-lib heaps
|
-lib heaps
|
||||||
-lib hlsdl
|
-lib hlsdl
|
||||||
|
-lib colyseus-websocket
|
||||||
|
-lib datachannel
|
||||||
-D highDPI
|
-D highDPI
|
||||||
-D flow_border
|
-D flow_border
|
||||||
|
-D analyzer-optimize
|
||||||
-hl native/marblegame.c
|
-hl native/marblegame.c
|
||||||
--main Main
|
--main Main
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
haxe compile-linux.hxml
|
haxe compile-linux.hxml
|
||||||
cd native
|
cd native
|
||||||
gcc -o marblegame -g -I . -L /usr/local/lib marblegame.c /usr/local/lib/{ui.hdll,openal.hdll,fmt.hdll,sdl.hdll,uv.hdll,ssl.hdll} -lSDL2 -lhl -lm
|
gcc -o marblegame -O2 -I . -L /usr/local/lib marblegame.c /usr/local/lib/{ui.hdll,openal.hdll,fmt.hdll,sdl.hdll,uv.hdll,ssl.hdll,datachannel.hdll} -lSDL2 -lhl -lm -luv
|
||||||
|
strip marblegame
|
||||||
cp marblegame ..
|
cp marblegame ..
|
||||||
|
|
|
||||||
4
linux-dist/run-marblegame-debug.sh
Executable file
4
linux-dist/run-marblegame-debug.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
./hl marblegame.hl
|
||||||
12
linux-dist/run-marblegame.sh
Executable file
12
linux-dist/run-marblegame.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
# Add the current directory to the linker path so the .hdll files can be loaded
|
||||||
|
if [ "x$LD_LIBRARY_PATH" = "x" ]; then
|
||||||
|
export LD_LIBRARY_PATH=.
|
||||||
|
else
|
||||||
|
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
./marblegame $@
|
||||||
|
|
@ -14,7 +14,7 @@ class PresentsGui extends GuiImage {
|
||||||
this.position = new Vector();
|
this.position = new Vector();
|
||||||
this.extent = new Vector(640, 480);
|
this.extent = new Vector(640, 480);
|
||||||
|
|
||||||
var ggLogo = new GuiImage(ResourceLoader.getResource('data/ui/GG_logo.png', ResourceLoader.getImage, this.imageResources).toTile());
|
var ggLogo = new GuiImage(ResourceLoader.getResource('data/ui/GG_Logo.png', ResourceLoader.getImage, this.imageResources).toTile());
|
||||||
ggLogo.horizSizing = Center;
|
ggLogo.horizSizing = Center;
|
||||||
ggLogo.vertSizing = Center;
|
ggLogo.vertSizing = Center;
|
||||||
ggLogo.position = new Vector(69, 99);
|
ggLogo.position = new Vector(69, 99);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue