summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-11 17:04:38 +0800
committerKonAki <konaki@anokonaki.org>2026-10-11 17:04:38 +0800
commit3ea9d25f9eb240b57e40434abade106add157a8d (patch)
tree0ea544033dec915f75c40a6d3d79a1241d80c7db /examples
parentcbde2ee49bf1a94ee38106ef229db89812538de4 (diff)
world: jumpSpeed per body, 0 turns jumping off
Diffstat (limited to 'examples')
-rw-r--r--examples/sectorview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/sectorview.c b/examples/sectorview.c
index dadd0b1..821ce52 100644
--- a/examples/sectorview.c
+++ b/examples/sectorview.c
@@ -29,7 +29,6 @@
#define EYE 0.7f
#define RADIUS 0.2f
#define HEIGHT 1.0f
-#define JUMP 6.0f
#define REACH 1.6f
#define COL_SKY 0xFF1B1826u
@@ -120,7 +119,7 @@ static int event(kon_program_t *program, const kon_event_t *ev, void *user)
if (kon_fpEvent(&state->input, program, ev)) return 1;
if (ev->type == KON_EVENT_KEY_DOWN && ev->key == KON_KEY_SPACE) {
- kon_bodyJump(&state->body, JUMP);
+ kon_bodyJump(&state->body);
return 1;
}
if (ev->type != KON_EVENT_KEY_DOWN || ev->key != KON_KEY_E) return 0;