Skip to content

Commit

Permalink
Added: New function, Start+A = Disable "dark room"
Browse files Browse the repository at this point in the history
  • Loading branch information
FURiOUS committed Aug 28, 2018
1 parent 531c8bf commit 2a0cb1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This romhack has a few commands you can do while playing:
| Command | Description |
| :---: | --- |
| `Start+X` | Changes to the next game RNG (Random Number Generator) |
| `Start+A` | Disable "Dark Room" |
| `Start+Y` | Cicle player lives¹ |
| `Start+B` | Cicle player hearts¹ |
| `Start+Select` | Resets the current room² |
Expand All @@ -31,4 +32,5 @@ You may wanna also check the [wiki page](https://github.com/furious/gooftroop/wi
Credits
-------
**FURiOUS**: Made this thing :P -- [Twitter](https://twitter.com/furious_) | [Twitch](http://twitch.tv/furious)

**Vitor Vilela**: Helped a lot with some Assembly stuff -- [Twitter](https://twitter.com/hackervilela)
16 changes: 10 additions & 6 deletions main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,25 @@ routine:
BNE .fix_audio
BIT #$40 ;X
BNE .change_rng
;BIT #$80 ;A
;BNE .cicle_hearts
BIT #$80 ;A
BNE .disable_darkroom
BRA .start_byetudlr

; ACTIONS AXLR
.fix_audio ; fix audio (superufo)
.fix_audio ; (superufo)
LDA $2142
STA $7FFF09
JMP return

.change_rng ; random rng
.change_rng
JSL $808859
JSR $9553
LDA !rng
STA !rng
;LDA !rng
;STA !last_rng
JMP return

.disable_darkroom
JSR $A87F
JMP return


Expand Down

0 comments on commit 2a0cb1b

Please sign in to comment.