polishing editor, visible spaces, 0 len names, dec

This commit is contained in:
PossiblyAxolotl 2022-07-07 13:41:23 -06:00
parent 9588aee5d6
commit 1a5d40098d
8 changed files with 149 additions and 15 deletions

1
.gitignore vendored
View file

@ -63,5 +63,6 @@ $RECYCLE.BIN/
.gitignore
*.pdx
.vscode
.VSCodeCounter
*.zip
*.ase

26
Source/Cutscenes.lua Normal file
View file

@ -0,0 +1,26 @@
import "CoreLibs/animation"
import "CoreLibs/animator"
import "CoreLibs/sprites"
local gfx <const> = playdate.graphics
local imgBigRocket = gfx.image.new("gfx/bigrocket")
local tabBigRocket = gfx.imagetable.new("gfx/bigrocketfire")
assert(imgBigRocket)
assert(tabBigRocket)
local animBigRocket = gfx.animation.loop.new(200,tabBigRocket)
local sprCutsceneBigRocket = gfx.sprite.new(tabBigRocket[1])
sprCutsceneBigRocket:setRotation(90)
sprCutsceneBigRocket:moveTo(0 - sprCutsceneBigRocket.height,120)
function beginStartCutscene()
mode = "startCutscene"
end
function updateStartCutscene()
gfx.clear()
gfx.sprite.update()
end

View file

@ -27,7 +27,7 @@ local pos1 = {x,y}
local editor = "main"
local editorSongs = {"song1","song2","song5"}
local editorSongs = {"song1","song2","song5", "song6"}
local selSong = "song2"
local songIndexSel = 10
@ -79,10 +79,12 @@ function newProject()
playdate.keyboard.show("NEW LEVEL")
end
local createNewFont <const> = gfx.font.new("gfx/bigVisibleSpaces")
function updateNewproj()
gfx.clear()
gfx.drawText("LEVEL NAME:", 0, 105)
gfx.drawTextInRect(playdate.keyboard.text:upper(),0,125, 210, 80)
processStars(-10,-10)
gfx.drawText("LEVEL NAME:", 35, 100)
gfx.drawTextInRect(playdate.keyboard.text:upper(),0,130, 210, 80,0,nil,kTextAlignment.center,createNewFont)
end
function editLoadName(name)
@ -121,7 +123,7 @@ function playdate.keyboard.keyboardWillHideCallback(ok)
page = 0
playdate.wait(0.3)
editLoad()
else
elseif #playdate.keyboard.text:upper() > 0 then
song:stop()
mode = "editor"
position = {x=89,y=93}
@ -141,6 +143,10 @@ function playdate.keyboard.keyboardWillHideCallback(ok)
levelname = playdate.keyboard.text:upper()
imgtiles:add()
else
page = 0
playdate.wait(0.3)
editLoad()
end
end
@ -187,8 +193,8 @@ function editUpdate()
elseif editor == "music" then
if tileIndex > 2.9 then tileIndex = 0 end
if tileIndex < 0 then tileIndex = 2.9 end
if tileIndex > #editorSongs - 0.1 then tileIndex = 0 end
if tileIndex < 0 then tileIndex = #editorSongs - 0.1 end
curY = math.floor( tileIndex ) * 28 +7
@ -515,4 +521,3 @@ function editClose()
playdate.getSystemMenu():removeMenuItem(playdate.getSystemMenu():getMenuItems()[2])
end
end

View file

@ -7,6 +7,7 @@
import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "CoreLibs/ui"
import "Cutscenes"
import "Particles"
import "Musicbox"
import "Player"

View file

@ -139,7 +139,7 @@ local function customLoad()
logopos = -112
local lvls = playdate.file.listFiles("levels")
local m = {}
m[0], m[1] = "customs", "MENU"
m[0], m[1] = "customs", "BACK"
if #lvls - ((10*page)) <= 0 then page = 0 end
if #lvls <= 11 then
for i = 1, #lvls, 1 do
@ -162,7 +162,7 @@ function editLoad()
barpos = 160
local lvls = playdate.file.listFiles("levels")
local m = {}
m[0], m[1], m[2] = "edits", "MENU", "CREATE NEW"
m[0], m[1], m[2] = "edits", "BACK", "CREATE NEW"
if #lvls - (1 + (9*page)) <= 0 then page = 0 end
if #lvls <= 10 then
for i = 1, #lvls, 1 do
@ -180,7 +180,7 @@ function editLoad()
createMenu(m)
end
songlist = {"EXTRAS","POV: YOU ARE A ROCKET","A LONELY, LOST SHIP", "LEVEL COMPLETE", "GAME COMPLETE", "CHIPVIBE2"}
songlist = {"BACK","POV: YOU ARE A ROCKET","A LONELY, LOST SHIP", "LEVEL COMPLETE", "GAME COMPLETE", "CHIPVIBE2", "ORANGER CHIP"}
songlist[0] = "musicbox"
function menuButtonPress(name, index)
@ -209,7 +209,7 @@ function menuButtonPress(name, index)
local m = {}
--barpos = 160
--logopos = -112
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "MENU", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "BACK", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
if playdate.file.exists("bonusLevels.rocketbytes") then
m[6] = "EXTRA LEVELS"
end
@ -233,10 +233,10 @@ function menuButtonPress(name, index)
editLoad()
end
elseif name == "BACK" or name == "CANCEL" or name == "MENU" then
elseif name == "BACK" or name == "CANCEL" then
if menu == "musicbox" then
local m = {}
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "MENU", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "BACK", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
if playdate.file.exists("bonusLevels.rocketbytes") then
m[6] = "EXTRA LEVELS"
end
@ -246,7 +246,7 @@ function menuButtonPress(name, index)
local m = {}
--barpos = 160
--logopos = -112
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "MENU", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
m[0],m[1], m[2], m[3], m[4], m[5] = "extras", "BACK", "MUSIC BOX", "END CUTSCENE", "START CUTSCENE", "LEVEL SELECT"
if playdate.file.exists("bonusLevels.rocketbytes") then
m[6] = "EXTRA LEVELS"
end

