You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every game object carries information about its sprite data which includes its size (length, width) and position (x, y). However the game object data types are different and therefore will need to use a general interface for retrieving the positional and size information for use in the collision detection logic.
Furthermore how do we decide what to do when a collision is detected? One option would be for every game object to include an object type field which could be used to decide how to handle the collision.
Todo:
Implement general interface for game objects to retrieve necessary information for collision detection logic
The text was updated successfully, but these errors were encountered:
Every game object carries information about its sprite data which includes its size (length, width) and position (x, y). However the game object data types are different and therefore will need to use a general interface for retrieving the positional and size information for use in the collision detection logic.
Furthermore how do we decide what to do when a collision is detected? One option would be for every game object to include an
object type
field which could be used to decide how to handle the collision.Todo:
The text was updated successfully, but these errors were encountered: