diff --git a/demosplash/demosplash.s b/demosplash/demosplash.s index 37e725bf..038c701b 100644 --- a/demosplash/demosplash.s +++ b/demosplash/demosplash.s @@ -6,6 +6,16 @@ demosplash2019: + ;========================= + ; clear zp + ;========================= + lda #0 + ldy #128 +zp_clear_loop: + sta $0,y + iny + bne zp_clear_loop + ;========================= ; set up sound ;========================= diff --git a/demosplash/starbase_action.s b/demosplash/starbase_action.s index e4e3ec67..3404714f 100644 --- a/demosplash/starbase_action.s +++ b/demosplash/starbase_action.s @@ -454,6 +454,7 @@ asstr_above: lda #10 asstr_adjust_y: + and #$fe sta ASTRONAUT_Y jsr recalc_walk_collision diff --git a/demosplash/starbase_astronaut.s b/demosplash/starbase_astronaut.s index 23427b7d..b4691325 100644 --- a/demosplash/starbase_astronaut.s +++ b/demosplash/starbase_astronaut.s @@ -574,8 +574,9 @@ finally_draw_him: sta XPOS lda ASTRONAUT_Y - sec - sbc EARTH_OFFSET ; adjust for earthquakes + and #$fe +; sec +; sbc EARTH_OFFSET ; adjust for earthquakes sta YPOS lda DIRECTION diff --git a/demosplash/zp.inc b/demosplash/zp.inc index a8993772..f3d14bd8 100644 --- a/demosplash/zp.inc +++ b/demosplash/zp.inc @@ -146,6 +146,8 @@ BEAST_DEAD = $CB ; 1 VENT_OPEN = $CC ; 2 INTRO_REPEAT = $CD ; INTRO +ASTRONAUT_X = $CC +ASTRONAUT_Y = $CD LASER_TEMP = $CE ; 2+ LEFT_SHOOT_TARGET = $CF ; ALL @@ -264,10 +266,10 @@ DRAW_PAGE = $EE ; ALL OFFSET = $EF INTRO_LOOPL = $F0 ; INTRO -ASTRONAUT_X = $F0 ; ALL +;ASTRONAUT_X = $F0 ; ALL INTRO_LOOPH = $F1 ; INTRO -ASTRONAUT_Y = $F1 ; ALL +;ASTRONAUT_Y = $F1 ; ALL SPRITETEMP = $F2 ; ALL XPOS = $F3 ; ALL