mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-24 17:02:50 +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
|
||||
-lib heaps
|
||||
-lib hlsdl
|
||||
-lib colyseus-websocket
|
||||
-lib datachannel
|
||||
-D highDPI
|
||||
-D flow_border
|
||||
-D analyzer-optimize
|
||||
-hl native/marblegame.c
|
||||
--main Main
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
haxe compile-linux.hxml
|
||||
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 ..
|
||||
|
|
|
|||
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.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.vertSizing = Center;
|
||||
ggLogo.position = new Vector(69, 99);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue