mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Add Miles' flight and swim
This commit is contained in:
parent
6271d5e741
commit
135d6fb431
3 changed files with 75 additions and 9 deletions
|
@ -17,6 +17,7 @@
|
|||
#define PUSH_RADIUS 10
|
||||
|
||||
#define PLAYER_HURT_IFRAMES 120
|
||||
#define PLAYER_FLY_MAXFRAMES 480
|
||||
|
||||
typedef enum {
|
||||
CHARA_SONIC = 0,
|
||||
|
@ -39,6 +40,7 @@ typedef enum {
|
|||
ACTION_SPRING,
|
||||
ACTION_HURT,
|
||||
ACTION_GASP,
|
||||
ACTION_FLY,
|
||||
} PlayerAction;
|
||||
|
||||
// Alias to make things look less weird
|
||||
|
@ -75,10 +77,10 @@ typedef struct {
|
|||
uint8_t grnd;
|
||||
uint8_t ceil;
|
||||
uint8_t push;
|
||||
uint32_t spinrev;
|
||||
uint32_t spinrev; // Also used as flight and glide direction toggle
|
||||
uint8_t ctrllock;
|
||||
uint8_t airdirlock;
|
||||
uint8_t framecount;
|
||||
uint16_t framecount;
|
||||
uint8_t holding_jump;
|
||||
uint16_t iframes;
|
||||
uint8_t shield;
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#define MILES_GRAVITY_FLYDOWN 0x00000080
|
||||
#define MILES_GRAVITY_FLYUP 0x00000200 // Fly up by SUBTRACTING this gravity
|
||||
|
||||
// Constants for running the game at a fixed 60 FPS.
|
||||
// These constants are also in a 12-scale format for fixed point math.
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue