1-Up Mushroom

From Ukikipedia
Revision as of 04:10, 26 May 2023 by Macrepeh (talk | contribs) (Fonoshed)
Jump to navigation Jump to search
1-Up Mushroom
STROOP- 1-Up.png
Technical Constants
Object Group Level
Actor Group Common 1
Physical Constants
Gravity 3
Friction 1
Buoyancy 1
Hitbox
Interaction Type None
Radius 30
Height 30
Down Offset 0

1-Up Mushrooms or 1-Ups are objects found in every course. If Mario touches one, he is granted a life.

Behavior

There are 6 different types of 1-Up Mushrooms. All 1-Up types share certain properties. When a 1-Up collides with Mario, an extra life sound plays, Mario gains an extra life, an the 1-Up deactivates. Additionally, all 1-Ups share the same gravity, friction and buoyancy parameters on spawn. However, the 6 types each have unique behaviors.

Stationary 1-Ups

Stationary 1-Ups, as their name implies, are stationary and do not move at all. They become visible when Mario is within 3000 units of their position, and, like all 1-Ups, will deactivate if collected by Mario. They do not despawn on their own.

Pole 1-Ups

Pole 1-Ups are triggered by climbing up to the top of a pole. They start off as invisible and intangible. When the 1-Up is triggered, the 1-Up is made visible and begins moving upward at 40 units/frame. After 17 frames, the 1-Up starts a loop in the air. 20 frames later, the 1-Up becomes tangible and begins following Mario at 10 units/frame.

Slide 1-Ups

Slide 1-Ups are those that appear on slides. When Mario gets within 1000 units of the 1-Up, it will begin to slide away from him. While on the ground, sliding 1-Ups will accelerate by 25 units/frame per frame, up to a maximum velocity of 40 units/frame. In the air, sliding 1-Ups decelerate by 2% every frame. If Mario is more than 5000 units away from the sliding 1-Up, it will flicker and disappear after 40 frames.

Hidden Trigger 1-Ups

Hidden 1-Ups are activated by touching all triggers associated with that 1-Up. They most commonly require 4 triggers to spawn, but can require as few a 1 trigger. When all triggers are activated, the 1-Up becomes visible, circles in the air with the same parameters as the Pole 1-Up, and then become tangible. The 1-Up will move in a direction 180 degrees from Mario, and if it collides with a wall or Mario moves more than 3000 units away from the 1-Up, the 1-Up will begin to flicker and disappear.

Spawned 1-Ups

Spawned 1-Ups are 1-Ups spawned by breaking a box with a 1-Up, by killing 8 Monty Moles, or by attacking a butterfly triplet. After spawning they will execute a loop, become tangible, and move in a straight line on the ground at 2 units/frame. After 300 frames (10 seconds), the 1-Up will disappear. While the 1-Up is programmed to flicker before disappearing, it does not as the flickering function is overridden by another function that makes the 1-Up visible as long as Mario is within 3000 units of it.

Fleeing Box 1-Ups

Fleeing box 1-Ups are 1-Ups spawned from boxes that move away from Mario. They behave the same as other spawned 1-Ups, except that actively move away from Mario and only disappear if Mario moves more than 3000 units away from them or they hit a wall. Like the other spawned 1-Ups, they do not flicker due to their flickering being overridden by another function.

The Impossible 1-up

The Impossible 1-up Mushroom is a 1-up in the CCM slide, in the secret tunnel, that goes through a wall before Mario reaches it,[1] but this 1-up can still be collected.[2]