Advertisement

Collision Detection

Started by May 22, 2001 05:18 PM
2 comments, last by Graham 23 years, 8 months ago
I am currently working on a 2D game and have come to the point of making a collision detection system. I was trying to decide if I should just use RECT''s or if there was a way to get almost per-pixel collision detection. The game is at http://amicheinteractive.tripod.com Go to downloads section. It is Rampage Beta 1.2 Any replies would be helpful. How are other people making collision detection for their 2D games. Go on an Intense Rampage
Go on an Intense Rampage
you can find in my site a tutorial for col-det stuff
hope it will help you

Arkon
[QSoft Systems]
Advertisement
Ok, I went to your site to check it out.
I am making a Pong game, and while I can see about changing the speed of the ball so that collision can be detected in the manner you describe (checking if a coordinate is inside a rectangle), that method will not work currently.
I am using QBasic and this is how the screen is setup:
The ball can move X many pixels at once. The individual pieces of the wall can be smaller, so I can in fact have the ball go through the wall. I need to detect a way to determine if it does hit it without requiring it to go slower.
Then again, I still need to find out how to get it to go faster. It is very choppy looking right now.



-------------------------GBGames' Blog: An Indie Game Developer's Somewhat Interesting ThoughtsStaff Reviewer for Game Tunnel
if it hits the well, move it back...

Arkon
[QSoft Systems]

This topic is closed to new replies.

Advertisement