diff options
author | P. J. McDermott <pjm@nac.net> | 2013-02-17 01:20:49 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-02-17 01:20:49 (EST) |
commit | 1a8f91467aad191721d57a9ad772f6700c029e1d (patch) | |
tree | 4790ccd415cdd5e4fa22acaae7347520b5bcd296 /src/main.c | |
parent | 1e4407da677dd7a192c817de16583bb7199ceeb0 (diff) | |
download | overworld-rpg-1a8f91467aad191721d57a9ad772f6700c029e1d.zip overworld-rpg-1a8f91467aad191721d57a9ad772f6700c029e1d.tar.gz overworld-rpg-1a8f91467aad191721d57a9ad772f6700c029e1d.tar.bz2 |
TMX parser rewrite number two.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,20 +2,23 @@ #include "init.h" #include "logging.h" #include "resources/image.h" -#include "tmx.h" +#include "resources/map.h" int main(void) { + struct map *map; struct image *img; SDL_Rect imgrect, surfacerect; init(); - tmx_load("data/forest1.tmx"); + map = map_get("data/forest1.simple.tmx"); + printf("Map dimensions: %dx%d\n", map->width, map->height); img = img_png_get("../forest-6-layer-test_ground.png"); img_png_free(img); + return 0; img = img_png_get("../forest-6-layer-test_ground.png"); img = img_png_get("../forest-6-layer-test_ground.png"); img = img_png_get("../forest-6-layer-test_ground.png"); |