RIP to BT Garner of MindRec.com... BT passed away early 2023 from health problems. He was one of the top PCE homebrew developers and founder of the OG Turbo List, then PCECP.com. Condolences to family and friends.
IMG
IMG
Main Menu

Sprite collision revisited

Started by spenoza, 12/18/2011, 11:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spenoza

So, here's how Mike Daily handles collisions. He uses Gamemaker as a starting point because he argues it does things horribly. How does his method compare to your own?

http://dailly.blogspot.com/2011/06/collision-detection.html

touko

#1
I have already red this ..

Personaly i'am using bouding box, this methos is IMO the more simpliest,and give very good results in most cases.
I have also used hardware sprite detection + bouding boxes on pce.

Pixel perfect is the best, but also more CPU consuming,and difficult to implement.

Arkhan Asylum

Quote from: touko on 12/18/2011, 12:39 PMI have already red this ..

Personaly i'am using bouding box, this methos is IMO the more simpliest,and give very good results in most cases.
I have also used hardware sprite detection + bouding boxes on pce.

Pixel perfect is the best, but also more CPU consuming.
the hardware collision isn't so great if the sprites aren't taking up the whole box lol.


I use bounding boxes too, as it makes the most sense and offers great flexibility.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

touko

#3
Yes but you lunch a bounding test ONLY when an hardware collide interrupt is set ..
you avoids more collisions tests for nothing  .

But i admit for PCE this is very very limited .

Arkhan Asylum

Quote from: touko on 12/18/2011, 12:51 PMYes but you lunch a bouding test ONLY when an hardware collide interrupt is set ..
you avoids more collisions tests for nothing  .

But i admit for PCE this is very very limited .
I suppose you could do that, but is the gain really worth a damn?
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

touko

#5
i don't know really, i think so, and i confirm if you're using HuC for testing .
Because you probably use arrays for sprites coordinates.

This method is only usefull if sprite 0 is assigned (for exemple), for player shoot,and can shoot one at the same time  ..

Arkhan Asylum

Quote from: touko on 12/18/2011, 12:56 PMi don't know really, i think so, and i confirm if you're using HuC for testing .
Because you probably use arrays for sprites coordinates.

This method is only usefull if sprite 0 is assigned (for exemple), for player shoot,and can shoot one at the same time  ..
I don't use arrays, period.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

touko

Separates variables ??, or the use of spr_get ???

Arkhan Asylum

This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

touko

Lol,stack ???
printer??
3D storage ???
Aliens system ???
 :mrgreen:

Arkhan Asylum

This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

touko