projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix jump problem
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player_walk.h
diff --git
a/player_walk.h
b/player_walk.h
index 42cd760d67825f71f5fd38afc2a8e24716600a79..3e450bcc26f541182bdb613987f0d242e109caf7 100644
(file)
--- a/
player_walk.h
+++ b/
player_walk.h
@@
-4,6
+4,8
@@
#include "player_api.h"
#include "rigidbody.h"
#include "player_api.h"
#include "rigidbody.h"
+#define PLAYER_JUMP_EPSILON 0.1 /* 100ms jump allowance */
+
struct player_walk{
rb_capsule collider;
struct player_walk{
rb_capsule collider;
@@
-35,6
+37,9
@@
struct player_walk{
struct skeleton_anim *outro_anim;
double outro_start_time;
struct skeleton_anim *outro_anim;
double outro_start_time;
+
+ int jump_queued;
+ f64 jump_input_time;
}
state,
state_gate_storage;
}
state,
state_gate_storage;