add stripe, fix a sign error, some braking when crossing water at high speed

This commit is contained in:
Kistaro Windrider 2024-02-03 23:41:00 -08:00
parent 16469f0863
commit 258a3ef66b
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -411,6 +411,11 @@ function newtitle()
end end
}, },
bg.new{c=1}, bg.new{c=1},
bg.new{
y=28,
h=72,
c=5,
},
box, box,
toyphin.new(), toyphin.new(),
{ {
@ -615,7 +620,9 @@ function toyphin:update()
-- maybe boost -- maybe boost
if dy > -4.125 then if dy > -4.125 then
new_y = 64 + ((dy + y - 64)/dy * -4.125) new_y = 64 + ((dy + y - 64)/dy * -4.125)
dy = 4.125 dy = -4.125
else
dy = (dy - 4.125) / 2
end end
else else
-- brake -- brake
@ -636,6 +643,8 @@ function toyphin:update()
if dy < 4.125 then if dy < 4.125 then
new_y = 64 - ((dy - y + 64)/dy * 4.125) new_y = 64 - ((dy - y + 64)/dy * 4.125)
dy = 4.125 dy = 4.125
else
dy = (4.125 + dy) / 2
end end
else else
--brake --brake