add stripe, fix a sign error, some braking when crossing water at high speed
This commit is contained in:
parent
16469f0863
commit
258a3ef66b
11
vacation.p8
11
vacation.p8
@ -411,6 +411,11 @@ function newtitle()
|
||||
end
|
||||
},
|
||||
bg.new{c=1},
|
||||
bg.new{
|
||||
y=28,
|
||||
h=72,
|
||||
c=5,
|
||||
},
|
||||
box,
|
||||
toyphin.new(),
|
||||
{
|
||||
@ -615,7 +620,9 @@ function toyphin:update()
|
||||
-- maybe boost
|
||||
if dy > -4.125 then
|
||||
new_y = 64 + ((dy + y - 64)/dy * -4.125)
|
||||
dy = 4.125
|
||||
dy = -4.125
|
||||
else
|
||||
dy = (dy - 4.125) / 2
|
||||
end
|
||||
else
|
||||
-- brake
|
||||
@ -636,6 +643,8 @@ function toyphin:update()
|
||||
if dy < 4.125 then
|
||||
new_y = 64 - ((dy - y + 64)/dy * 4.125)
|
||||
dy = 4.125
|
||||
else
|
||||
dy = (4.125 + dy) / 2
|
||||
end
|
||||
else
|
||||
--brake
|
||||
|
Loading…
Reference in New Issue
Block a user