Sonic and Sega Retro Message Board: S1 collision arrays - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

S1 collision arrays Updated again.Bugs fixed

#1 User is offline JoseTB 

Posted 18 August 2004 - 10:14 AM

  • Posts: 623
  • Joined: 01-June 04
  • Location:Spain
  • Wiki edits:4
Updated.Added suport to angle/curve data and the code is optimized.Now it uses offset indexes.

Updated again.Some bugs fixed,now is 100% stable.

This is a simple hack that allows you to use different collision arrays for each level.The system is simple.There is a pointer to each level, (by default pointing to the main collision arrays) you just have to change it to point to somewhere in the rom (usually the end) and there paste your collision array for that level.The rom isn't shifted so you can use it without problems.Now,these are all the pointers:

GHZ:
Primary:$80036
Secondary:$8004e
Angle/Curve:$80066
MZ:
Primary:$8003a
Secondary:$80052
Angle/Curve:$8006a
SYZ:
Primary:$8003e
Secondary:$80056
Angle/Curve:$8006e
LZ:
Primary:$80042
Secondary:$8005a
Angle/Curve:$80072
SLZ:
Primary:$80046
Secondary:$8005e
Angle/Curve:$80076
SBZ:
Primary:$8004a
Secondary:$80062
Angle/Curve:$8007a

Download (right click,save as...)
This post has been edited by JoseTheBest: 19 August 2004 - 09:12 AM

#2 User is offline Hivebrain 

Posted 18 August 2004 - 04:15 PM

  • Posts: 2508
  • Joined: 15-January 03
  • Gender:Male
  • Location:53.4N, 1.5W
  • Project:HivePal 2.0
  • Wiki edits:6,176
You also need each level to have its own pointer for angle/curve mapping data, otherwise using a non-S1 array would be pointless.

#3 User is offline JoseTB 

Posted 18 August 2004 - 04:29 PM

  • Posts: 623
  • Joined: 01-June 04
  • Location:Spain
  • Wiki edits:4
I knew I forgot something...Okay,I will update this soon.

#4 User is offline JoseTB 

Posted 18 August 2004 - 06:45 PM

  • Posts: 623
  • Joined: 01-June 04
  • Location:Spain
  • Wiki edits:4
Updated,so bump.

#5 User is offline Hivebrain 

Posted 18 August 2004 - 08:32 PM

  • Posts: 2508
  • Joined: 15-January 03
  • Gender:Male
  • Location:53.4N, 1.5W
  • Project:HivePal 2.0
  • Wiki edits:6,176
Much better! That's exactly what I had in mind.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users