Amp: Difference between revisions

264 bytes added ,  11 October 2023
m
reformat with new template
No edit summary
m (reformat with new template)
 
(5 intermediate revisions by 5 users not shown)
Line 4: Line 4:
|group=General Actor
|group=General Actor
|group2 = Common 0
|group2 = Common 0
|modelID=0xC2
|tangibility=1000
|tangibility=1000
|draw=
|draw=
Line 18: Line 19:
|offset=40
|offset=40
|coins=
|coins=
|behaviorScript=[https://github.com/n64decomp/sm64/blob/master/data/behavior_data.c#L3865 Circling Amp Initialization File]
|behaviorCode=[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/amp.inc.c Amp behavior file]
}}
}}
'''Amp''' is an enemy that appears in many levels. There are two types of Amp; a homing Amp, and an Amp that moves in a circle. The circling Amp can also be stationary if the circle's radius is set to 0. When Mario collides with an Amp, he is shocked and takes 1 damage.  
'''Amp''' is an enemy that appears in many levels. There are two types of Amp; a homing Amp, and an Amp that moves in a circle. The circling Amp can also be stationary if the circle's radius is set to 0. When Mario collides with an Amp, he is shocked and takes 1 damage.  
==Locations==
==Locations==
The following courses have Amps:
The following courses have Amps. All of them only have Circling Amps unless stated otherwise:
 
*[[Bowser in the Dark World]]
*[[Shifting Sand Land]] (Both types)
*[[Vanish Cap Under the Moat]]
*[[Snowman's Land]]
*[[Wet-Dry World]]
*[[Bowser in the Fire Sea]]
*[[Tick Tock Clock]]
*[[Rainbow Ride]]
*[[Bowser in the Sky]]


* [[Bowser in the Dark World]]
* [[Shifting Sand Land]]
* [[Vanish Cap Under the Moat]]
* [[Snowman's Land]]
* [[Bowser in the Fire Sea]]
* [[Tick Tock Clock]]
* [[Rainbow Ride]]
* [[Bowser in the Sky]]
==Behavior==
==Behavior==
===Homing Amp===
===Homing Amp===
Line 37: Line 42:
The Circling Amp can be initialized with 4 different radii: 200 units, 300 units, 400 units and 0 units. If the Amp has a circling radius of 0 units, the amp remains in a fixed position while turning toward Mario and oscillating 40 units around its initial Y-value. If the Amp’s circling radius is not 0, it moves in a circle of the specified radius around its home with a period of 64 frames and oscillates 60 units around its initial Y-value.
The Circling Amp can be initialized with 4 different radii: 200 units, 300 units, 400 units and 0 units. If the Amp has a circling radius of 0 units, the amp remains in a fixed position while turning toward Mario and oscillating 40 units around its initial Y-value. If the Amp’s circling radius is not 0, it moves in a circle of the specified radius around its home with a period of 64 frames and oscillates 60 units around its initial Y-value.
==References==
==References==
[https://github.com/n64decomp/sm64/blob/06ec56df7f951f88da05f468cdcacecba496145a/src/game/behaviors/amp.inc.c Amp Behavior File]
<references/>
[[Category:Enemies]]
[[Category:Enemies]]
{{objects}}
577

edits