added bonus levels

This commit is contained in:
PossiblyAxolotl 2022-07-16 19:37:12 -06:00
parent 9528c9987e
commit 002c4e6631
46 changed files with 3113 additions and 27 deletions

View file

@ -1,6 +1,3 @@
import "CoreLibs/animation"
import "CoreLibs/animator"
import "CoreLibs/sprites"
local gfx <const> = playdate.graphics
local imgBigRocket = gfx.image.new("gfx/bigrocket")

View file

@ -1,7 +1,3 @@
import "CoreLibs/keyboard"
import "CoreLibs/animation"
import "CoreLibs/math"
local gfx <const> = playdate.graphics
local prevtext = ""
local levelname = nil
@ -517,6 +513,7 @@ function editClose()
tiles = {}
powers = {}
sawblades = {}
spins = {}
editor = "main"
tileIndex = 0
playdate.display.setInverted(false)

View file

@ -6,6 +6,12 @@
import "CoreLibs/graphics"
import "CoreLibs/sprites"
import "CoreLibs/math"
import "CoreLibs/animation"
import "CoreLibs/animator"
import "CoreLibs/timer"
import "CoreLibs/easing"
import "CoreLibs/keyboard"
import "CoreLibs/ui"
import "Cutscenes"
import "Particles"
@ -37,7 +43,6 @@ gfx.setBackgroundColor(gfx.kColorBlack)
song = playdate.sound.fileplayer.new("sfx/song1")
song:setVolume(0.5)
--song:setVolume(0.5,0.5, 1)
song:play(0)
local imgSkull = gfx.image.new("gfx/skullEmoji")
local imgLightning = gfx.image.new("gfx/lightning")
@ -86,13 +91,17 @@ 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")
if playdate.file.exists("levels/BONUS LEVEL 1.json") == false then
local data = json.decodeFile("bl1.json")
playdate.datastore.write(data,"levels/BONUS LEVEL 1")
data = json.decodeFile("bl2.json")
playdate.datastore.write(data,"levels/BONUS LEVEL 2")
data = json.decodeFile("bl3.json")
playdate.datastore.write(data,"levels/BONUS LEVEL 3")
end
song:play(0)
function playdate.update()
if mode == "menu" then
updateMenu()

View file

@ -2,6 +2,7 @@ paused = false
playbackRate = 1.0
local timeRate = true
songTitle = "AAA"
local number = math.random(1000,9999)
local imgDither = playdate.graphics.image.new("gfx/dither")
local imgCover = playdate.graphics.image.new("gfx/cover1bit")

View file

@ -1,9 +1,3 @@
import "CoreLibs/math"
import "CoreLibs/animation"
import "CoreLibs/animator"
import "CoreLibs/timer"
import "CoreLibs/easing"
local velocity = {x=0,y=0}
local lerpmnt <const> = 0.5
local grav <const> = 0.2

View file

@ -1,5 +1,3 @@
import "CoreLibs/animator"
import "CoreLibs/animation"
local gfx <const> = playdate.graphics
local imgSaw = gfx.imagetable.new("gfx/sawblades")
@ -133,6 +131,7 @@ function updateSaws()
b = blades[b]
b.saw:setImage(loopSaws:image())
local pos = playdate.geometry.point.new(b.saw:getPosition())
if pos == b.start then
local a = gfx.animator.new(b.speed*1000, b.start, b.ends)
@ -149,16 +148,21 @@ function updateSaws()
local s = spinblades[spinner]
s.time += s.speed
print(s.time)
for len = 1, #s.layers, 1 do
local arc = s.layers[len].curve
for arm = 1, #s.layers[len].saws, 1 do
local sawPos = arc:pointOnArc(arc:length() / 4 / #s.layers[len].saws * arm + (s.time * len))
if s.time > arc:length() / 4 or s.time < -arc:length() / 4 then s.time = 0 end
if s.speed > 0 then
local sawPos = arc:pointOnArc(arc:length() / 4 / #s.layers[len].saws * arm + (s.time * len))
s.layers[len].saws[arm]:moveTo(sawPos.x,sawPos.y)
s.layers[len].saws[arm]:moveTo(sawPos.x,sawPos.y)
else
local sawPos = arc:pointOnArc(arc:length() / 4 / #s.layers[len].saws * arm + (-s.time * len))
s.layers[len].saws[arm]:moveTo(s.mid.x -(s.mid.y - sawPos.y) ,s.mid.y -(s.mid.x - sawPos.x))
end
end
end
end

3087
Source/bl3.json Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

View file

@ -1,3 +0,0 @@
loopCount=0
frames = 33x4,32x4
introFrames=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2 KiB