Skip to content

Instantly share code, notes, and snippets.

View maxkcy's full-sized avatar

maxkcy

View GitHub Profile
@maxkcy
maxkcy / HijackedBaseTmxMapLoader.java
Created November 20, 2020 23:59 — forked from doriancransac/HijackedBaseTmxMapLoader.java
A hijacked TileMap loader for libgdx which works in headless context (i.e without ANY Gdx context)
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetLoaderParameters;
import com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader;
import com.badlogic.gdx.assets.loaders.FileHandleResolver;
import com.badlogic.gdx.assets.loaders.TextureLoader;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.maps.*;