Skip to content

Commit

Permalink
Rename CityPit to CitySinkhole
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsteele committed Feb 28, 2024
1 parent aee5645 commit e56709e
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/newgame.asm
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ _SetFlags:
d_byte Breaker4, "BREAKER4"
d_byte Collapse, " MINE "
d_byte Breaker5, "BREAKER5"
d_byte Sinkhole, " CITY "
d_byte Sinkhole, "SINKHOLE"
d_byte Breaker6, "BREAKER6"
d_byte Shadow, " SHADOW "
d_byte Depths, " DEPTHS "
Expand All @@ -139,7 +139,7 @@ _SetFlags:
d_byte Breaker4, eRoom::BossLava
d_byte Collapse, eRoom::MineCollapse
d_byte Breaker5, eRoom::BossMine
d_byte Sinkhole, eRoom::CityPit
d_byte Sinkhole, eRoom::CitySinkhole
d_byte Breaker6, eRoom::BossCity
d_byte Shadow, eRoom::ShadowTeleport
d_byte Depths, eRoom::ShadowDepths
Expand Down
2 changes: 1 addition & 1 deletion src/program.inc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
CityCenterSemaphore3
CityCenterSemaphore4
CityOutskirtsLauncher
CityPitLift
CitySinkholeLift
CoreBossBlaster
CoreBossCannon
CoreBossLaser
Expand Down
6 changes: 3 additions & 3 deletions src/room.asm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
.IMPORT DataC_City_East_sRoom
.IMPORT DataC_City_Flower_sRoom
.IMPORT DataC_City_Outskirts_sRoom
.IMPORT DataC_City_Pit_sRoom
.IMPORT DataC_City_Sinkhole_sRoom
.IMPORT DataC_City_West_sRoom
.IMPORT DataC_Core_Boss_sRoom
.IMPORT DataC_Core_East_sRoom
Expand Down Expand Up @@ -309,7 +309,7 @@ _LoadNewRoom:
d_entry table, CityEast, DataC_City_East_sRoom
d_entry table, CityFlower, DataC_City_Flower_sRoom
d_entry table, CityOutskirts, DataC_City_Outskirts_sRoom
d_entry table, CityPit, DataC_City_Pit_sRoom
d_entry table, CitySinkhole, DataC_City_Sinkhole_sRoom
d_entry table, CityWest, DataC_City_West_sRoom
d_entry table, CoreBoss, DataC_Core_Boss_sRoom
d_entry table, CoreEast, DataC_Core_East_sRoom
Expand Down Expand Up @@ -495,7 +495,7 @@ _PrisonMusic:
d_byte CityEast, eMusic::Silence
d_byte CityFlower, eMusic::Silence
d_byte CityOutskirts, eMusic::Silence
d_byte CityPit, eMusic::Silence
d_byte CitySinkhole, eMusic::Silence
d_byte CityWest, eMusic::Silence
d_byte CoreBoss, eMusic::Silence
d_byte CoreEast, eMusic::Silence
Expand Down
2 changes: 1 addition & 1 deletion src/room.inc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ kMaxPassages = 8
CityEast
CityFlower
CityOutskirts
CityPit
CitySinkhole
CityWest
CoreBoss
CoreEast
Expand Down
2 changes: 1 addition & 1 deletion src/rooms/boss_city.asm
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ _Devices_sDevice_arr:
d_byte Type_eDevice, eDevice::Door1Unlocked
d_byte BlockRow_u8, 12
d_byte BlockCol_u8, 4
d_byte Target_byte, eRoom::CityPit
d_byte Target_byte, eRoom::CitySinkhole
D_END
.assert * - :- = kBossUpgradeDeviceIndex * .sizeof(sDevice), error
D_STRUCT sDevice
Expand Down
2 changes: 1 addition & 1 deletion src/rooms/city_center.asm
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ _Passages_sPassage_arr:
D_END
D_STRUCT sPassage
d_byte Exit_bPassage, ePassage::Bottom | 2
d_byte Destination_eRoom, eRoom::CityPit
d_byte Destination_eRoom, eRoom::CitySinkhole
d_byte SpawnBlock_u8, 42
d_byte SpawnAdjust_byte, $c1
D_END
Expand Down
30 changes: 15 additions & 15 deletions src/rooms/city_pit.asm → src/rooms/city_sinkhole.asm
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@

;;;=========================================================================;;;

;;; The machine index for the CityPitLift machine in this room.
;;; The machine index for the CitySinkholeLift machine in this room.
kLiftMachineIndex = 0

;;; The platform index for the CityPitLift machine.
;;; The platform index for the CitySinkholeLift machine.
kLiftPlatformIndex = 0

