2023-01-23 07:22:35 +00:00
|
|
|
g_SpriteBanks = 0x80180040;
|
2022-11-05 20:53:40 +00:00
|
|
|
g_pStTilesetDebug = 0x80180290;
|
2022-01-24 00:19:58 +00:00
|
|
|
g_pStTileset = 0x801802A4;
|
2024-05-23 19:21:49 +00:00
|
|
|
g_pStObjLayoutHorizontal = 0x801802F4;
|
2023-07-09 20:29:10 +00:00
|
|
|
PfnEntityUpdates = 0x8018049C;
|
2022-10-29 00:33:04 +00:00
|
|
|
g_eBreakableInit = 0x801804F0;
|
De-duplicate EntityUnkId13 (#1270)
In the interest of reducing uses of `generic`, and especially the
`entityPtr` member of it, I found this function which had several
duplicates already, all of which used `generic`. Rather than cleaning it
up in every instance, I decided instead to de-duplicate it, and then
clean it up in the .h file.
I needed to make a new entity extension for this, and noticed that we
had `ET_Entity16`, but then I realized that this was being used for
`g_Entities[16]`, so I renamed that to be `ET_EntitySlot16`, leaving
`ET_EntityXX` available, for XX being the ID of an unknown entity.
2024-06-06 20:34:34 +00:00
|
|
|
g_InitDataEnt13 = 0x8018052C;
|
2024-05-24 18:41:07 +00:00
|
|
|
g_eInitGeneric2 = 0x80180544;
|
2024-05-22 20:24:42 +00:00
|
|
|
g_eDamageDisplayInit = 0x80180550;
|
2022-10-29 00:33:04 +00:00
|
|
|
g_eBreakableAnimations = 0x80180644;
|
|
|
|
g_eBreakableHitboxes = 0x80180664;
|
|
|
|
g_eBreakableExplosionTypes = 0x8018066C;
|
2023-02-12 01:00:23 +00:00
|
|
|
g_eBreakableanimSets = 0x80180674;
|
2024-01-20 21:16:03 +00:00
|
|
|
g_eBreakableDrawModes = 0x80180684;
|
2024-05-29 03:29:41 +00:00
|
|
|
g_bigRedFireballAnim = 0x80180E40;
|
2024-05-30 16:42:24 +00:00
|
|
|
g_goldCollectTexts = 0x80180D60;
|
|
|
|
c_GoldPrizes = 0x80180D88;
|
2024-05-28 17:31:01 +00:00
|
|
|
g_eUnk14SpawnRots = 0x80180FAC;
|
2024-05-28 01:24:59 +00:00
|
|
|
unk14_yVel = 0x80180FE4;
|
|
|
|
unk14_startFrame = 0x80180FFC;
|
|
|
|
unk14_lifetime = 0x80181000;
|
2024-06-06 20:07:25 +00:00
|
|
|
unk15_rot = 0x80180FBC;
|
|
|
|
unk15_yVel = 0x80180FCC;
|
2023-03-13 20:56:36 +00:00
|
|
|
g_Rooms = 0x80181130;
|
2024-05-24 18:41:07 +00:00
|
|
|
g_eRedDoorTiles = 0x80180594;
|
2024-05-29 00:42:15 +00:00
|
|
|
g_olroxDroolCollOffsets = 0x80181008;
|
2022-01-24 00:19:58 +00:00
|
|
|
g_pStrObjLayout0 = 0x801811D4;
|
|
|
|
g_pStrObjLayout1 = 0x801811E8;
|
|
|
|
g_pStrObjLayout2 = 0x80181206;
|
|
|
|
g_pStrObjLayout3 = 0x801812B0;
|
|
|
|
g_pStrObjLayout4 = 0x8018135A;
|
|
|
|
g_pStrObjLayout5 = 0x80181404;
|
|
|
|
g_pStrObjLayout6 = 0x801814AE;
|
|
|
|
g_pStrObjLayout7 = 0x80181558;
|
|
|
|
g_pStrObjLayout8 = 0x80181602;
|
|
|
|
g_pStrObjLayout9 = 0x801816AC;
|
|
|
|
g_pStrObjLayout10 = 0x80181756;
|
|
|
|
g_pStrObjLayout11 = 0x80181774;
|
|
|
|
g_pStrObjLayout12 = 0x80181788;
|
|
|
|
g_pStrObjLayout13 = 0x801817A6;
|
|
|
|
g_pStrObjLayout14 = 0x80181850;
|
|
|
|
g_pStrObjLayout15 = 0x801818FA;
|
|
|
|
g_pStrObjLayout16 = 0x801819A4;
|
|
|
|
g_pStrObjLayout17 = 0x80181A4E;
|
|
|
|
g_pStrObjLayout18 = 0x80181AF8;
|
|
|
|
g_pStrObjLayout19 = 0x80181BA2;
|
|
|
|
g_pStrObjLayout20 = 0x80181C4C;
|
2022-01-31 17:42:53 +00:00
|
|
|
g_pStrObjLayout21 = 0x80181CF6;
|
2022-10-29 00:13:38 +00:00
|
|
|
EntityBreakable = 0x8018E830;
|
2023-01-23 07:22:35 +00:00
|
|
|
Update = 0x8018E994;
|
2024-05-27 17:01:30 +00:00
|
|
|
HitDetection = 0x8018EDB8;
|
2024-05-22 20:24:42 +00:00
|
|
|
EntityDamageDisplay = 0x8018FEA0;
|
2023-01-23 07:22:35 +00:00
|
|
|
InitRoomEntities = 0x80190D8C;
|
2022-11-05 21:00:42 +00:00
|
|
|
EntityRedDoor = 0x80191120;
|
2022-02-06 16:35:17 +00:00
|
|
|
DestroyEntity = 0x80191D3C;
|
2022-03-03 23:38:38 +00:00
|
|
|
MoveEntity = 0x801920F0;
|
2022-02-12 16:39:07 +00:00
|
|
|
FallEntity = 0x80192120;
|
2022-02-06 16:35:17 +00:00
|
|
|
InitializeEntity = 0x80192CAC;
|
2022-11-05 20:53:40 +00:00
|
|
|
EntityDummy = 0x80192DA8;
|
2023-03-25 20:37:41 +00:00
|
|
|
EntityPrizeDrop = 0x801939E0;
|
2022-11-05 20:53:40 +00:00
|
|
|
EntityExplosion = 0x80194218;
|
2023-03-26 15:25:05 +00:00
|
|
|
EntityEquipItemDrop = 0x801943EC;
|
2023-01-05 19:35:01 +00:00
|
|
|
EntityRelicOrb = 0x801949C0;
|
|
|
|
EntityHeartDrop = 0x80195520;
|
De-duplicate EntityUnkId13 (#1270)
In the interest of reducing uses of `generic`, and especially the
`entityPtr` member of it, I found this function which had several
duplicates already, all of which used `generic`. Rather than cleaning it
up in every instance, I decided instead to de-duplicate it, and then
clean it up in the .h file.
I needed to make a new entity extension for this, and noticed that we
had `ET_Entity16`, but then I realized that this was being used for
`g_Entities[16]`, so I renamed that to be `ET_EntitySlot16`, leaving
`ET_EntityXX` available, for XX being the ID of an unknown entity.
2024-06-06 20:34:34 +00:00
|
|
|
EntityUnkId13 = 0x8019572C;
|
2022-11-05 21:09:21 +00:00
|
|
|
EntityIntenseExplosion = 0x801964E4;
|
2023-06-10 16:44:16 +00:00
|
|
|
EntitySoulStealOrb = 0x801982BC;
|
2022-11-05 21:04:00 +00:00
|
|
|
EntityEnemyBlood = 0x80198650;
|
2023-07-12 07:18:59 +00:00
|
|
|
EntityRoomForeground = 0x80198B00;
|
|
|
|
GetSideToPlayer = 0x801920AC;
|
2023-08-07 23:33:22 +00:00
|
|
|
UNK_Invincibility0 = 0x801806B4;
|
2023-08-28 22:53:45 +00:00
|
|
|
g_ItemIconSlots = 0x80199E54;
|
2023-08-31 21:55:23 +00:00
|
|
|
g_InitializeEntityData0 = 0x80180508;
|
|
|
|
g_InitializeData0 = 0x801804FC;
|
2023-11-23 20:04:41 +00:00
|
|
|
g_UnkPrimHelperRot = 0x8018D8C0;
|
|
|
|
UnkPrimHelper = 0x80198FA0;
|
2024-05-28 01:24:59 +00:00
|
|
|
EntityUnkId14 = 0x80195A54;
|
2024-01-02 16:08:30 +00:00
|
|
|
EntityUnkId15 = 0x80195B44;
|
2024-01-18 19:04:04 +00:00
|
|
|
UnkPolyFunc2 = 0x801996EC;
|
2024-01-19 03:07:13 +00:00
|
|
|
PrimDecreaseBrightness = 0x8019976C;
|
Rename Stage Layout Functions and Vars Uniformly (#1162)
This change renames functions and global stage variables uniformly
across the stages so that these functions can be pulled out and shared
across all of the stages. Based on some other tests there are 12 or so
functions that this will allow to be pulled out of each stage. Since
these implementations are shared, an additional 12 asm functions can be
eliminated in a subsequent pass.
**Vars**
* `g_pStObjLayoutHorizontal` - a horizontally sorted array of stage
entities
* `g_pStObjLayoutVertical` - a vertically sorted array of stage entities
* `g_LayoutObjHorizontal` - a pointer to a `LayoutEntity` in
`g_pStObjLayoutHorizontal`
* `g_LayoutObjVertical` - a pointer to a `LayoutEntity` in
`g_pStObjLayoutVertical`
* `g_LayoutObjPosHorizontal` - the direction last traversed in
`g_LayoutObjHorizontal`
* `g_LayoutObjPosVertical` - the direction last traversed in
`g_pStObjLayoutVertical `
**Functions**
* `FindFirstEntityToTheRight` - given an `x` position, update
`g_LayoutObjHorizontal` with the first entity to the right of `x`
* `FindFirstEntityToTheLeft` - given a `x` position, update
`g_LayoutObjHorizontal` with the first entity to the left of `x`
(backwards)
* `CreateEntitiesToTheRight` - given an `x` position, create all
entities to the right (mutates `g_LayoutObjHorizontal`)
* `CreateEntitiesToTheLeft` - given an `x` position, create all entities
to the left (mutates `g_LayoutObjHorizontal`)
* `FindFirstEntityAbove` - given an `y` position, update
`g_LayoutObjVertical ` with the first entity to the above of `y`
* `FindFirstEntityBelow` - given an `y` position, update
`g_LayoutObjVertical ` with the first entity to the below of `y`
* `CreateEntitiesAbove` - given an `y` position, create all entities
above (mutates `g_LayoutObjVertical`)
* `CreateEntitiesBelow` - given an `y` position, create all entities
beneath (mutates `g_LayoutObjVertical`)
* `UpdateRoomPosition` - look at the current game loop scroll delta and
create any entities given the room layout
I believe all of these implementations are shared across all stages
(including `InitRoomEntities`, and two more `CreateEntity` functions)
(in my initial tests I had a small difference in `DER`, but I believe
that had to do with an incorrect symbol table change).
Co-authored-by: Jonathan Hohle <jon@ttkb.co>
2024-05-22 22:34:41 +00:00
|
|
|
g_LayoutObjHorizontal = 0x801997D8;
|
|
|
|
g_LayoutObjPosHorizontal = 0x801997E0;
|
|
|
|
g_LayoutObjVertical = 0x801997DC;
|
|
|
|
g_LayoutObjPosVertical = 0x801997E4;
|
|
|
|
UpdateRoomPosition = 0x80190F04;
|
2024-05-23 19:21:49 +00:00
|
|
|
g_pStObjLayoutVertical = 0x801803C8;
|
2024-06-01 19:32:59 +00:00
|
|
|
g_ESoulStealOrbAngles = 0x80181068;
|
|
|
|
g_ESoulStealOrbAnim = 0x801810D8;
|
|
|
|
g_ESoulStealOrbSprt = 0x80181078;
|
2024-06-07 00:19:52 +00:00
|
|
|
g_ExplosionYVelocities = 0x80180E18;
|
|
|
|
g_ExplosionAnimations = 0x80180EC4;
|
2024-06-08 22:02:00 +00:00
|
|
|
UpdateStageEntities = 0x8018EC90;
|