Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Obstacles  (Read 2007 times)

0 Members and 1 Guest are viewing this topic.

Nolan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Obstacles
« on: June 15, 2011, 10:45:57 pm »
Without using GetPixel (Because it is awfully slow and I don't think I'm getting the right DC to the window), what's the best method to implement obstacles / multiple objects?

Thanks in advance :)

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Obstacles
« Reply #1 on: June 15, 2011, 10:50:25 pm »
Bounding boxes are pretty common and a simple way. Actually you can do it with SFML without writing any collision detection code yourself.
Here's some info for you: http://tinyurl.com/43he9wf
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

David

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Obstacles
« Reply #2 on: June 15, 2011, 10:55:14 pm »
Quote from: "Groogy"
Bounding boxes are pretty common and a simple way. Actually you can do it with SFML without writing any collision detection code yourself.
Here's some info for you: http://tinyurl.com/43he9wf


That was unecessary :wink:

But seriously, unless you're using irregular shapes, bounding boxes are the way to go

 

anything