Add main.lua

This commit is contained in:
tangent committed 2026-10-29 17:38:26 -06:00
1 parent 69da7d87a2
commit 0c90efdf3e
1 file changed
+12
+12
View File
@@ -0,0 +1,12 @@
local tilesheet = require "lib.tilesheet"
local utility = require "lib.utility"
local tiles
function love.filedropped(file_path)
if file_path:sub(-5) == ".json" then
tiles = tilesheet(utility.load_data(file_path))
else
tiles = tilesheet(file_path)
end
end