ReC98/th05/player/shot.h

18 lines
571 B
C

// We *really* want to fit those on a line...
#define OPT_L shot->from_option_l()
#define OPT_R shot->from_option_r()
#define MISSILE_L shot->type = ST_MISSILE_LEFT
#define MISSILE_R shot->type = ST_MISSILE_RIGHT
#define MISSILE_S shot->type = ST_MISSILE_STRAIGHT
#define VELOCITY_X(screen_x) shot->pos.velocity.x = screen_x;
#define VELOCITY_Y(screen_y) shot->pos.velocity.y = screen_y;
#define VELOCITY_XY(screen_x, screen_y) \
VELOCITY_X(screen_x); \
VELOCITY_Y(screen_y);
#define VELOCITY_YX(screen_y, screen_x) \
VELOCITY_Y(screen_y); \
VELOCITY_X(screen_x);