A level editor for my unnamed-platformer project. https://gitea.planet-casio.com/KikooDX/unnamed-platformer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
up-editor/save.lua

17 lines
364 B

function save()
if selected_screen ~= default_screen then
file = io.open("screens/"..screen_id..".scr", "w")
file:write(selected_screen)
file:close()
end
end
function load()
file = io.open("screens/"..screen_id..".scr", "r")
if file then
selected_screen = file:read()
file:close()
else
selected_screen = default_screen
end
end