messed around idk, also made better temp card
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
BIN
Source/launcher/card-highlighted/1.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/10.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/11.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/12.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/13.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/14.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/15.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/16.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/17.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
Source/launcher/card-highlighted/18.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Source/launcher/card-highlighted/19.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Source/launcher/card-highlighted/2.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/20.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Source/launcher/card-highlighted/21.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Source/launcher/card-highlighted/22.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Source/launcher/card-highlighted/23.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/24.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/25.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/26.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/27.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/28.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/29.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/3.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/30.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/31.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/32.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/4.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/5.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/6.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/7.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/8.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
Source/launcher/card-highlighted/9.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
2
Source/launcher/card-highlighted/animation.txt
Normal 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
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1 KiB |