Jun-03-2019, 06:12 PM
(Jun-03-2019, 12:28 PM)metulburr Wrote: By tile; do you mean tilemaps or do you mean a 4 sided object?
It's txt file that is read and translated into a map of 32X32 tile sprites. I'll look at the pong code and see what it is, but if there are sprite groups for walls and paddles, that won't be useful if there is a single tile in the room that can be hit from all sides. Will it??
(Jun-03-2019, 02:03 PM)Windspar Wrote: Use clipping rect size. Determine which is smaller. Width or Height. If even then you can says it hit both angles.
Then you can compare rect.centerx or rect.centery to collision rect.centerx or rect.centery.
ok... I think i sort of get it. Long story short, if the smallest of the remainders of the rect.centery or rect.centerx comparison will determine if it is a vertical surface or a horizontal surface?
I'll look into all of this and see where I get.
Thanks guys