-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddee96e
commit 8ffd5e2
Showing
14 changed files
with
232 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
*.nes | ||
.patch-prev.ips | ||
*.ips | ||
*.dbg | ||
inc-base.asm | ||
*.map | ||
*.cdl | ||
*.nl | ||
*.nl | ||
*.zip | ||
cv3-controls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
## Castlevania 3 Improved Controls Hack | ||
|
||
### Contributing to this repository | ||
### Building | ||
|
||
Run the `setup.sh` script before starting in order to enable githooks. | ||
**Prerequisite**: you need asm6f [with rom patching directives](https://github.com/freem/asm6f/pull/30). | ||
|
||
You must supply your own ROM for Akumajou Densetsu (J). Paste the ROM | ||
Please add `base-us.nes` and/or `base-jp.nes` to the repo, then run `./build.sh`. | ||
|
||
CRC32 for ROM: 2E93CE72 | ||
SHA-1: A0F3B31D4E3B0D2CA2E8A34F91F14AD99A5AD11F | ||
Produces `out-us.nes`, `out-jp.nes` etc., as well as `out-us.ips` and `out-jp.ips`, and packages the result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
FROM detour_to_custom_knockback | ||
; replacement: | ||
; lda #$08 | ||
; ldy $04F2 | ||
NOP | ||
NOP | ||
JSR custom_knockback | ||
|
||
; in Trevor state jump table ($9376) | ||
FROM trevor_jump_table | ||
SKIP $8 | ||
; state 8 (jumping) | ||
; jump replacement | ||
DW custom_jump_then_standard_jump | ||
|
||
FROM attack | ||
jsr jumping_attack | ||
|
||
FROM jump_attack_step | ||
jsr jumping_attack | ||
|
||
FROM set_fall_state | ||
; go to jump state (instead of falling state) | ||
lda #$08 | ||
|
||
FROM fall_adjust | ||
; x=0 before this | ||
lda #VSP_CONTROL_ZERO_VSPEED | ||
STA vsp_control,X | ||
STX simon_fall_objphase | ||
lda #$16 | ||
sta imgsin | ||
zero_hspfra: | ||
lda #$00 | ||
sta hspfra | ||
__standard_rts: | ||
rts | ||
rts_if_cutscene: | ||
lda cutscene_timer | ||
beq __standard_rts | ||
lda cutscene_input | ||
beq __standard_rts | ||
; double-rts -- rts caller | ||
pla | ||
pla | ||
rts | ||
LIMIT standard_jump | ||
|
||
FROM standard_crouch | ||
jsr crouch_direction | ||
|
||
FROM standard_stair_idle | ||
; replaces: | ||
; LDA joypad_down | ||
; AND #$40 ; down ? | ||
JSR stair_jumping | ||
NOP | ||
FROM standard_stair_walk | ||
; replaces: | ||
; JSR stair_walk_resume | ||
JSR stair_jumping | ||
|
||
FROM sypha_jumptable | ||
|
||
SKIP $8 | ||
; jump | ||
DW custom_jump_then_standard_jump | ||
|
||
FROM alucard_jumptable | ||
SKIP $8 | ||
DW custom_jump_then_standard_jump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Oops, something went wrong.