diff --git a/vacation.p8 b/vacation.p8 index 2247ae6..68a08bf 100644 --- a/vacation.p8 +++ b/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