Keith Weisshar Posted May 2, 2018 Share Posted May 2, 2018 Why does Raiders of the Lost Ark always play the last note before the first note of the intro screen music loop on restart? Quote Link to comment Share on other sites More sharing options...
Rom Hunter Posted May 2, 2018 Share Posted May 2, 2018 I think Nukey answered this one many years ago. 1 Quote Link to comment Share on other sites More sharing options...
Nukey Shay Posted May 3, 2018 Share Posted May 3, 2018 On restart, all variables are zeroed (including the music pointer at Ram $A4), but the 24-byte data table at Rom $FBE8 is read in reverse. When 16 frames has passed at routine $F2FB, the pointer is updated (decremented). Only when it falls -below- zero, it is reset to 23...beginning the tune over again at the correct note. So the fix could have been to reset the pointer to 23 (instead of zero) at game restart, or have the data table read forwards instead of backwards. Apparently, HSW didn't feel it was significant enough to correct. 3 Quote Link to comment Share on other sites More sharing options...
Keith Weisshar Posted May 5, 2018 Author Share Posted May 5, 2018 (edited) How does the flute music work and why does it start over from the beginning every time I die? Edited May 5, 2018 by Keith Weisshar Quote Link to comment Share on other sites More sharing options...
Rom Hunter Posted May 5, 2018 Share Posted May 5, 2018 How does the flute music work and why does it start over from the beginning every time I die? When you activate the flute it starts playing. Snakes can't harm you while playing the flute. Quote Link to comment Share on other sites More sharing options...
Nukey Shay Posted May 5, 2018 Share Posted May 5, 2018 Routine $F314 handles the flute, dividing the frame counter (Ram $82) by 16 and using that index for the 16-byte note data at $FAEE (i.e. this table is read forwards). The death animation routine at $F398 also uses the frame counter. Quote Link to comment Share on other sites More sharing options...
Supergun Posted May 5, 2018 Share Posted May 5, 2018 Didnt catch this explanation until now. Thanks Nukey. I always wondered that about the opening theme music. And on a related side note, ever since I was a kid, I always thought it interesting how the flute music gets an extra beat while your walking (stepping). I enjoy that. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.