From 72ed89ab35fe7662b78971b564698970d4fbebe4 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 26 Oct 2015 19:16:12 -0400 Subject: [PATCH] Narrower hitbox --- examples/platformer/game.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platformer/game.rkt b/examples/platformer/game.rkt index 926130c..d56fafb 100644 --- a/examples/platformer/game.rkt +++ b/examples/platformer/game.rkt @@ -514,7 +514,7 @@ (define icon-width (/ (image-width icon) 2)) (define icon-height (/ (image-height icon) 2)) - (define icon-hitbox-width (* 2/3 icon-width)) + (define icon-hitbox-width (* 2/6 icon-width)) (define icon-hitbox-height (* 2/5 icon-height)) (define hitbox-offset-x (/ (- icon-width icon-hitbox-width) 2)) (define hitbox-offset-y (- (* 13/16 icon-height) icon-hitbox-height))