469
edits
(First half) |
|||
Line 24: | Line 24: | ||
==Behavior== | ==Behavior== | ||
There are | 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=== | ||
1-up | 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=== | |||
=== | ===Fleeing 1-Up=== | ||
===Straight 1-Up=== | |||
====Non-Following==== | ====Non-Following==== |