rm endless stuff, most levels just need 1 more

This commit is contained in:
PossiblyAxolotl 2024-03-09 18:07:11 -06:00
parent 33e9fb6c49
commit 0b4d2c7f38
32 changed files with 7896 additions and 56 deletions

View file

@ -20,7 +20,6 @@ import "Map"
import "Menu"
import "Saws"
import "Editor"
import "endless"
mode = "menu"
map = "data/level.rocketbyte"
@ -88,16 +87,12 @@ menuButton, error = menu:addMenuItem("main menu", function()
song:play()
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()
removeMap()
killBlades()
end
if mode == 'endless' then
closeEndless()
end
if mode ~= "music" then
totalEnergy = 0
showEnergy = false
@ -145,16 +140,12 @@ function playdate.update()
processEndCutscene()
elseif mode == "music" then
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)
updatePlayer()
gfx.sprite.update()
if getFollow() == true then
processStars(sprRocket.x-210,sprRocket.y-130)
else
processStars(0,0)
end
processStars(sprRocket.x-210,sprRocket.y-130)
processExplosions()
local ox, oy = gfx.getDrawOffset()
@ -170,7 +161,7 @@ function playdate.update()
end
if tutorial then
symbols:drawText("AOu",-ox+2,-oy + 202)
symbols:drawText("A/BOp",-ox+2,-oy + 202)
end
elseif mode == "newproj" then
gfx.clear()
@ -184,10 +175,6 @@ function playdate.update()
end
end
updateSaws()
if mode == 'endless' then
processEndless()
end
end
function playdate.gameWillTerminate()

View file

@ -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"}
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
lvls[#lvls+1] = plusLvls[item]
end

View file

@ -4,12 +4,6 @@ grav = 0.2
scale = 1
local dead = false
local follow = false
function getFollow()
return follow
end
local rocketfly = nil
local exists = false
@ -61,18 +55,13 @@ local function die()
sfxDie:play()
end
function addPlayer(_x,_y,__x,__y, camfollow)
function addPlayer(_x,_y,__x,__y)
exists = true
dead = false
scale = 1
active = false
sprSpawn:add()
sprSpawn:moveTo(_x,_y)
if camfollow ~= nil then
follow = camfollow
else
follow = true
end
velocity = {x=0,y=0}
startpos = {x= _x,y=_y}
@ -199,10 +188,8 @@ function updatePlayer()
end
sprRocket:moveBy(velocity.x,velocity.y)
if follow then
local cx, cy = gfx.getDrawOffset()
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
end
local cx, cy = gfx.getDrawOffset()
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
sprRocket:setRotation(0)
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
active = true
end
if follow then
local cx, cy = gfx.getDrawOffset()
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
end
local cx, cy = gfx.getDrawOffset()
gfx.setDrawOffset(playdate.math.lerp(cx,(-sprRocket.x + 200), lerpmnt), playdate.math.lerp(cy,(-sprRocket.y + 120), lerpmnt))
elseif dead == true then
if follow then
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))
end
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))
sprBigRocket:setImage(loopBigFire:image())
if scale > 0.1 then
scale -= 0.05
@ -245,19 +228,6 @@ function updatePlayer()
if active and inp then
sprRocket:setImage(loopFire:image())
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
function updateExit()

View file

@ -3,6 +3,7 @@
"x":1552,
"y":1216
},
"next":"data/P5. UZUMAKI.json",
"checks": [
],
"fuel": [

1461
Source/data/P5. UZUMAKI.json Normal file

File diff suppressed because it is too large Load diff

1044
Source/data/P6. MELTING.json Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

1517
Source/data/P8. DOWNUP.json Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -1,4 +1,4 @@
name=Rocket Bytes
name=Rocket Bytes+
author=PossiblyAxolotl
description=Help a crew of rockets collect energy to get back home!
bundleID=com.PossiblyAxolotl.RocketBytes