boutta completely rewrite spinners, wish me luck
This commit is contained in:
parent
1a5d40098d
commit
da60050e90
5 changed files with 10837 additions and 5 deletions
|
@ -151,12 +151,14 @@ function playdate.keyboard.keyboardWillHideCallback(ok)
|
|||
end
|
||||
|
||||
function playdate.keyboard.textChangedCallback()
|
||||
local newTex = playdate.keyboard.text:gsub("/", ""):gsub("\\", ""):gsub("|", ""):gsub(":", ""):gsub("*", ""):gsub("?", ""):gsub('"', ""):gsub("<", ""):gsub(">", "")
|
||||
|
||||
if #playdate.keyboard.text > 24 then
|
||||
playdate.keyboard.text = prevtext
|
||||
if #newTex > 24 then
|
||||
newTex = prevtext
|
||||
end
|
||||
|
||||
prevtext = playdate.keyboard.text
|
||||
playdate.keyboard.text = newTex
|
||||
prevtext = newTex
|
||||
end
|
||||
|
||||
local tileIndex = 0.0
|
||||
|
|
|
@ -83,7 +83,16 @@ end)
|
|||
|
||||
playdate.ui.crankIndicator:start()
|
||||
|
||||
if playdate.file.exists("levels") == false then playdate.file.mkdir("levels") end
|
||||
if playdate.file.exists("levels") == false then
|
||||
playdate.file.mkdir("levels")
|
||||
end
|
||||
|
||||
if playdate.file.exists("levels/ROCKETBYTES LEVEL 1.json") == false then
|
||||
local data = json.decodeFile("data/.bl1")
|
||||
playdate.datastore.write(data,"levels/ROCKETBYTES LEVEL 1")
|
||||
data = json.decodeFile("data/.bl2")
|
||||
playdate.datastore.write(data,"levels/ROCKETBYTES LEVEL 2")
|
||||
end
|
||||
|
||||
function playdate.update()
|
||||
if mode == "menu" then
|
||||
|
|
|
@ -68,7 +68,6 @@ function processStars(_x,_y)
|
|||
star.y = _y
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function processExplosions()
|
||||
|
|
7537
Source/data/.bl1
Normal file
7537
Source/data/.bl1
Normal file
File diff suppressed because it is too large
Load diff
3285
Source/data/.bl2
Normal file
3285
Source/data/.bl2
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue