messed around idk, also made better temp card

This commit is contained in:
PossiblyAxolotl 2022-06-12 22:51:48 -06:00
parent a2d5a9d92d
commit 675c9220ab
37 changed files with 11 additions and 5 deletions

View file

@ -175,7 +175,7 @@ function editUpdate()
curY = (math.floor( tileIndex ) % 8) * 28 +7 curY = (math.floor( tileIndex ) % 8) * 28 +7
elseif editor == "pos2Saw" then elseif editor == "pos2Saw" then
traveltime += change * 0.01 traveltime += change * 0.003
if traveltime < 0.2 then traveltime = 0.2 end if traveltime < 0.2 then traveltime = 0.2 end
traveltime = tonumber(string.format("%.2f", traveltime)) traveltime = tonumber(string.format("%.2f", traveltime))
end end
@ -210,8 +210,10 @@ function editUpdate()
powers[#powers+1] = {x=((position.x + 11) * 16)-7, y=((position.y + 7) * 16)-5} powers[#powers+1] = {x=((position.x + 11) * 16)-7, y=((position.y + 7) * 16)-5}
elseif math.floor(tileIndex) == 2 then elseif math.floor(tileIndex) == 2 then
pos1.x,pos1.y=((position.x + 11) * 16), ((position.y + 7) * 16) pos1.x,pos1.y=((position.x + 11) * 16), ((position.y + 7) * 16)
tileIndex = 0
editor = "pos2Saw" editor = "pos2Saw"
elseif math.floor( tileIndex ) == 3 then
pos1.x,pos1.y=((position.x + 11) * 16), ((position.y + 7) * 16)
editor = "pos2Spin"
elseif math.floor(tileIndex) == 4 then elseif math.floor(tileIndex) == 4 then
playerPos = {x = ((position.x + 11) * 16) - 6, y = ((position.y + 7) * 16) - 4} playerPos = {x = ((position.x + 11) * 16) - 6, y = ((position.y + 7) * 16) - 4}
elseif math.floor(tileIndex) == 5 then elseif math.floor(tileIndex) == 5 then
@ -256,6 +258,7 @@ function editUpdate()
for saw= 1, #sawblades, 1 do for saw= 1, #sawblades, 1 do
if sawblades[saw].start.x == (position.x + 11) * 16 and sawblades[saw].start.y == (position.y + 7) * 16 then if sawblades[saw].start.x == (position.x + 11) * 16 and sawblades[saw].start.y == (position.y + 7) * 16 then
table.remove(sawblades, saw) table.remove(sawblades, saw)
break
end end
end end
end end

View file

@ -22,6 +22,7 @@ function loadBlades(_blades)
b.ends = playdate.geometry.point.new(b.ends.x+8,b.ends.y+8) b.ends = playdate.geometry.point.new(b.ends.x+8,b.ends.y+8)
b.saw = gfx.sprite.new(loopSaws:image()) b.saw = gfx.sprite.new(loopSaws:image())
b.saw:moveTo(b.start) b.saw:moveTo(b.start)
b.saw:setZIndex(1)
b.saw:setCollideRect(0,0,16,16) b.saw:setCollideRect(0,0,16,16)
b.saw:add() b.saw:add()
@ -49,7 +50,7 @@ function loadSpins(_spins)
s.middle = gfx.sprite.new(imgTarget) s.middle = gfx.sprite.new(imgTarget)
end end
s.middle:moveTo(s.x,s.y) s.middle:moveTo(s.x,s.y)
s.middle:setZIndex(2) s.middle:setZIndex(1)
s.middle:add() s.middle:add()
local sb = {speed=s.speed,arms={},mid=s.middle,time=0} local sb = {speed=s.speed,arms={},mid=s.middle,time=0}
@ -62,7 +63,7 @@ function loadSpins(_spins)
sb.arms[i][p] = gfx.sprite.new(loopSaws:image()) sb.arms[i][p] = gfx.sprite.new(loopSaws:image())
sb.arms[i][p]:moveTo(s.x + position.x, s.y + position.y) sb.arms[i][p]:moveTo(s.x + position.x, s.y + position.y)
sb.arms[i][p]:setCollideRect(0,0,16,16) sb.arms[i][p]:setCollideRect(0,0,16,16)
sb.arms[i][p]:setZIndex(2) sb.arms[i][p]:setZIndex(1)
sb.arms[i][p]:add() sb.arms[i][p]:add()
end end
end end
@ -79,7 +80,7 @@ function loadFuel(_fuel)
fuels[i]:setGroups({2}) fuels[i]:setGroups({2})
fuels[i]:setCollidesWithGroups({3}) fuels[i]:setCollidesWithGroups({3})
fuels[i].active = true fuels[i].active = true
fuels[i]:setZIndex(1) fuels[i]:setZIndex(2)
fuels[i]:setCollideRect(-6,-6 ,30,30) fuels[i]:setCollideRect(-6,-6 ,30,30)
fuels[i]:add() fuels[i]:add()

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.