summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. 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)
commit1a8f91467aad191721d57a9ad772f6700c029e1d (patch)
tree4790ccd415cdd5e4fa22acaae7347520b5bcd296 /src/main.c
parent1e4407da677dd7a192c817de16583bb7199ceeb0 (diff)
downloadoverworld-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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 24e9e1e..c867f65 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");