Fix collision angles generator and add collision modes for sensors

This commit is contained in:
Lucas S. Vieira 2024-11-28 01:36:09 -03:00 committed by Lucas Vieira
parent 7bfcc0ea3c
commit f0c87413da
7 changed files with 246 additions and 154 deletions

View file

@ -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;