From 2b3245f44fecbf2e426bb28f522a24e00662c610 Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Thu, 12 Mar 2026 18:10:06 -0400 Subject: Make the room editor un-hacked in --- src/objs/tilemap.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/objs/tilemap.lua') 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 -- cgit v1.3-2-g0d8e