ReC98/th05/main/boss/b3puppet.hpp

28 lines
529 B
C++

#include "th04/main/playfld.hpp"
#include "th02/main/entity.hpp"
#define PUPPET_COUNT 2
#define PUPPET_W 32
#define PUPPET_H 32
#define PUPPET_HP 500
struct puppet_t {
entity_flag_t flag;
unsigned char angle;
PlayfieldMotion pos;
unsigned int phase_frame;
union {
subpixel_t motion;
unsigned int gather;
} radius;
int patnum;
int hp;
int damage_this_frame;
int16_t padding;
};
#define puppets (reinterpret_cast<puppet_t *>(custom_entities))
void pascal near puppets_update();
void pascal near puppets_render();