summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
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");