summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-17 16:04:04 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-17 16:04:04 (EST)
commitb32bffdf8fc10db7875ce1bbf4fed2a23a160653 (patch)
tree04d5fc2e22a8f6c987fce88976cb5bb187c22295 /src/main.c
parent3f5ba41ed0364268d5a6d10e4ab559b61393edf0 (diff)
downloadoverworld-rpg-b32bffdf8fc10db7875ce1bbf4fed2a23a160653.zip
overworld-rpg-b32bffdf8fc10db7875ce1bbf4fed2a23a160653.tar.gz
overworld-rpg-b32bffdf8fc10db7875ce1bbf4fed2a23a160653.tar.bz2
Support objectgroups and map exits.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index abf515e..83d4c5a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -10,6 +10,7 @@ main(void)
struct map *map;
struct image *img;
struct map_tileset *ts;
+ struct map_exit *e;
SDL_Rect imgrect, surfacerect;
init();
@@ -20,6 +21,12 @@ main(void)
debug("Tileset name: %s", ts->tileset->name);
debug("Tileset firstgid: %d", ts->firstgid);
}
+ for (e = map->map_exits_head; e != NULL; e = e->next) {
+ debug("Exit target: map %s (size %dx%d) at (%d,%d)",
+ e->target_map_name,
+ e->target_map->width, e->target_map->height,
+ e->target_x_coord, e->target_y_coord);
+ }
img = img_png_get("../forest-6-layer-test_ground.png");
img_png_free(img);