;;; The initial and maximum permitted vertical goal values for the lift.
Expand All @@ -58,8 +58,8 @@ kLiftInitPlatformTop = kLiftMaxPlatformTop - kLiftInitGoalY * kBlockHeightPx

.SEGMENT "PRGC_City"

.EXPORT DataC_City_Pit_sRoom
.PROC DataC_City_Pit_sRoom
.EXPORT DataC_City_Sinkhole_sRoom
.PROC DataC_City_Sinkhole_sRoom
D_STRUCT sRoom
d_byte MinScrollX_u8, $00
d_word MaxScrollX_u16, $00
Expand All @@ -85,27 +85,27 @@ _Ext_sRoomExt:
d_addr Draw_func_ptr, Func_Noop
D_END
_TerrainData:
: .incbin "out/rooms/city_pit.room"
: .incbin "out/rooms/city_sinkhole.room"
.assert * - :- = 16 * 15, error
_Machines_sMachine_arr:
: .assert * - :- = kLiftMachineIndex * .sizeof(sMachine), error
D_STRUCT sMachine
d_byte Code_eProgram, eProgram::CityPitLift
d_byte Code_eProgram, eProgram::CitySinkholeLift
d_byte Breaker_eFlag, 0
d_byte Flags_bMachine, bMachine::MoveV
d_byte Status_eDiagram, eDiagram::Lift
d_word ScrollGoalX_u16, $00
d_byte ScrollGoalY_u8, $00
d_byte RegNames_u8_arr4, 0, 0, 0, "Y"
d_byte MainPlatform_u8, kLiftPlatformIndex
d_addr Init_func_ptr, FuncA_Room_CityPitLift_InitReset
d_addr ReadReg_func_ptr, FuncC_City_PitLift_ReadReg
d_addr Init_func_ptr, FuncA_Room_CitySinkholeLift_InitReset
d_addr ReadReg_func_ptr, FuncC_City_SinkholeLift_ReadReg
d_addr WriteReg_func_ptr, Func_Noop
d_addr TryMove_func_ptr, FuncA_Machine_CityPitLift_TryMove
d_addr TryMove_func_ptr, FuncA_Machine_CitySinkholeLift_TryMove
d_addr TryAct_func_ptr, FuncA_Machine_Error
d_addr Tick_func_ptr, FuncA_Machine_CityPitLift_Tick
d_addr Tick_func_ptr, FuncA_Machine_CitySinkholeLift_Tick
d_addr Draw_func_ptr, FuncA_Objects_DrawLiftMachine
d_addr Reset_func_ptr, FuncA_Room_CityPitLift_InitReset
d_addr Reset_func_ptr, FuncA_Room_CitySinkholeLift_InitReset
D_END
.assert * - :- <= kMaxMachines * .sizeof(sMachine), error
_Platforms_sPlatform_arr:
Expand Down Expand Up @@ -148,7 +148,7 @@ _Passages_sPassage_arr:
.assert * - :- <= kMaxPassages * .sizeof(sPassage), error
.ENDPROC

.PROC FuncC_City_PitLift_ReadReg
.PROC FuncC_City_SinkholeLift_ReadReg
lda #kLiftMaxPlatformTop + kTileHeightPx
sub Ram_PlatformTop_i16_0_arr + kLiftPlatformIndex
div #kBlockHeightPx
Expand All @@ -159,7 +159,7 @@ _Passages_sPassage_arr:

.SEGMENT "PRGA_Room"

.PROC FuncA_Room_CityPitLift_InitReset
.PROC FuncA_Room_CitySinkholeLift_InitReset
lda #kLiftInitGoalY
sta Ram_MachineGoalVert_u8_arr + kLiftMachineIndex
rts
Expand All @@ -169,12 +169,12 @@ _Passages_sPassage_arr:

.SEGMENT "PRGA_Machine"

.PROC FuncA_Machine_CityPitLift_TryMove
.PROC FuncA_Machine_CitySinkholeLift_TryMove
lda #kLiftMaxGoalY ; param: max goal vert
jmp FuncA_Machine_LiftTryMove
.ENDPROC

.PROC FuncA_Machine_CityPitLift_Tick
.PROC FuncA_Machine_CitySinkholeLift_Tick
ldax #kLiftMaxPlatformTop ; param: max platform top
jmp FuncA_Machine_LiftTick
.ENDPROC
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
])

ROOM_PARENTS = {
'BossCity': 'CityPit',
'BossCity': 'CitySinkhole',
'BossCrypt': 'CryptTomb',
'BossGarden': 'GardenTower',
'BossMine': 'MineCollapse',
Expand Down

0 comments on commit e56709e

Please sign in to comment.