Search found 3 matches
- Wed Oct 01, 2014 12:51 am
- Forum: General
- Topic: Finding and reacting to colliding objects
- Replies: 5
- Views: 2850
Re: Finding and reacting to colliding objects
First create a object-base-class, which contains the init, update and draw function. The draw would contain functionality to draw the shape that is attached to the object (or draw an image attached to the object). The update takes care of movement. Then derive all of the specific objects from this ...
- Tue Sep 30, 2014 12:49 am
- Forum: General
- Topic: Finding and reacting to colliding objects
- Replies: 5
- Views: 2850
Re: Finding and reacting to colliding objects
If you still want to implement the collision detection and resolution yourself, then please describe a bit more in detail, what you want to achieve. Objects move freely, and can have any shape attached to them. My idea was that each type of object would be in its own file which would define its ini...
- Sun Sep 28, 2014 8:09 pm
- Forum: General
- Topic: Finding and reacting to colliding objects
- Replies: 5
- Views: 2850
Finding and reacting to colliding objects
I would like to find out a good way to manage game objects. I'm thinking that the simplest way would be to keep each one as a table that contains an update function, draw function, and internal state. I'm not sure how to solve these issues, though: Objects should be able to have a shape associated w...