2019-10-12 16:29:28 +00:00
|
|
|
// We *really* want to fit those on a line...
|
|
|
|
#define OPT_L shot->from_option_l()
|
|
|
|
#define OPT_R shot->from_option_r()
|
2019-10-14 20:30:54 +00:00
|
|
|
#define MISSILE_L shot->type = ST_MISSILE_LEFT
|
|
|
|
#define MISSILE_R shot->type = ST_MISSILE_RIGHT
|
|
|
|
#define MISSILE_S shot->type = ST_MISSILE_STRAIGHT
|
2019-10-12 16:29:28 +00:00
|
|
|
|
|
|
|
#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);
|