Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/UFO/UFO_Water.c
338 views
1
// ---------------------------------------------------------------------
2
// RSDK Project: Sonic Mania
3
// Object Description: UFO_Water Object
4
// Object Author: Christian Whitehead/Simon Thomley/Hunter Bridges
5
// Decompiled by: Rubberduckycooly & RMGRich
6
// ---------------------------------------------------------------------
7
8
#include "Game.h"
9
10
ObjectUFO_Water *UFO_Water;
11
12
void UFO_Water_Update(void) {}
13
14
void UFO_Water_LateUpdate(void) {}
15
16
void UFO_Water_StaticUpdate(void)
17
{
18
if (!(UFO_Setup->timer & 3)) {
19
UFO_Water->timer = (UFO_Water->timer + 128) & 0x7FF;
20
21
RSDK.DrawAniTiles(UFO_Water->aniFrames, 712, UFO_Water->timer & 0x1FF, (UFO_Water->timer >> 2) & 0xFF80, 128, 128);
22
}
23
}
24
25
void UFO_Water_Draw(void) {}
26
27
void UFO_Water_Create(void *data) {}
28
29
void UFO_Water_StageLoad(void) { UFO_Water->aniFrames = RSDK.LoadSpriteSheet("SpecialUFO/Water.gif", SCOPE_STAGE); }
30
31
#if GAME_INCLUDE_EDITOR
32
void UFO_Water_EditorDraw(void) {}
33
34
void UFO_Water_EditorLoad(void) {}
35
#endif
36
37
void UFO_Water_Serialize(void) {}
38
39