Bob-omb: Difference between revisions

640 bytes added ,  11 October 2023
m
reformated with template
(or just say "wen bomby touch a wall, dey r 2x faster!")
Tags: Mobile edit Mobile web edit
m (reformated with template)
 
(7 intermediate revisions by 5 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.


bobomb walk into a wall make it a fast boi:
==Locations==
Tyler, in discord: "@Kaztalek and others who were thinking there were a couple speed vectors being added were basically spot on. When testing for wall collisions on Bob-ombs, the game first adds the speed to the current position and uses that point in the collision calculations. The algorithm pushes 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 bobomb'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."
The following courses have Bob-ombs:


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.
*[[Bob-omb Battlefield]]
 
*[[Shifting Sand Land]]
This is before the Bob-omb's actual movement step occurs, so then it moves a 2nd time before the frame ends. Thus, when Bob-ombs touch a wall, their speed is effectively doubled.
*[[Tall, Tall Mountain]]
*[[Tick Tock Clock]]
*[[Rainbow Ride]]
*[[Bowser in the Fire Sea]]
*[[Bowser in the Sky]]


==Bloated Bob-omb==
==Bloated Bob-omb==
Line 42: 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