Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision detection logic #3

Open
1 task
skykanin opened this issue May 4, 2021 · 0 comments
Open
1 task

Collision detection logic #3

skykanin opened this issue May 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@skykanin
Copy link
Owner

skykanin commented May 4, 2021

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
@skykanin skykanin added the enhancement New feature or request label May 4, 2021
@skykanin skykanin assigned skykanin and unassigned skykanin May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant