Skip to content

Commit

Permalink
code cleanup, pass 1
Browse files Browse the repository at this point in the history
  • Loading branch information
DevEd2 committed Sep 29, 2021
1 parent 427a8cd commit 2c53751
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 144 deletions.
1 change: 0 additions & 1 deletion Engine/GBPrinter.asm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ GBPrinter_TestPrint:
call GBPrinter_Detect
ret nz
; TODO
ld b,b
ret

; INPUT: A = data
Expand Down
6 changes: 3 additions & 3 deletions Engine/GameModes/Level.asm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ GM_Level:
pop hl
call LoadMap
ld a,$80
ld a,high(_VRAM)
ld [Engine_ParallaxDest],a
; initialize camera
Expand Down Expand Up @@ -240,7 +240,7 @@ LevelLoop::
ld a,$01
.dohoriz
call Parallax_ShiftHorizontal
farcall Parallax_ShiftHorizontal

.skipX
pop de
Expand All @@ -251,7 +251,7 @@ LevelLoop::
cpl
inc a
ld c,1
call Parallax_ShiftVertical
farcall Parallax_ShiftVertical
.skipY

.nocamera
Expand Down
2 changes: 1 addition & 1 deletion Engine/Metatile.asm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COLLISION_SOLID equ 1
COLLISION_TOPSOLID equ 2
COLLISION_WATER equ 3
COLLISION_COIN equ 4
COLLISION_GOAL equ 5
COLLISION_UNUSED5 equ 5
COLLISION_KILL equ 6
COLLISION_UNUSED7 equ 7

Expand Down
2 changes: 1 addition & 1 deletion Engine/Parallax.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Engine_ParallaxTemp2: db
Engine_ParallaxTemp3: db
Engine_ParallaxTemp4: db

section "Parallax routines",rom0
section "Parallax routines",romx
; INPUT: a = amount to shift by
Parallax_ShiftHorizontal::
push de
Expand Down
Loading

0 comments on commit 2c53751

Please sign in to comment.