kinda stops on the edge

This commit is contained in:
Tobin
2026-04-27 14:13:42 -04:00
parent 2a9ee28f93
commit ed4777344c
+3
View File
@@ -245,6 +245,9 @@ void tick(void)
else p->ay = 9.81;
p->vx += p->ax;
p->vy += p->ay;
/* FIXME */
if (p->y >= screen_height - 100 && p->vy > 0) p->vy = 0;
/* end fixme */
apply_friction(); /* FIXME */
p->x += (int)p->vx;
p->y += (int)p->vy;