Tip: Switch palace switches normally disappear if you replay the level. However, if you insert them as direct Map16 and use the hex edit at $00EEB2 in the ROM map, you can replay the level without a problem.
With this code, the player will die from cold if they stand still for too long. They will begin to shake as sign of warning before dying. They can also get hurt or instantly killed if they try to swim in water if set to do so.
Defines for amount of frames it takes for the player to die, when to make the player shake, give immunity when star power is active, and whether to hurt or instantly kill or not when touching water are included.