Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

Commit 2c53751

Browse files
committed
code cleanup, pass 1
1 parent 427a8cd commit 2c53751

5 files changed

Lines changed: 132 additions & 144 deletions

File tree

Engine/GBPrinter.asm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ GBPrinter_TestPrint:
3939
call GBPrinter_Detect
4040
ret nz
4141
; TODO
42-
ld b,b
4342
ret
4443

4544
; INPUT: A = data

Engine/GameModes/Level.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ GM_Level:
6262
pop hl
6363
call LoadMap
6464
65-
ld a,$80
65+
ld a,high(_VRAM)
6666
ld [Engine_ParallaxDest],a
6767
6868
; initialize camera
@@ -240,7 +240,7 @@ LevelLoop::
240240
ld a,$01
241241
242242
.dohoriz
243-
call Parallax_ShiftHorizontal
243+
farcall Parallax_ShiftHorizontal
244244

245245
.skipX
246246
pop de
@@ -251,7 +251,7 @@ LevelLoop::
251251
cpl
252252
inc a
253253
ld c,1
254-
call Parallax_ShiftVertical
254+
farcall Parallax_ShiftVertical
255255
.skipY
256256

257257
.nocamera

Engine/Metatile.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COLLISION_SOLID equ 1
1010
COLLISION_TOPSOLID equ 2
1111
COLLISION_WATER equ 3
1212
COLLISION_COIN equ 4
13-
COLLISION_GOAL equ 5
13+
COLLISION_UNUSED5 equ 5
1414
COLLISION_KILL equ 6
1515
COLLISION_UNUSED7 equ 7
1616

Engine/Parallax.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Engine_ParallaxTemp2: db
66
Engine_ParallaxTemp3: db
77
Engine_ParallaxTemp4: db
88

9-
section "Parallax routines",rom0
9+
section "Parallax routines",romx
1010
; INPUT: a = amount to shift by
1111
Parallax_ShiftHorizontal::
1212
push de

0 commit comments

Comments
 (0)