Rocket-Bytes/Source/Editor.lua

22 lines
445 B
Lua
Raw Normal View History

2022-04-27 02:40:39 +00:00
import "CoreLibs/keyboard"
local gfx <const> = playdate.graphics
function newProject()
mode = "newproj"
playdate.keyboard.show("test")
end
function updateNewproj()
gfx.clear()
gfx.drawText("LEVEL NAME:", 0, 105)
gfx.drawText(playdate.keyboard.text:upper(),0,125)
end
function playdate.keyboard.keyboardWillHideCallback(ok)
if ok == false then
page = 0
playdate.wait(0.3)
editLoad()
end
end