335
edits
Changes
Add Medusa Head page
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 [https://en.wikipedia.org/wiki/Sine_wave| 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 ([[SOTN/RNG|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 ([[SOTN/RNG|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 ([[SOTN/RNG|1 in 4 chance, using Evil RNG, of spawning behind the player instead of in front]]).
<nowiki># 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
else:
if (rand() & 3):
side = 1 - player.facing # Spawn in front of the player
else:
side = player.facing # Spawn behind the player</nowiki>
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 ([[SOTN/RNG|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 ([[SOTN/RNG|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 ([[SOTN/RNG|1 in 4 chance, using Evil RNG, of spawning behind the player instead of in front]]).
<nowiki># 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
else:
if (rand() & 3):
side = 1 - player.facing # Spawn in front of the player
else:
side = player.facing # Spawn behind the player</nowiki>