accidentally fucked the repo
This commit is contained in:
parent
67e923af85
commit
32758d89fb
10 changed files with 16 additions and 7580 deletions
|
@ -43,6 +43,7 @@ local imgPlayerExit = gfx.image.new("gfx/bigrocket")
|
||||||
local imgExitMen = gfx.image.new("gfx/leave")
|
local imgExitMen = gfx.image.new("gfx/leave")
|
||||||
local imgSaw = gfx.imagetable.new("gfx/sawblades")
|
local imgSaw = gfx.imagetable.new("gfx/sawblades")
|
||||||
local imgTarget = gfx.image.new("gfx/target")
|
local imgTarget = gfx.image.new("gfx/target")
|
||||||
|
local imgGrid = gfx.image.new("gfx/grid")
|
||||||
assert(imgFloppy)
|
assert(imgFloppy)
|
||||||
assert(imgAdd)
|
assert(imgAdd)
|
||||||
assert(imgMus)
|
assert(imgMus)
|
||||||
|
@ -56,6 +57,7 @@ assert(imgPlayer)
|
||||||
assert(imgPlayerExit)
|
assert(imgPlayerExit)
|
||||||
assert(imgSaw)
|
assert(imgSaw)
|
||||||
assert(imgTarget)
|
assert(imgTarget)
|
||||||
|
assert(imgGrid)
|
||||||
|
|
||||||
local animFloppy = gfx.animation.loop.new(100, imgFloppy)
|
local animFloppy = gfx.animation.loop.new(100, imgFloppy)
|
||||||
|
|
||||||
|
@ -338,6 +340,7 @@ function editUpdate()
|
||||||
end
|
end
|
||||||
|
|
||||||
if editor ~= "view" then
|
if editor ~= "view" then
|
||||||
|
imgGrid:drawTiled(position.x*16,position.y*16,400,240)
|
||||||
imgCursor:draw((position.x + 11) * 16, (position.y + 7) * 16)
|
imgCursor:draw((position.x + 11) * 16, (position.y + 7) * 16)
|
||||||
end
|
end
|
||||||
--[[
|
--[[
|
||||||
|
|
|
@ -238,8 +238,18 @@ function menuButtonPress(name, index)
|
||||||
song:stop()
|
song:stop()
|
||||||
song:load("sfx/song1")
|
song:load("sfx/song1")
|
||||||
song:play(0)
|
song:play(0)
|
||||||
|
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"
|
||||||
|
if playdate.file.exists("bonusLevels.rocketbytes") then
|
||||||
|
m[6] = "EXTRA LEVELS"
|
||||||
end
|
end
|
||||||
|
createMenu(m)
|
||||||
|
else
|
||||||
createMenu(mainmenu)
|
createMenu(mainmenu)
|
||||||
|
end
|
||||||
|
|
||||||
elseif name == "MUSIC BOX" then
|
elseif name == "MUSIC BOX" then
|
||||||
logopos = -112
|
logopos = -112
|
||||||
barpos = 160
|
barpos = 160
|
||||||
|
|
|
@ -5,10 +5,11 @@ function updateBox()
|
||||||
local change, aChange = playdate.getCrankChange()
|
local change, aChange = playdate.getCrankChange()
|
||||||
|
|
||||||
if paused then
|
if paused then
|
||||||
|
if change<0 then change = 0 end
|
||||||
song:setRate(change*0.03)
|
song:setRate(change*0.03)
|
||||||
else
|
else
|
||||||
playbackRate += change*0.001
|
playbackRate += change*0.001
|
||||||
if playbackRate < 0.1 then playbackRate = 0.1 end
|
if playbackRate < 0.2 then playbackRate = 0.2 end
|
||||||
song:setRate(playbackRate)
|
song:setRate(playbackRate)
|
||||||
end
|
end
|
||||||
if playdate.buttonJustPressed(playdate.kButtonA) then
|
if playdate.buttonJustPressed(playdate.kButtonA) then
|
||||||
|
|
File diff suppressed because it is too large
Load diff
BIN
Source/gfx/grid.png
Normal file
BIN
Source/gfx/grid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue