Skip to content

Commit 6f323ab

Browse files
author
gamingacct
committed
Update doc/collision_detection.adoc
1 parent 172e661 commit 6f323ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/collision_detection.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Collision Detection
22
-------------------
33

4-
We already introcuded a `isGameOver` function, but it returns always false.
4+
We already introduced a `isGameOver` function, but it returns always false.
55
The first and only rule for __game over__ in this game is that the game is over when the player collides with any enemy.
66

7-
We do a simple collision detection where we simplyfy the shape of the enemies to sectors.
7+
We program a simple collision detection where we simplify the shape of the enemies to sectors.
88

99
We assume that the player collides with an enemy if the player's angle is inside the segment of the enemey, if enemy's inner radius is smaller than the player's radius and if the enemy's outer radius is still
1010
larger than the player's radius:
@@ -21,8 +21,8 @@ Now we have a real game!
2121
== Small Gameplay Tweak
2222

2323
In the original game you are not able to rotate into an enemy sideways.
24-
Without any modification, the player would be game over in our game if he would rotate into an enemy.
24+
Without any modification, it is game over in our version of the game if The player rotates into an enemy.
2525
To prevent this we update the `updatePlayer` function.
26-
We do not update the player's angle, if he would collide with an enemy after rotation:
26+
We do not update the player's angle, as he would collide with an enemy after rotation:
2727

2828
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/collision/src/Hexagon.elm", lines="129:145" %}{% endcodesnippet %}

0 commit comments

Comments
 (0)