mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Fix collision angles generator and add collision modes for sensors
This commit is contained in:
parent
7bfcc0ea3c
commit
f0c87413da
7 changed files with 246 additions and 154 deletions
|
@ -55,6 +55,9 @@ typedef enum {
|
|||
ACTION_HURT,
|
||||
} PlayerAction;
|
||||
|
||||
// Alias to make things look less weird
|
||||
typedef LinecastDirection CollMode;
|
||||
|
||||
typedef struct {
|
||||
InputState input;
|
||||
|
||||
|
@ -80,6 +83,10 @@ typedef struct {
|
|||
uint16_t iframes;
|
||||
uint8_t shield;
|
||||
|
||||
// Collision modes
|
||||
CollMode gsmode;
|
||||
CollMode psmode;
|
||||
|
||||
PlayerAction action;
|
||||
|
||||
CollisionEvent ev_grnd1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue