blob: 9fb687149f3cfe6231b9cdc948aba719cd36efcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* @file waterfallBottomManager.c
* @ingroup Managers
*
* @brief Sets a tile at the bottom of the climb next to the waterfall in Temple of Droplets.
*/
#include "manager/waterfallBottomManager.h"
#include "asm.h"
#include "entity.h"
#include "player.h"
#include "tiles.h"
#include "room.h"
#include "map.h"
void WaterfallBottomManager_Main(WaterfallBottomManager* this) {
SetTile(SPECIAL_TILE_20, TILE_POS(3, 23), LAYER_BOTTOM);
if ((gRoomControls.origin_y + 200 < gPlayerEntity.base.y.HALF.HI) &&
((u32)(gPlayerEntity.base.x.HALF.HI - gRoomControls.origin_x) - 0x30 < 0x11)) {
gPlayerEntity.base.collisionLayer = 3;
UpdateSpriteForCollisionLayer(&gPlayerEntity.base);
}
DeleteManager(super);
}
|