boutta completely rewrite spinners, wish me luck

This commit is contained in:
PossiblyAxolotl 2022-07-07 15:20:32 -06:00
parent 1a5d40098d
commit da60050e90
5 changed files with 10837 additions and 5 deletions

View file

@ -151,12 +151,14 @@ function playdate.keyboard.keyboardWillHideCallback(ok)
end end
function playdate.keyboard.textChangedCallback() function playdate.keyboard.textChangedCallback()
local newTex = playdate.keyboard.text:gsub("/", ""):gsub("\\", ""):gsub("|", ""):gsub(":", ""):gsub("*", ""):gsub("?", ""):gsub('"', ""):gsub("<", ""):gsub(">", "")
if #playdate.keyboard.text > 24 then if #newTex > 24 then
playdate.keyboard.text = prevtext newTex = prevtext
end end
prevtext = playdate.keyboard.text playdate.keyboard.text = newTex
prevtext = newTex
end end
local tileIndex = 0.0 local tileIndex = 0.0

View file

@ -83,7 +83,16 @@ end)
playdate.ui.crankIndicator:start() 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() function playdate.update()
if mode == "menu" then if mode == "menu" then

View file

@ -68,7 +68,6 @@ function processStars(_x,_y)
star.y = _y star.y = _y
end end
end end
end end
function processExplosions() function processExplosions()

7537
Source/data/.bl1 Normal file

File diff suppressed because it is too large Load diff

3285
Source/data/.bl2 Normal file

File diff suppressed because it is too large Load diff