Bob-omb: Difference between revisions

1,836 bytes added ,  11 October 2023
m
reformated with template
m (added to enemies category)
m (reformated with template)
 
(9 intermediate revisions by 6 users not shown)
Line 3: Line 3:
|image= STROOP- Bob-omb.png
|image= STROOP- Bob-omb.png
|group=Destructive
|group=Destructive
|group2=Common0
|modelID=0xBC
|tangibility=1000
|tangibility=1000
|draw=4000
|draw=4000
Line 19: Line 21:
|offset=0
|offset=0
|coins=0
|coins=0
|behaviorScript=[https://github.com/n64decomp/sm64/blob/master/data/behavior_data.c#L3732 Bob omb Initialization File]
|behaviorCode=[https://github.com/n64decomp/sm64/blob/master/src/game/behaviors/bobomb.inc.c Bob omb Behavior file]
}}
}}
'''Bob-ombs'''<!--or '''Bombombs'''--> are enemies in SM64. When they see Mario, their fuse lights and they start chasing him. After their fuse ends, they explode, creating an explosion object.
'''Bob-ombs'''<!--or '''Bombombs'''--> are enemies in SM64. When they see Mario, their fuse lights and they start chasing him. After their fuse ends, they explode, creating an explosion object.
==Locations==
The following courses have Bob-ombs:
*[[Bob-omb Battlefield]]
*[[Shifting Sand Land]]
*[[Tall, Tall Mountain]]
*[[Tick Tock Clock]]
*[[Rainbow Ride]]
*[[Bowser in the Fire Sea]]
*[[Bowser in the Sky]]


==Bloated Bob-omb==
==Bloated Bob-omb==
Line 35: Line 50:
===Uses===
===Uses===
This trick is used frequently in the [[A Button Challenge]], but also generally for clipping through walls, such as in [https://www.youtube.com/watch?v=28PT7HZWaHI the Chain Chomp's Gate clip.]
This trick is used frequently in the [[A Button Challenge]], but also generally for clipping through walls, such as in [https://www.youtube.com/watch?v=28PT7HZWaHI the Chain Chomp's Gate clip.]
==Interaction with walls==
The game first adds the speed to the current position and uses that point in the collision calculations. The algorithm will push the bob-omb outward from the wall if a collision occurs, so if it's already against the wall it effectively adds the component of the bob-omb's speed that's tangent to the wall. Regardless of whether a collision occurs or not, the Bob-omb's position is incremented by its speed at a later point as well. Finally, since the point used for the collision calculation is only written to the Bob-omb's position if a collision occurs, the double speed increment doesn't happen in the open field. This occurs before the Bob-omb's actual movement step, so then it moves a 2nd time before the frame ends. Thus, when Bob-ombs touch a wall, their speed is effectively doubled.
Basically, Bob-ombs always check for wall collision before moving. If they do collide with a wall hitbox, then the Bob-omb's position is incremented and pushed away by the wall.
==Supersaturated Bob-omb==
A supersaturated Bob-omb is a Bob-omb whose fuse timer has overflowed, which vastly delays its explosion. Because the underlying glitch takes 828 days (2.3 years) to execute, it is the most time-consuming glitch in the game.
==See also==
* [[Supersaturated Bob-omb]]


[[Category:Enemies]]
[[Category:Enemies]]
 
==References==
{{Glitches}}
<references/>
{{objects}}
{{Glitches|state=collapsed}}
577

edits