[SDL] SDL Joystick calibration

Mark Jenison jenison at enteract.com
Thu Sep 21 20:23:15 PDT 2006

Please do not use HTML in email.

On %A %d %B %Y %H:%M:%S %p, Carolina Simões Gomes wrote:
> <html><div style='background-color:'><P>Maybe you should use a bounding box
> for your sprite and, for each tile, check if any of the 4 box corners are
> within the tile area. But this would work only if you keep track of your
> tiles as structs, or at least their position.</P> <P>Hope this helps!
> =)</P>
> <DIV>&&&&&&&&&&&&&&
> &&&&&&&&&&&&&&&
>&&&&&& <BR>Carolina Simões Gomes <BR><BR>[Game
> Programmer - C/C++, J2ME] <BR>[Game Designer] <BR>[Developer - Ailandra
> Project(http:\\www.ailandra.com)] <BR><BR><BR>Computer Engineering 2005 -
> UNICAMP <BR>Cell phone : (11)9715-0347 <BR>E-mail :
> alma_horadrim at hotmail.com
> <BR>&&&&&&&&&&&&&&&
> &&&&&&&&&&&&&&&
>&&&&&&</DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px;
> MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT
> style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif"> <HR color=#a0c6e5
> SIZE=1>
> From: <I>"Salvatore Di Fazio"
> <salvatore.difazio at gmail.com></I><BR>Reply-To: <I>"A list for
> developers using the SDL library. (includesSDL-announce)"
> <sdl at libsdl.org></I><BR>To: <I>"A list for developers using the SDL
> library. (includes SDL-announce)"<sdl at libsdl.org></I><BR>Subject:
> <I>[SDL] Sprite, collision with tiles</I><BR>Date: <I>Sat, 2 Sep 2006
> 21:45:39 +0200</I><BR>>Hi guys,<BR>>I need a function thet
> understands when a sprite collides with a tile.<BR>><BR>>I made
> something that uses the position of the sprite in relationship<BR>>with
> the tile (ex: NumTileInMap = SpriteXPixel + (SpriteYPixel
> *<BR>>MAP_WIDTH))<BR>><BR>>That works fine when the sprite is in
> the bottom or in the left of the<BR>>tile but it dosen't work fine when
> the sprite is at the top and in the<BR>>right of the
> tile.<BR>><BR>>Besides I need to check if the sprite collides with a
> tile when it's<BR>>in the middle of two tiles.<BR>><BR>>Thanx a
> lot<BR>><BR>>_______________________________________________<BR>>S
>DL mailing
> list<BR>>SDL at libsdl.org<BR>>http://www.libsdl.org/mailman/listinfo/sd
>l<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>Chegou o Windows Live
> spaces com rede social! <a href="http://g.msn.com/8HMABRBR/2755??PS=47575"
> target="_top">Confira aqui!</a> </html>

More information about the SDL mailing list