rm endless stuff, most levels just need 1 more
|
@ -20,7 +20,6 @@ import "Map"
|
||||||
import "Menu"
|
import "Menu"
|
||||||
import "Saws"
|
import "Saws"
|
||||||
import "Editor"
|
import "Editor"
|
||||||
import "endless"
|
|
||||||
|
|
||||||
mode = "menu"
|
mode = "menu"
|
||||||
map = "data/level.rocketbyte"
|
map = "data/level.rocketbyte"
|
||||||
|
@ -88,16 +87,12 @@ menuButton, error = menu:addMenuItem("main menu", function()
|
||||||
song:play()
|
song:play()
|
||||||
end
|
end
|
||||||
|
|
||||||
if mode =="game" or mode == "play" or mode == "hgame" or mode == "endless" then
|
if mode =="game" or mode == "play" or mode == "hgame" then
|
||||||
killPlayer()
|
killPlayer()
|
||||||
removeMap()
|
removeMap()
|
||||||
killBlades()
|
killBlades()
|
||||||
end
|
end
|
||||||
|
|
||||||
if mode == 'endless' then
|
|
||||||
closeEndless()
|
|
||||||
end
|
|
||||||
|
|
||||||
if mode ~= "music" then
|
if mode ~= "music" then
|
||||||
totalEnergy = 0
|
totalEnergy = 0
|
||||||
showEnergy = false
|
showEnergy = false
|
||||||
|
@ -145,16 +140,12 @@ function playdate.update()
|
||||||
processEndCutscene()
|
processEndCutscene()
|
||||||
elseif mode == "music" then
|
elseif mode == "music" then
|
||||||
updateBox()
|
updateBox()
|
||||||
elseif mode == "game" or mode == "play" or mode == "hgame" or mode == "endless" then
|
elseif mode == "game" or mode == "play" or mode == "hgame" then
|
||||||
song:setVolume(0.5)
|
song:setVolume(0.5)
|
||||||
updatePlayer()
|
updatePlayer()
|
||||||
gfx.sprite.update()
|
gfx.sprite.update()
|
||||||
|
|
||||||
if getFollow() == true then
|
|
||||||
processStars(sprRocket.x-210,sprRocket.y-130)
|
processStars(sprRocket.x-210,sprRocket.y-130)
|
||||||
else
|
|
||||||
processStars(0,0)
|
|
||||||
end
|
|
||||||
processExplosions()
|
processExplosions()
|
||||||
|
|
||||||
local ox, oy = gfx.getDrawOffset()
|
local ox, oy = gfx.getDrawOffset()
|
||||||
|
@ -170,7 +161,7 @@ function playdate.update()
|
||||||
end
|
end
|
||||||
|
|
||||||
if tutorial then
|
if tutorial then
|
||||||
symbols:drawText("AOu",-ox+2,-oy + 202)
|
symbols:drawText("A/BOp",-ox+2,-oy + 202)
|
||||||
end
|
end
|
||||||
elseif mode == "newproj" then
|
elseif mode == "newproj" then
|
||||||
gfx.clear()
|
gfx.clear()
|
||||||
|
@ -184,10 +175,6 @@ function playdate.update()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
updateSaws()
|
updateSaws()
|
||||||
|
|
||||||
if mode == 'endless' then
|
|
||||||
processEndless()
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function playdate.gameWillTerminate()
|
function playdate.gameWillTerminate()
|
||||||
|
|
|
@ -141,7 +141,7 @@ local function dataLoad()
|
||||||
local lvls = {"1. HOOK.json","2. ROCKET.json","3. HUT.json","4. SPINNER.json","5. SHUTTLE.json","6. SHELL.json","7. PYRAMID.json","8. KITCHEN.json","9. LADDER.json","10. CITY.json","11. FLOWER.json", "12. BOXES.json","13. SNAKE.json","14. TOWER.json","15. ESCAPE.json","H1. CAVEYARD.json", "H2. PUMPKIN.json", "H3. HAUNTED HOUS.json", "H4. TRICK OR TREAT.json", "H5. CANDY CORN.json","H6. COFFIN.json"}
|
local lvls = {"1. HOOK.json","2. ROCKET.json","3. HUT.json","4. SPINNER.json","5. SHUTTLE.json","6. SHELL.json","7. PYRAMID.json","8. KITCHEN.json","9. LADDER.json","10. CITY.json","11. FLOWER.json", "12. BOXES.json","13. SNAKE.json","14. TOWER.json","15. ESCAPE.json","H1. CAVEYARD.json", "H2. PUMPKIN.json", "H3. HAUNTED HOUS.json", "H4. TRICK OR TREAT.json", "H5. CANDY CORN.json","H6. COFFIN.json"}
|
||||||
|
|
||||||
if isPlus then
|
if isPlus then
|
||||||
local plusLvls = {"P1. CONSOLE.json", "P2. FISH.json"}
|
local plusLvls = {"P1. CONSOLE.json", "P2. FISH.json", "P3. DOWNWARD CLIMB.json", "P4. FACTORY.json", "P5. UZUMAKI.json", "P6. MELTING.json", "P7. QUADRANTS.json"}
|
||||||
for item = 1, #plusLvls do
|
for item = 1, #plusLvls do
|
||||||
lvls[#lvls+1] = plusLvls[item]
|
lvls[#lvls+1] = plusLvls[item]
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,12 +4,6 @@ grav = 0.2
|
||||||
scale = 1
|
scale = 1
|
||||||
local dead = false
|
local dead = false
|
||||||
|
|
||||||
local follow = false
|
|
||||||
|
|
||||||
function getFollow()
|
|
||||||
return follow
|
|
||||||
end
|
|
||||||
|
|
||||||
local rocketfly = nil
|
local rocketfly = nil
|
||||||
|
|
||||||
local exists = false
|
local exists = false
|
||||||
|
@ -61,18 +55,13 @@ local function die()
|
||||||
sfxDie:play()
|
sfxDie:play()
|
||||||
end
|
end
|
||||||
|
|
||||||
function addPlayer(_x,_y,__x,__y, camfollow)
|
function addPlayer(_x,_y,__x,__y)
|
||||||
exists = true
|
exists = true
|
||||||
dead = false
|
dead = false
|
||||||
scale = 1
|
scale = 1
|
||||||
active = false
|
active = false
|
||||||
sprSpawn:add()
|
sprSpawn:add()
|
||||||
sprSpawn:moveTo(_x,_y)
|
sprSpawn:moveTo(_x,_y)
|
||||||
if camfollow ~= nil then
|
|
||||||
follow = camfollow
|
|
||||||
else
|
|
||||||
follow = true
|
|
||||||
end
|
|
||||||
|
|
||||||
velocity = {x=0,y=0}
|
velocity = {x=0,y=0}
|
||||||
startpos = {x= _x,y=_y}
|
startpos = {x= _x,y=_y}
|
||||||
|
@ -199,10 +188,8 @@ function updatePlayer()
|
||||||
end
|
end
|
||||||
sprRocket:moveBy(velocity.x,velocity.y)
|
sprRocket:moveBy(velocity.x,velocity.y)
|
||||||
|
|
||||||
if follow then
|
|
||||||
local cx, cy = gfx.getDrawOffset()
|
local cx, cy = gfx.getDrawOffset()
|
||||||
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
|
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
|
||||||
end
|
|
||||||
|
|
||||||
sprRocket:setRotation(0)
|
sprRocket:setRotation(0)
|
||||||
sprRocket:update()
|
sprRocket:update()
|
||||||
|
@ -218,15 +205,11 @@ function updatePlayer()
|
||||||
if (playdate.buttonJustPressed(playdate.kButtonUp) or playdate.buttonJustPressed(playdate.kButtonDown) or playdate.buttonJustPressed(playdate.kButtonLeft) or playdate.buttonJustPressed(playdate.kButtonRight) or playdate.buttonJustPressed(playdate.kButtonA) or playdate.buttonJustPressed(playdate.kButtonB)) and playdate.isCrankDocked() == false then
|
if (playdate.buttonJustPressed(playdate.kButtonUp) or playdate.buttonJustPressed(playdate.kButtonDown) or playdate.buttonJustPressed(playdate.kButtonLeft) or playdate.buttonJustPressed(playdate.kButtonRight) or playdate.buttonJustPressed(playdate.kButtonA) or playdate.buttonJustPressed(playdate.kButtonB)) and playdate.isCrankDocked() == false then
|
||||||
active = true
|
active = true
|
||||||
end
|
end
|
||||||
if follow then
|
|
||||||
local cx, cy = gfx.getDrawOffset()
|
local cx, cy = gfx.getDrawOffset()
|
||||||
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
|
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
|
||||||
end
|
|
||||||
elseif dead == true then
|
elseif dead == true then
|
||||||
if follow then
|
|
||||||
local cx, cy = gfx.getDrawOffset()
|
local cx, cy = gfx.getDrawOffset()
|
||||||
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), 0.1), playdate.math.lerp(cy,(-sprRocket.y + 120), 0.1))
|
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), 0.1), playdate.math.lerp(cy,(-sprRocket.y + 120), 0.1))
|
||||||
end
|
|
||||||
sprBigRocket:setImage(loopBigFire:image())
|
sprBigRocket:setImage(loopBigFire:image())
|
||||||
if scale > 0.1 then
|
if scale > 0.1 then
|
||||||
scale -= 0.05
|
scale -= 0.05
|
||||||
|
@ -245,19 +228,6 @@ function updatePlayer()
|
||||||
if active and inp then
|
if active and inp then
|
||||||
sprRocket:setImage(loopFire:image())
|
sprRocket:setImage(loopFire:image())
|
||||||
end
|
end
|
||||||
|
|
||||||
if not follow then
|
|
||||||
if sprRocket.y > 240 then
|
|
||||||
sprRocket:moveTo(sprRocket.x, 0)
|
|
||||||
elseif sprRocket.y < 0 then
|
|
||||||
sprRocket:moveTo(sprRocket.x, 240)
|
|
||||||
end
|
|
||||||
if sprRocket.x > 400 then
|
|
||||||
sprRocket:moveTo(0, sprRocket.y)
|
|
||||||
elseif sprRocket.x < 0 then
|
|
||||||
sprRocket:moveTo(400, sprRocket.y)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function updateExit()
|
function updateExit()
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"x":1552,
|
"x":1552,
|
||||||
"y":1216
|
"y":1216
|
||||||
},
|
},
|
||||||
|
"next":"data/P5. UZUMAKI.json",
|
||||||
"checks": [
|
"checks": [
|
||||||
],
|
],
|
||||||
"fuel": [
|
"fuel": [
|
||||||
|
|
1461
Source/data/P5. UZUMAKI.json
Normal file
1044
Source/data/P6. MELTING.json
Normal file
3860
Source/data/P7. QUADRANTS.json
Normal file
1517
Source/data/P8. DOWNUP.json
Normal file
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
|
@ -1,4 +1,4 @@
|
||||||
name=Rocket Bytes
|
name=Rocket Bytes+
|
||||||
author=PossiblyAxolotl
|
author=PossiblyAxolotl
|
||||||
description=Help a crew of rockets collect energy to get back home!
|
description=Help a crew of rockets collect energy to get back home!
|
||||||
bundleID=com.PossiblyAxolotl.RocketBytes
|
bundleID=com.PossiblyAxolotl.RocketBytes
|
||||||
|
|