initial commit

This commit is contained in:
Quillraven
2025-05-24 16:06:38 +02:00
commit 3398b64a03
100 changed files with 1977 additions and 0 deletions

11
util/build.gradle Normal file
View File

@@ -0,0 +1,11 @@
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
eclipse.project.name = appName + '-util'
dependencies {
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
if(enableGraalNative == 'true') {
implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion"
}
}

View File

@@ -0,0 +1,20 @@
package io.github.com.quillraven.util;
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
import java.io.File;
/**
* Utility class to execute LibGDX's TextureAtlas packer tool.
* This tool packs multiple images into a single texture atlas.
*/
public class TexturePackerTool {
public static void main(String[] args) {
String inputDir = "assets_raw/map";
String outputDir = "assets/maps";
String packFileName = "tileset";
System.out.println("Packing textures from " + inputDir + " to " + outputDir + "/" + packFileName);
TexturePacker.process(inputDir, outputDir, packFileName);
System.out.println("Texture packing completed successfully!");
}
}