Mercurial > projects > myrrdin
diff src/test.d @ 3:a9af6ec19195
working map and tileset loading
author | fred@reichbier.de |
---|---|
date | Thu, 17 Jul 2008 21:34:53 +0200 |
parents | fc2f936a961c |
children | 292df259cc85 |
line wrap: on
line diff
--- a/src/test.d Thu Jul 17 21:06:43 2008 +0200 +++ b/src/test.d Thu Jul 17 21:34:53 2008 +0200 @@ -16,22 +16,10 @@ int main(char[][] args) { Cache cache = new Cache("gfx"); Tilemap map = parse_map(cache, read_file_contents("map-example.xml")); -/* - Tileset tileset = new Tileset(cache); - Tilemap map = new Tilemap(tileset, 5, 5, 32, 32); - tileset.add_tile(0, "grass.png"); - tileset.add_tile(1, "grass-stone-water-east.png"); - for(int x=0; x < 5; x++) { - for(int y=0; y < 5; y++) { - map.map[0][x][y] = 0; - } - } - map.map[1][1][1] = 1; - Renderer render = new Renderer("Blubb", 600, 480, 32); TileConsumer consumer = new TileConsumer(render, map); render.add_consumer(consumer); - render.mainloop();*/ + render.mainloop(); return 0; }