2022-04-24 13:58:11 +00:00
|
|
|
#include "platform.h"
|
|
|
|
#include "pc98.h"
|
|
|
|
#include "th01/math/subpixel.hpp"
|
|
|
|
#include "th04/math/motion.hpp"
|
|
|
|
#include "th04/main/frames.h"
|
|
|
|
extern "C" {
|
|
|
|
#include "th04/main/null.hpp"
|
|
|
|
}
|
2022-06-19 20:08:10 +00:00
|
|
|
#include "th04/main/playfld.hpp"
|
2022-04-24 13:58:11 +00:00
|
|
|
#include "th04/main/midboss/midboss.hpp"
|
|
|
|
|
|
|
|
void midboss_reset(void)
|
|
|
|
{
|
|
|
|
midboss_invalidate = nullfunc_near;
|
|
|
|
midboss_render = nullfunc_near;
|
|
|
|
midboss_update = nullfunc_far;
|
|
|
|
#if (GAME == 4)
|
|
|
|
midboss_active = false;
|
|
|
|
#endif
|
|
|
|
midboss.hp = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void midboss_activate_if_stage_frame_is_midboss_start_frame(void)
|
|
|
|
{
|
|
|
|
if(midboss.frames_until == stage_frame) {
|
|
|
|
midboss_invalidate = midboss_invalidate_func;
|
|
|
|
midboss_render = midboss_render_func;
|
|
|
|
midboss_update = midboss_update_func;
|
|
|
|
midboss.phase = 0;
|
|
|
|
midboss.phase_frame = 0;
|
|
|
|
midboss_active = true;
|
|
|
|
}
|
|
|
|
}
|