aboutsummaryrefslogtreecommitdiff
path: root/src/objs/tilemap.lua
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-12 18:10:06 -0400
committeriamcheeseman <[email protected]>2026-03-12 18:10:06 -0400
commit2b3245f44fecbf2e426bb28f522a24e00662c610 (patch)
tree20740cedc0c063ec76ecd42794b60b414775dbd5 /src/objs/tilemap.lua
parent97d2fc1f3cef3c02fee36e416a8f2b5205940be2 (diff)
Make the room editor un-hacked in
Diffstat (limited to 'src/objs/tilemap.lua')
-rw-r--r--src/objs/tilemap.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/objs/tilemap.lua b/src/objs/tilemap.lua
index f1cdd15..cb29a40 100644
--- a/src/objs/tilemap.lua
+++ b/src/objs/tilemap.lua
@@ -159,3 +159,7 @@ function get_tileset_quad(tileset)
TILE_TEX:getDimensions()
)
end
+
+function get_tileset_count()
+ return TILE_TEX:getHeight() / (4 * TILESIZE)
+end