aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-08 16:54:33 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-08 16:54:33 -0400
commitb8d4c2f60e810b91382f95353a5534bd59fd3976 (patch)
tree1ac6fffa4c02f2767a80b4a4a6b87ace5f60c45d
parente05ab5585330dab627fcfbc4ea4a09bfa71a5929 (diff)
downloadnes-snake-b8d4c2f60e810b91382f95353a5534bd59fd3976.tar.gz
nes-snake-b8d4c2f60e810b91382f95353a5534bd59fd3976.zip
use a smaller screen
this will fit into ram more easily
-rw-r--r--main.s18
1 files changed, 9 insertions, 9 deletions
diff --git a/main.s b/main.s
index 946aa5c..e4471c3 100644
--- a/main.s
+++ b/main.s
@@ -265,15 +265,15 @@ apply_direction:
check_collisions
LDA head.x
- CMP #$18
+ CMP #$40
BCC collision
- CMP #$E8
+ CMP #$C0
BCS collision
LDA head.y
- CMP #$1D
+ CMP #$3D
BCC collision
- CMP #$DD
+ CMP #$BD
BCS collision
JMP end_game_loop
@@ -327,7 +327,7 @@ start_game: ; {{{
STA $2006
LDA #$20
- LDY #$03
+ LDY #$07
-- LDX #$00
- STA $2007
INX
@@ -343,7 +343,7 @@ start_game: ; {{{
CPX #$20
BNE -
- LDY #$18
+ LDY #$10
-- LDX #$00
- LDA game_background_middle.w, x
STA $2007
@@ -431,13 +431,13 @@ intro_screen: ; {{{
.asc " SNAKE "
; }}}
game_background_top: ; {{{
- .asc " ,--------------------------. "
+ .asc " ,----------------. "
; }}}
game_background_middle: ; {{{
- .asc " | | "
+ .asc " | | "
; }}}
game_background_bottom: ; {{{
- .asc " '--------------------------: "
+ .asc " '----------------: "
; }}}
; }}}
.orga $FFFA ;first of the three vectors starts here