Subject: Re: [stella] Multi game with collision detection! (multi050.bin) included From: Greg Troutman <mor@xxxxxxx> Date: Mon, 08 Dec 1997 08:31:08 -0800 |
Robert A. Colbert wrote: > > Comments and suggestions (as always) are greatly apprectiated! Another method of refining collision detection with rectangular areas is to clip the test rectangle some. You lose collisions right on the border, but also do not detect as many that are way out in non-used areas... Say a sprite and it's rectangle looks like this: --------- |X X| | X X | | X X | | X | --------- It might work a bit better if you test for collisions in an area like this: X X <-- fringe pixels do not collide ------- |X X| <-- must hit the heart of the sprite | X X | ------- X It depends a lot on the shapes of your sprites and the feel of the game... -- mor@xxxxxxx http://www.crl.com/~mor/ -- Stella list is Administered by krishna@xxxxxxxxxxxx <Glenn Saunders> Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/stella.html +-shameless plugs-------------------------------------------------------+ | Stella documentary at http://www.primenet.com/~krishna | | Nick's VCS links via http://www.primenet.com/~nickb/atariprg.htm | | Write the best game, win framed autographs of famous Atari alumni!! | +-----------------------------------------------------------------------+
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[stella] Multi game with collision , A. | Thread | Re: [stella] Multi game with collis, Piero Cavina |
[stella] Multi game with collision , A. | Date | [no subject], Manou Joassaint |
Month |