Closed Chrinkus closed 8 years ago
Removing this from V1.1 as this is a huge milestone in itself. Topics for research: Axis-aligned bounding boxes, Quad-tree & Spacial hash collision models.
The MDN 2D collision detection page.
An axis-aligned example in a breakout game.
Achieved global collision detection model. Currently all Obstacle items are scanned for collision. Next steps:
Termination animation added. When triggered, animation plays through and returns "done" when complete, activating deletion. Next up is the broad-range scan.
The broad range scan requires a great deal of work and as I'll be working with a relatively small game space, the current model will suffice for now. The current collision needs are satisfied, thus closing this issue.
Provide a system to detect other objects in gamespace. Prevent and allow passage intentionally, both to player and to projectile. Design an enclosed space with various obstacles to navigate.