Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Add collisions #20

Merged
merged 6 commits into from
Mar 16, 2022
Merged

Add collisions #20

merged 6 commits into from
Mar 16, 2022

Conversation

jdno
Copy link
Owner

@jdno jdno commented Mar 16, 2022

The game now ends when two airplanes collide. When the game ends, it transitions back to the ready state so that a new game can be started.

Collision detection is implemented using simple rectangular bounding boxes. For this game, this method is reliable enough since airplanes cannot move faster than their own size in a frame. Meaning airplanes cannot glitch through other objects.

2022-03-16-collision-ends-game.mov

@jdno jdno self-assigned this Mar 16, 2022
@jdno jdno merged commit 28a645e into main Mar 16, 2022
@jdno jdno deleted the add-collisions branch March 16, 2022 12:25
@jdno jdno added the R-added Add a new feature to the release notes label Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
R-added Add a new feature to the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant