Skip to content

Commit

Permalink
Refactor DINO to REX for parity
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoeSmo committed Nov 23, 2023
1 parent ba4ca25 commit 4bb660f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion PRG/prg000.asm
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Object_AttrFlags:
.byte OAT_BOUNDBOX00 ; Object $12
.byte OAT_BOUNDBOX00 ; Object $13
.byte OAT_BOUNDBOX00 ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte OAT_BOUNDBOX00 ; Object $15
.byte OAT_BOUNDBOX00 ; Object $16
.else
Expand Down
26 changes: 13 additions & 13 deletions PRG/prg001.asm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ObjectGroup00_InitJumpTable:
.word ObjInit_DoNothing ; Object $12
.word ObjInit_DoNothing ; Object $13
.word ObjInit_DoNothing ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.word ObjInit_DoNothing ; Object $15
.word ObjInit_DoNothing ; Object $16
.else
Expand Down Expand Up @@ -93,7 +93,7 @@ ObjectGroup00_NormalJumpTable:
.word ObjNorm_DoNothing ; Object $12
.word ObjNorm_DoNothing ; Object $13
.word ObjNorm_DoNothing ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.word ObjNorm_DoNothing ; Object $15
.word ObjNorm_DoNothing ; Object $16
.else
Expand Down Expand Up @@ -141,7 +141,7 @@ ObjectGroup00_CollideJumpTable:
.word ObjHit_DoNothing ; Object $12
.word ObjHit_DoNothing ; Object $13
.word ObjHit_DoNothing ; Object $14
.if INCLUDE_DINO == 00
.if INCLUDE_REX == 00
.word ObjHit_DoNothing ; Object $15
.word ObjHit_DoNothing ; Object $16
.else
Expand Down Expand Up @@ -188,7 +188,7 @@ ObjectGroup00_Attributes:
.byte OA1_PAL0 | OA1_HEIGHT16 | OA1_WIDTH8 ; Object $12
.byte OA1_PAL0 | OA1_HEIGHT16 | OA1_WIDTH8 ; Object $13
.byte OA1_PAL0 | OA1_HEIGHT16 | OA1_WIDTH8 ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte OA1_PAL0 | OA1_HEIGHT16 | OA1_WIDTH8 ; Object $15
.byte OA1_PAL1 | OA1_HEIGHT16 | OA1_WIDTH24 ; Object $16
.else
Expand Down Expand Up @@ -242,7 +242,7 @@ ObjectGroup00_Attributes2:
.byte OA2_TDOGRP0 ; Object $12
.byte OA2_TDOGRP0 ; Object $13
.byte OA2_TDOGRP0 ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte OA2_TDOGRP0 ; Object $15
.byte OA2_TDOGRP5 ; Object $16
.else
Expand Down Expand Up @@ -296,7 +296,7 @@ ObjectGroup00_Attributes3:
.byte OA3_HALT_HOTFOOTSPECIAL ; Object $12
.byte OA3_HALT_HOTFOOTSPECIAL ; Object $13
.byte OA3_HALT_HOTFOOTSPECIAL ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte OA3_HALT_HOTFOOTSPECIAL ; Object $15
.byte OA3_HALT_DONOTHING4 ; Object $16
.else
Expand Down Expand Up @@ -343,7 +343,7 @@ ObjectGroup00_PatTableSel:
.byte OPTS_NOCHANGE ; Object $12
.byte OPTS_NOCHANGE ; Object $13
.byte OPTS_NOCHANGE ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte OPTS_NOCHANGE ; Object $15
.byte OPTS_SETPT5 | $48 ; Object $16
.else
Expand Down Expand Up @@ -390,7 +390,7 @@ ObjectGroup00_KillAction:
.byte KILLACT_STANDARD ; Object $12
.byte KILLACT_STANDARD ; Object $13
.byte KILLACT_STANDARD ; Object $14
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte KILLACT_STANDARD ; Object $15
.byte KILLACT_STANDARD ; Object $16
.else
Expand Down Expand Up @@ -443,7 +443,7 @@ ObjectGroup00_PatternStarts:
.base ObjectGroup_PatternSets ; <-- help enforce this table *here*
ObjectGroup00_PatternSets:

.if INCLUDE_DINO != 0
.if INCLUDE_REX != 0
; Squash routine
JMP ObjSquashed_Rex1
.endif
Expand All @@ -459,7 +459,7 @@ ObjP11:
ObjP12:
ObjP13:
ObjP14:
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
ObjP15:
ObjP16:
.endif
Expand Down Expand Up @@ -488,7 +488,7 @@ ObjP22: .byte $53, $53
ObjP23: .byte $55, $55
ObjP08: .byte $FB, $FB, $FB, $FB, $BB, $B9, $B9, $BB, $BF, $BD

.if INCLUDE_DINO != 0
.if INCLUDE_REX != 0
ObjP15: .byte $E9, $EB, $ED, $EF, $E9, $EB, $F1, $F3, $E9, $EB, $ED, $EF
ObjP16: .byte $F5, $F7, $F9, $FB, $F5, $F7, $FD, $FF
.endif
Expand Down Expand Up @@ -3916,7 +3916,7 @@ KoopalingPats_Ludwig:
.byte $81, $93, $85, $95, $B7, $8B ; Wand swing

Koopaling_WandFrame:
.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
.byte $49, $49, $4B, $4D
.else
.byte $4C, $4C, $4E, $50
Expand Down Expand Up @@ -6455,7 +6455,7 @@ PRG001_BF9B:
LDX SlotIndexBackup ; X = object slot index
RTS ; Return

.if INCLUDE_DINO != 0
.if INCLUDE_REX != 0
ObjInit_Rex1:
CrossJumpToA000 #30, ObjInit_Rex
RTS
Expand Down
2 changes: 1 addition & 1 deletion PRG/prg030.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.if INCLUDE_DINO == 1
.if INCLUDE_REX == 1
.include "PRG/enemies/rex.asm"
.endif

Expand Down
6 changes: 3 additions & 3 deletions config.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; Enemy Definitions
INCLUDE_DINO = 1
INCLUDE_REX = 1
INCLUDE_BUMPTY = 1

; Levels
Expand All @@ -8,8 +8,8 @@ INCLUDE_DEMO_LEVELS = 0

;----------------------
; Properties
IS_EXPANDED_ROM = 0 || INCLUDE_DINO || INCLUDE_BUMPTY
IS_EXPANDED_ROM = 0 || INCLUDE_REX || INCLUDE_BUMPTY
NUMBER_OF_PRG_BANKS = 16 + (16 * IS_EXPANDED_ROM)
NUMBER_OF_CHR_BANKS = 16 + (16 * IS_EXPANDED_ROM)
UNUSED_EXTENDED_CHR_BANKS = 128 - (INCLUDE_DINO != 0) - (INCLUDE_BUMPTY != 0)
UNUSED_EXTENDED_CHR_BANKS = 128 - (INCLUDE_REX != 0) - (INCLUDE_BUMPTY != 0)
KEEP_USED_LEVELS = !(INCLUDE_TEST_LEVELS || INCLUDE_DEMO_LEVELS)
2 changes: 1 addition & 1 deletion smb3.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5041,7 +5041,7 @@ TERMINATOR = $00 ; Used in the credits as a terminator for end of list

.if IS_EXPANDED_ROM != 0

.if INCLUDE_DINO == 0
.if INCLUDE_REX == 0
DINO_CHR_BANK = 127
.else
DINO_CHR_BANK = 128
Expand Down

0 comments on commit 4bb660f

Please sign in to comment.