diff --git a/core/assets/tiles.gif b/core/assets/tiles.gif new file mode 100644 index 0000000..94870e6 Binary files /dev/null and b/core/assets/tiles.gif differ diff --git a/core/src/com/dungeoncrawler/view/Map.java b/core/src/com/dungeoncrawler/view/Map.java new file mode 100644 index 0000000..bd9e7cc --- /dev/null +++ b/core/src/com/dungeoncrawler/view/Map.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.dungeoncrawler.view; + +import com.badlogic.gdx.Gdx; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.TextureRegion; +import com.badlogic.gdx.maps.MapLayers; +import com.badlogic.gdx.maps.tiled.TiledMap; + +/** + * + * @author jonathan + */ +public class Map { + private TiledMap map; + private Texture tiles; + + public Map(){ + map = new TiledMap(); + tiles = new Texture(Gdx.files.internal("tiles.gif")); + + generateMap(); + } + + private void generateMap(){ + TextureRegion[][] splitTiles = TextureRegion.split(tiles, 48, 48); + MapLayers layers = map.getLayers(); + } + +}