From 273f307375bf2e571078be46798ce557b2fde7f5 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 7 Jul 2021 17:29:26 -0400 Subject: [PATCH] don't autorepeat button inputs --- borb.p8 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/borb.p8 b/borb.p8 index 47b3902..54e66b8 100644 --- a/borb.p8 +++ b/borb.p8 @@ -14,8 +14,14 @@ function init_world() end function _init() + -- disable btnp autorepeat + poke(0x5f5c, 255) + + -- set peach as bg color + -- instead of black palt(black, false) palt(peach, true) + init_world() end @@ -47,8 +53,8 @@ function update_player() player.moves += 1 player.flipx = false end - if (btnp(🅾️) and not player.jumping) then - player.vy = -6 + if (btnp(🅾️)) then + player.vy = -5 player.jumping = true end player.y += player.vy