From 258a3ef66b170013865cad494688a158cb0b0c3c Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 3 Feb 2024 23:41:00 -0800 Subject: [PATCH] add stripe, fix a sign error, some braking when crossing water at high speed --- vacation.p8 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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