Path: blob/master/SonicMania/Objects/PGZ/Dragonfly.h
338 views
#ifndef OBJ_DRAGONFLY_H1#define OBJ_DRAGONFLY_H23#include "Game.h"45#define DRAGONFLY_SPINE_COUNT (6)67// Object Class8struct ObjectDragonfly {9RSDK_OBJECT10Hitbox hitboxBadnik;11Hitbox hitboxSpine;12uint16 aniFrames;13};1415// Entity Class16struct EntityDragonfly {17RSDK_ENTITY18StateMachine(state);19uint8 dir;20uint8 dist;21uint8 speed;22Vector2 positions[DRAGONFLY_SPINE_COUNT];23uint8 directions[DRAGONFLY_SPINE_COUNT];24Vector2 startPos;25Animator animator;26Animator wingAnimator;27Animator bodyAnimator;28};2930// Object Struct31extern ObjectDragonfly *Dragonfly;3233// Standard Entity Events34void Dragonfly_Update(void);35void Dragonfly_LateUpdate(void);36void Dragonfly_StaticUpdate(void);37void Dragonfly_Draw(void);38void Dragonfly_Create(void *data);39void Dragonfly_StageLoad(void);40#if GAME_INCLUDE_EDITOR41void Dragonfly_EditorDraw(void);42void Dragonfly_EditorLoad(void);43#endif44void Dragonfly_Serialize(void);4546// Extra Entity Functions47void Dragonfly_DebugDraw(void);48void Dragonfly_DebugSpawn(void);4950void Dragonfly_CheckPlayerCollisions(void);5152void Dragonfly_State_Init(void);53void Dragonfly_State_Move(void);54void Dragonfly_State_Debris(void);5556#endif //! OBJ_DRAGONFLY_H575859