aboutsummaryrefslogtreecommitdiff
path: root/src/background.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/background.s')
-rw-r--r--src/background.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/background.s b/src/background.s
new file mode 100644
index 0000000..5a9c5fe
--- /dev/null
+++ b/src/background.s
@@ -0,0 +1,28 @@
+.segment "CODE"
+
+.scope Background
+ ;; Screen coordinates on the Y axis for the ground.
+ GROUND_Y_COORD = $C8
+
+ ;; To make them easier to traverse when performing background collision
+ ;; checking, each platform is laid out in tile coordinates and spanning
+ ;; three bytes: tile row, tile column beginning, tile column end.
+ platforms:
+ ;; Top of the screen.
+ .byte $03, $00, $FF
+
+ ;; Left platform.
+ .byte $09, $18, $1D
+
+ ;; Center platform.
+ .byte $0C, $03, $08
+
+ ;; Right platform.
+ .byte $0F, $0F, $12
+
+ ;; Ground.
+ .byte $19, $00, $FF
+
+ ;; End of the list.
+ .byte $FF
+.endscope