Apr 21, 2016

It's all about the head

Bosses in Castlevania are a lot simpler than bosses in Dracula's Curse, at least as far as coding is concerned. Even without knowing the RAM addressing beyond the variables for horizontal and vertical speeds, it took just an hour or so to transcribe the code for Medusa in Game Maker.

Medusa's code is surprisingly simple, especially for a boss.
  1. Belmont approaches, boss fight is flagged, a timer ticks down.
  2. When timer finishes, change to animated head and drop down.
  3. If above the floor ($A8)...
    1. Set horizontal speed toward Belmont.
    2. Create a snake.
    3. Set a timer.
  4.  While timer counts down, follow Medusa Head sinusoidal movement.
  5. When timer finishes, stop moving and set timer again.
  6. Goto step 2.
The bat boss took a lot longer to crack. I did not expect Medusa's code to be so simplistic.

No comments:

Post a Comment