Chrinkus / Next

A 2D game engine for future projects
1 stars 0 forks source link

Collision decision #13

Closed Chrinkus closed 8 years ago

Chrinkus commented 8 years ago

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.

Chrinkus commented 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.

Chrinkus commented 8 years ago

The MDN 2D collision detection page.

An axis-aligned example in a breakout game.

Chrinkus commented 8 years ago

Achieved global collision detection model. Currently all Obstacle items are scanned for collision. Next steps:

Chrinkus commented 8 years ago

Termination animation added. When triggered, animation plays through and returns "done" when complete, activating deletion. Next up is the broad-range scan.

Chrinkus commented 8 years ago

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.