Advertisement
brunovalads

Sonic 2 (SMS) RAM Map

Nov 11th, 2017
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. $1174 (2 bytes) = Layer 1 (camera) x position
  2. $1176 (2 bytes) = Layer 1 (camera) y position
  3.  
  4. $1295 (1 byte) = Current level
  5. #$00 = Underground
  6. #$01 = Sky High
  7. #$02 = Aqua Lake
  8. #$03 = Green Hills
  9. #$04 = Gimmick Mt.
  10. #$05 = Scrambled Egg
  11. #$06 = Crystal Egg
  12. #$07 = Ending Sequences
  13. #$09 = Intro Sequence / Title Screen
  14. $1296 (1 byte) = Current act. Notes: for the Ending Sequence, #$00 is the Bad and #$01 is the Good; for the Intro/Title, #$00 = Intro Sequence, #$01 = Title Screen.
  15.  
  16. $1298 (1 byte) = Life counter, any value above #$09 is displayed with 9
  17.  
  18. $1299 (1 byte) = Ring counter (in hexadecimal, the code jumps from #$09 to #$10 for example)
  19.  
  20. $12B9 (2 bytes) = Game timer (low byte = seconds, high byte = minutes), Sonic dies when it reaches 10 mins (in hexadecimal, the code jumps from #$09 to #$10 for example)
  21.  
  22. $12BC (1 byte) = Frame counter for game timer, adds 1 second in the clock when reaches #$3C (60 frames)
  23.  
  24. $13A9 (1 byte) = Invincibility timer, starts at #$78 decrementing each frame
  25.  
  26. $13AA (1 byte) = Frames holding button when jumping. Freezing it at some value "enables" a flighting mode
  27.  
  28. $13B4 (2 bytes) = Idle frame counter, Sonic will enter idle state when it reaches #$0200
  29.  
  30. $14A9 (1 byte?) = Frame counter for tile animation, maybe
  31.  
  32. $1501 (1 byte) = Sonic status (prev)
  33. $1502 (1 byte) = Sonic status
  34.  
  35. $1503 (1 byte) = On ground status, kinda
  36.  
  37. $1510 (1 byte) = X subposition
  38. $1511 (2 bytes) = X position
  39.  
  40. $1513 (1 byte) = Y subposition
  41. $1514 (2 bytes) = Y position
  42.  
  43. $1516 (1 byte) = X subspeed
  44. $1517 (1 byte) = X speed
  45.  
  46. $1518 (1 byte) = Y subspeed
  47. $1519 (1 byte) = Y speed
  48.  
  49. $151A (2 bytes) = X position in screen
  50.  
  51. $151C (2 bytes) = Y position in screen
  52.  
  53. $1522 (1 byte) = Blocked status, format: 0000lrdu (l = left, r = right, d = down, u = up)
  54. $1523 (1 byte) = Blocked status mirror, I guess
  55.  
  56. $1707 (1 byte) = Counter for updating $170E, I guess
  57.  
  58. $170E (1 byte?) = Related with Ending phase, or timer to Ending go to Game Over screen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement