diff --git a/DMGTRIS.GBC b/DMGTRIS.GBC index 3564e3e..eb673bc 100644 Binary files a/DMGTRIS.GBC and b/DMGTRIS.GBC differ diff --git a/Makefile b/Makefile index 8aeba6c..5f17674 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ INCDIRS = src/ src/include/ WARNINGS = all extra ASFLAGS = -p 0xFF $(addprefix -i,$(INCDIRS)) $(addprefix -W,$(WARNINGS)) LDFLAGS = -p 0xFF -FIXFLAGS = -p 0xFF -l 0x33 -m 0x03 -r 0x02 -v -i $(GAMEID) -k $(LICENSEE) -t $(TITLE) -n $(VERSION) +FIXFLAGS = -p 0xFF -l 0x33 -r 0x02 -v -i $(GAMEID) -k $(LICENSEE) -t $(TITLE) -n $(VERSION) -m $(MAPPER) # The list of "root" ASM files that RGBASM will be invoked on SRCS = $(wildcard src/*.asm) diff --git a/project.mk b/project.mk index d1afdee..a106ecc 100644 --- a/project.mk +++ b/project.mk @@ -14,16 +14,17 @@ LICENSEE := NR ROMNAME := DMGTRIS ROMEXT := GBC +# Mapper +MAPPER := 0x03 + # Extra assembler flags # Do not insert nop after halt ASFLAGS += -h -# Do optimize ld to ldh -ASFLAGS += -l # Extra linker flags # Tiny Rom LDFLAGS += -t # Extra fix flags -# SEt as gbc compatible +# Set as gbc compatible FIXFLAGS += -c diff --git a/src/gbc.asm b/src/gbc.asm index eaa1179..5c2614e 100644 --- a/src/gbc.asm +++ b/src/gbc.asm @@ -754,7 +754,7 @@ GBCGameplayProcess:: ld a, [wSpeedCurveState] cp a, SCURVE_SHIR ld a, $00 ;Red - jr z, .colorfield ;Always red + jr z, .higoverride ;Always red ld a, [wSpeedCurveState] cp a, SCURVE_CHIL ld a, $01 ;Green @@ -896,13 +896,13 @@ GBCGameplayProcess:: jr nz, .black ld hl, hFrameCtr - bit 1, [hl] + bit 4, [hl] jr z, .lighter .darker ld a, OCPSF_AUTOINC | (7*8)+(3*2) ldh [rOCPS], a - ld bc, R2 | G2 + ld bc, R1 | G1 wait_vram ld a, c ldh [rOCPD], a @@ -913,7 +913,7 @@ GBCGameplayProcess:: .lighter ld a, OCPSF_AUTOINC | (7*8)+(3*2) ldh [rOCPS], a - ld bc, R3 | G3 + ld bc, R2 | G2 wait_vram ld a, c ldh [rOCPD], a diff --git a/src/main.asm b/src/main.asm index 0599344..f83d15f 100644 --- a/src/main.asm +++ b/src/main.asm @@ -123,7 +123,7 @@ Main:: cp a, "G" jr nz, .nosavedata ld a, [rMagic+3] - cp a, "1" + cp a, "2" jr nz, .nosavedata .savedata @@ -152,7 +152,7 @@ Main:: ld [rMagic+1], a ld a, "G" ld [rMagic+2], a - ld a, "1" + ld a, "2" ld [rMagic+3], a ld a, BUTTON_MODE_NORM diff --git a/src/res/sources/tiles.gbr b/src/res/sources/tiles.gbr index 11afa88..d40779d 100644 Binary files a/src/res/sources/tiles.gbr and b/src/res/sources/tiles.gbr differ diff --git a/src/res/tiles.inc b/src/res/tiles.inc index e8b011b..8bb3c14 100644 --- a/src/res/tiles.inc +++ b/src/res/tiles.inc @@ -528,10 +528,10 @@ Tiles:: DB $82,$82,$82,$82,$EC,$EC,$00,$00 DB $44,$44,$CA,$CA,$4A,$4A,$4A,$4A DB $4A,$4A,$4A,$4A,$E4,$E4,$00,$00 - DB $CA,$CA,$2A,$2A,$2A,$2A,$4E,$4E - DB $82,$82,$82,$82,$E2,$E2,$00,$00 - DB $FF,$FF,$81,$81,$24,$24,$3C,$3C - DB $24,$24,$81,$81,$FF,$FF,$00,$00 + DB $CE,$CE,$28,$28,$28,$28,$4C,$4C + DB $82,$82,$82,$82,$EC,$EC,$00,$00 + DB $18,$18,$3C,$3C,$30,$30,$3C,$3C + DB $3C,$3C,$1C,$1C,$14,$14,$00,$00 TilesEnd::