Open main menu

Castlevania Speedrunning β

SOTN/Medusa Head

Revision as of 23:22, 17 November 2023 by SestrenExsis (talk | contribs) (Fix code block)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Medusa Head is an enemy that periodically spawns on the left or right side of the screen in certain areas and flies in a sine wave pattern.

One room Medusa Heads are found is in the Outer Wall, where they can spawn in the region above the Soul of Wolf Relic location. While in a spawning zone, the game will periodically (TODO: How often?) spawn a Medusa Head just outside the viewing area of the camera. When spawned, a Medusa Head has a chance (1 in 8 using Evil RNG) of being a Golden Medusa Head, which will petrify the player on contact. A Medusa Head always spawns initially at the same vertical height as the player, although they will start out on a random spot in the sine wave (1 of 8 outcomes using Nice RNG), meaning the midline of their trajectory will be different.

If the player is far enough left or right that the camera is locked and the player is away from the center of the screen, then the side the Medusa spawns in on is fixed; the Medusa will spawn on the side of the screen furthest from the player in these instances. Otherwise, the Medusa Head will randomly choose which side of the screen to spawn in on, and will consider the direction the player is facing when doing so (1 in 4 chance, using Evil RNG, of spawning behind the player instead of in front).

# Pseudo-code of the logic Medusa Heads use to determine which side of the screen to choose
side = 0
if player.screenX < 80:
    side = 1 # Always spawn on the right side, since the player is too far left
elif player.screenX >= 177:
    side = 0 # Always spawn on the left side, since the player is too far right
elif (rand() & 3):
    side = 1 - player.facing # Spawn in front of the player
else:
    side = player.facing # Spawn behind the player