News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM] Block collisions

Started by dewhi100, December 30, 2018, 10:50:13 PM

Previous topic - Next topic

dewhi100

I want to know whether Samus is touching a solid or slope block, and what direction it's in, in relation to her.

I saw a few places in the RAM map that may be helpful, but I have a couple questions.

1) 7E:0B02 - 7E:0B03    What kind of collision detection to use for Samus. 03 = below, 02 = above, 01 = right, 00 = left
I looked in Geiger and never saw this change, granted I only tried colliding with an enemy and the terrain. What gives?

2) 7E:0DC4 - 7E:0DC5    Current block index (nth block of the room)
Does this have something to do with it?

3) Slopes. The can be to multiple sides of you at once. How would they fit in with 1)?

4) 7E:0DD0 - 7E:0DD1    0000 = Samus did not collide with anything. 0001 = Collision with block. FFFF = Collision with enemy?
Which block types are included in this? (Air seems obviously excluded. Quicksand, less obvious)