Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: noahbaby94 on February 03, 2009, 10:37:53 pm

Title: Binary collisions
Post by: noahbaby94 on February 03, 2009, 10:37:53 pm
So I've started using celtic III so I using binary strings for tilemapping my question is how might you use them for collision detection?
Title: Re: Binary collisions
Post by: Iambian on February 04, 2009, 12:01:39 am
You'd have to jump through a couple of hurdles, but you'd, in essence, use the "stringread" command to extract the byte that represents the tile you're moving into, the "hextodec" command to convert it to a number, then some simple tests in BASIC to determine if that number belongs to a tile that you can/cannot move into.

Beyond that and manually having to do what a matrix does internally, there's really no difference between using binary strings for the string tilemapper and using a matrix-based one found with xLIB.
Title: Re: Binary collisions
Post by: DJ Omnimaga on February 04, 2009, 01:13:30 am
moved to Calculator Help And Support
Title: Re: Binary collisions
Post by: kalan_vod on February 04, 2009, 03:46:02 pm
Iambian: do you plan on making a section on the TI|BD wiki? Or if you know of someone writing one?
Title: Re: Binary collisions
Post by: DJ Omnimaga on February 04, 2009, 04:39:47 pm
someone writing one?
Kalan_Vod %) (j/k)