22
Source/gfx/Symbols.fnt Normal file
View file

@ -0,0 +1,22 @@
--metrics={"baseline":17,"xHeight":1,"capHeight":1,"pairs":{},"left":[],"right":[]}
datalen=1472
data=iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAEF0lEQVR4Xu1a25bCIAzU//9od4sFQ8gdqrTUlz26dhomw5CkPh/HvV4A+jnoNhBzg4zimnGiN9DWmwJ4vV6P57PcovdeBTMxE8d14fQGTRFVBdC5mIzfEB4k340zmiBKOSOU9M/HW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mOutMtVGDt/GcavKGqAb+CoX3AQFt9hVBNC9jltBDgVphlrVXN2pOQlAU+DluOGTUKbdWEJ9hSBuXCmMMW+CqJ+8EP3XSTZLLEyTgu4txgzNbgV9HpSRU0VEEB6ureVBedxBnWL7ibY0QWXcIVhZIgj8fykFxSx+gauWUEFPHm+CHL1YD9GXvfZWkJLaP13HHogxSF09AAAAAElFTkSuQmCC
width=18
height=18
tracking=1
space 11
<EFBFBD> 10
u 17
p 17
d 17
l 17
r 17
A 17
C 17
B 17
D 17
c 12
O 14

View file

@ -0,0 +1,79 @@
--metrics={"baseline":26,"xHeight":2,"capHeight":2,"pairs":{},"left":[],"right":[]}
datalen=4360
data=iVBORw0KGgoAAAANSUhEUgAAAH4AAACQCAYAAADObd96AAAMi0lEQVR4Xu1d2ZbrNgzr/P9H32azx5JJAqBkO5mwDz3tWAsFcJeT/Pz3+8+/zX9H//njPPTmq+P75fv5qpzs+GXfZT91Xnb+JfttQWUPqhKpji/iSQt8DVMV5zH+/q+G8H//bP5/fnb8mRsu8zfjQ4sV9mvgUOcZcj3WC+R9AOHts9POPT7N+qPjR+f3/BXxL0U3FPU7iEcWsQawX81uLL63DGTx3n7LPkgewwN5Fqz+3TyXt5/nlbPnQ15+Fi6rxaMFi3gvVbGp+hriA0tNZeUIONXSkGKrHsTYf9RTUEnwrHNMs/gi/pEoP/JBJ2lEXvw9iO81i83WiXGrjmyRCHKENcpYwI5mu6Pzkafw2A6qpBAflGuw1Y5r8UV8SxkLaO/5PoZ4I4nzsmIzdhMWb/YNAk2WGhRqbqCO74mcFXNv67J9kdADIg+0PN9ZfBGPQrHtCXrAkUKhxlGQM11OvIkQOjBxoBB5tD7hcZoYighI7Od5yOZc2XU3ngGdI9xvxOKL+BsCE109qxhsiOWIR0kJih3IQXquUJ2XkDMsk5DFJ/YzAe/PifAksv7G4lU5R3r1jUtTCfSyZBUgYnwRf48P3SXSyLUse42LdIJ9LmX3Rizs92HfH2DPmepQbuRk5fHwkuQs4vcwjh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iXCZg1eic+WEf08Yh2z/Ni5Cf8nOEfPzial2frfnEfgMnouaX4RD75wgOgMmhafMAiJuNHBlxGPgBG+cABhwLrwMNkSLBa1iL/b1Rfx114HX5HcsTHQtOT+vQHvS469ztiyaLAO6yG8aoM93+xqBXm+5nkR/4Ij6JSpZd3HEC9pyoTB2az+sbVnqUQShrL0WbH3Y+r4CVxKSxTxT7gud/USaxMGmxaBkj1vXyL7D9/EWc1c/8WKCVBct8QVWlfEX8f3uvNlxCMLR5bszScsGMXgKzA5XRWuOCSV9Rbxx+rCZcR79bRhsQ0CnkKodbnQiTuWgYtWL+K/LKmbVbOO6CuKtb2M7PheptFO3MgZ33buFRa/enkSFfZlS2+5It5A5n+TYiFDBZ4fRQAAAABJRU5ErkJggg==
width=14
height=18
tracking=1
0 14
1 14
2 14
3 14
4 14
5 14
6 14
7 14
8 14
9 14
space 14
<EFBFBD> 14
A 14
B 14
C 14
D 14
E 14
F 14
G 14
H 14
I 14
J 14
K 14
L 14
M 14
N 14
O 14
@ 14
P 14
Q 14
R 14
S 14
T 14
U 14
V 14
W 14
X 14
Y 14
Z 14
[ 8
] 8
\ 10
( 8
) 8
{ 8
| 6
} 8
~ 12
: 6
! 6
? 14
; 6
= 10
- 10
+ 10
. 6
< 12
> 12
/ 10
^ 10
_ 12
, 6
# 14
' 6
" 10
$ 14
% 14
& 14
` 8
* 10

BIN
Source/sfx/song6.wav Normal file

Binary file not shown.