Path: blob/master/SonicMania/Objects/GHZ/Motobug.h
338 views
#ifndef OBJ_MOTOBUG_H1#define OBJ_MOTOBUG_H23#include "Game.h"45// Object Class6struct ObjectMotobug {7RSDK_OBJECT8Hitbox hitboxBadnik;9uint16 aniFrames;10};1112// Entity Class13struct EntityMotobug {14RSDK_ENTITY15StateMachine(state);16int32 turnTimer;17int32 timer;18Vector2 startPos;19uint8 startDir;20bool32 wasTurning;21Animator animator;22};2324// Object Struct25extern ObjectMotobug *Motobug;2627// Standard Entity Events28void Motobug_Update(void);29void Motobug_LateUpdate(void);30void Motobug_StaticUpdate(void);31void Motobug_Draw(void);32void Motobug_Create(void *data);33void Motobug_StageLoad(void);34#if GAME_INCLUDE_EDITOR35void Motobug_EditorDraw(void);36void Motobug_EditorLoad(void);37#endif38void Motobug_Serialize(void);3940// Extra Entity Functions41void Motobug_DebugDraw(void);42void Motobug_DebugSpawn(void);4344void Motobug_CheckOffScreen(void);45void Motobug_CheckPlayerCollisions(void);4647// States48void Motobug_State_Init(void);49void Motobug_State_Move(void);50void Motobug_State_Idle(void);51void Motobug_State_Fall(void);52void Motobug_State_Turn(void);53void Motobug_State_Smoke(void);5455#endif //! OBJ_MOTOBUG_H565758