From b30f39a76242a0b1fc923fb3c12616238086bf9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 19 Apr 2014 11:58:31 +0200 Subject: [PATCH] nothing much --- res/img/{map.png => map_tiles.png} | Bin res/img/{rogue_tiles.xcf => map_tiles.xcf} | Bin src/mightypork/rogue/Res.java | 5 +++++ 3 files changed, 5 insertions(+) rename res/img/{map.png => map_tiles.png} (100%) rename res/img/{rogue_tiles.xcf => map_tiles.xcf} (100%) diff --git a/res/img/map.png b/res/img/map_tiles.png similarity index 100% rename from res/img/map.png rename to res/img/map_tiles.png diff --git a/res/img/rogue_tiles.xcf b/res/img/map_tiles.xcf similarity index 100% rename from res/img/rogue_tiles.xcf rename to res/img/map_tiles.xcf diff --git a/src/mightypork/rogue/Res.java b/src/mightypork/rogue/Res.java index a7c9ba8..ae24ce8 100644 --- a/src/mightypork/rogue/Res.java +++ b/src/mightypork/rogue/Res.java @@ -76,6 +76,11 @@ public final class Res { textures.addQuad("xp_on", gui.makeQuad(0, 1.5, .5, .5)); textures.addQuad("xp_off", gui.makeQuad(.5, 1.5, .5, .5)); textures.addQuad("panel", gui.makeQuad(0, 3.75, 4, .25)); + + texture = textures.loadTexture("tiles", "/res/img/map_tiles.png", FilterMode.NEAREST, WrapMode.CLAMP); + QuadGrid tiles = texture.grid(32, 32); + + }