Flight to Earth - straight vertical fall

Request patches for Keens 1-3.
Post Reply
User avatar
CommanderSpleen
Posts: 1017
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Flight to Earth - straight vertical fall

Post by CommanderSpleen »

I'm trying to transform the flight to earth sequence to simply place the ship sprite stationary in the middle of the screen as the screen pans downwards some distance. Ideally the sprite should continue to fall for about a quarter of the screen when it stops at the bottom, but this is not essential. None of the exclamation and question mark stuff.

So far I've managed to get the downwards panning part, skipping the horizontal parts. But the ship movement is extremely unpredictable. I can almost get it to fall properly, but changing anything about the fine movement lists makes it zap around all over the place and disappear off screen.

Edit: Ok, I set those lists all to $0000W and it almost works, but the final !/? part still occurs.

Edit: I changed all the horizontal values in the procedural movements to 0, but there's one part at the end where the sprite scrolls left and the ! appears.

Edit: I have minimised the movement before ! but it still shifts by a couple of pixels. There must be one more horizontal variable that isn't covered in these patches.

(Also strangely I had misremembered the entire sequence in which Mars and the mothership were to the right of Earth. The movements make a bit more sense having rewatched the default ending.)

Code: Select all

#Rocket start location
%patch $828E $A0     #x position (x10)
%patch $8293 $00     #x position (x1)
%patch $8298 $30     #Y position (x10)
%patch $829D $00     #Y position (x1)

#Rocket going up off Mars
#%patch $82D0 $001CW #Sprite used
#%patch $82E9 $0000W #Speed going up (Higher = slower)

#1st list directions -up from Mars
%patch $1597E $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W
              
#2nd list directions -Flight to mothership
%patch $159BA $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W

#3rd list -return to mothership
%patch $15A66 $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W
              $0000W $0000W  $0000W $0000W  $0000W $0000W  $0000W $0000W

#Rocket going to Earth, screen moves
%patch $834F $00    #Screen left movement speed
%patch $835A $03    #Screen down movement speed
%patch $8364 $00    #Rocket left movement speed
%patch $836D $03    #Rocket down movement speed

#Rocket going to Earth, screen doesn't move 2
%patch $839C $00    #Rocket left movement speed
%patch $83AB $00    #Rocket down movement speed
#%patch $83D1 $003CW #Length of rocket moving down phase

#Rocket heads to investigate Vorticon Mothership
%patch $843B $001CW #Sprite used for rocket going to Vorticon Mothership
%patch $8457 $0000W #Length of rocket moving toward Vorticon Mothership phase

#Rocket landed
%patch $83D6 $0002W #Pause between reaching Earth and ? appearing
%patch $83E4 $001CW #Sprite used for rocket when ? appears

#Keen surprised at Vorticon Mothership
%patch $8461 $001CW #Sprite used for rocket when ! appears
%patch $84A5 $0000W #Length of ! and rocket staying still pahase

#Rocket returns to Earth
#%patch $8517 $0000W #Pause between rocket landing and Keen's house phase
User avatar
K1n9_Duk3
Posts: 13
Joined: Tue Jan 19, 2021 9:57 pm

Re: Flight to Earth - straight vertical fall

Post by K1n9_Duk3 »

CommanderSpleen wrote: Wed Apr 08, 2020 1:16 pm I'm trying to transform the flight to earth sequence [...]
Do you still need help with this or did you manage to figure it out on your own? This is kind of an old thread, so I'd rather ask before digging into this myself.
Post Reply