summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-27 17:24:40 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-27 17:36:57 (EDT)
commit112f368dc6ea782712ede051c3051d2c0779efcf (patch)
tree7704ed15388b1a680688423c4faa22e7be46012f /src/map.c
parent38f7c9f909815df9886b532e2e631c91ca6db1a6 (diff)
downloaddodge-balls-112f368dc6ea782712ede051c3051d2c0779efcf.zip
dodge-balls-112f368dc6ea782712ede051c3051d2c0779efcf.tar.gz
dodge-balls-112f368dc6ea782712ede051c3051d2c0779efcf.tar.bz2
map: Add tile size query functions
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 6bf2bd9..ea80751 100644
--- a/src/map.c
+++ b/src/map.c
@@ -955,6 +955,18 @@ db_map_render(struct db_map *map, SDL_Renderer *renderer)
}
int
+db_map_get_tilewidth(struct db_map *map)
+{
+ return map->tw;
+}
+
+int
+db_map_get_tileheight(struct db_map *map)
+{
+ return map->th;
+}
+
+int
db_map_get_framerate(struct db_map *map)
{
return map->fr;