http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Game Programming: 2d map collision detection



------------------------------------------------------------
GameProgrammer.Com: Game Programming: 2d map collision
detection
------------------------------------------------------------

By roger levy on Monday, July 17, 2000 - 08:42 pm:

 hi
my game uses an object table to animate the player and
monsters by using x + y velocity variables (including other
things, like acceleration and terminal vel.) anyway, the
tilemap is made up of 8x8-sized blocks. i want to be able to
detect the collision of any object's hitbox (of any size) on
the blocks of the map, and have the objects automatically
"pushed out" of the blocks. how is this done with large
hitboxes? (like 16x16 or any other size) also, is it best to
have hitboxes with dimensions that are multiples of 8 in
this case?
the main problem is figuring out how to do the "pushing
out"... can someone guide me on how to do this?

------------------------------------------------------------
 DO NOT REPLY TO THIS MESSAGE!  It is an automatic e-mail
 notification message from the discussion board indicating
 that a new message was posted.  If you do not wish to
 receive further e-mail notification messages from this
 discussion board, edit your user or moderator profile to
 turn off the e-mail notification option.

Use this link to go directly to the discussion:
http://gameprogrammer.com/cgi-bin/comm/gameprogrammer/discus/show.pl?6/88