Compare commits

...

2 Commits

Author SHA1 Message Date
cf0df54548 Update map assets references in project.json
Because BASE Editor is reusing binary deserializer for JSON serializer,
the map assets 'source' property in project.json points to binary files
with ".dat" extension. It does not impact on how the editor works
because the asset sources are recreated when importing using UIDs, so
just to be consistent all the .json file references were replaced with
the .dat ones.
2025-07-11 15:06:08 +02:00
e8cc766ded Improve support for Nix dev shell 2025-07-11 14:41:10 +02:00
3 changed files with 11 additions and 3 deletions

View File

@@ -24,5 +24,7 @@
game = pkgs.callPackage ./game.nix (inputs // {inherit system;});
default = game;
};
devShells.default = pkgs.callPackage ./shell.nix {inherit system;};
});
}

View File

@@ -3,15 +3,15 @@
"runner": "com.bartlomiejpluta.demo.runner.DemoRunner",
"maps": [{
"uid": "d1b85d85-c52a-46f5-b81e-444847f8ddae",
"source": "d1b85d85-c52a-46f5-b81e-444847f8ddae.json",
"source": "d1b85d85-c52a-46f5-b81e-444847f8ddae.dat",
"name": "Hero Home"
}, {
"uid": "b602601a-e9b0-44bf-bc0d-5f31c9964ba1",
"source": "b602601a-e9b0-44bf-bc0d-5f31c9964ba1.json",
"source": "b602601a-e9b0-44bf-bc0d-5f31c9964ba1.dat",
"name": "Hero House"
}, {
"uid": "8fbb151f-682a-4357-ba92-157e4097898f",
"source": "8fbb151f-682a-4357-ba92-157e4097898f.json",
"source": "8fbb151f-682a-4357-ba92-157e4097898f.dat",
"name": "Forrest"
}],
"tileSets": [{

6
shell.nix Normal file
View File

@@ -0,0 +1,6 @@
{pkgs, ...}:
pkgs.mkShell {
name = "base-demo-game-development-shell";
LD_LIBRARY_PATH = with pkgs; "${xorg.libXtst}/lib:${openjfx17}/lib:${glib.out}/lib:${alsa-lib}/lib:${libGL}/lib:${gtk3}/lib";
}