Skip to content

Commit c73d279

Browse files
committed
update line numbers
1 parent 03a4720 commit c73d279

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/enemies.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Let's first introduce a new type `Enemy`:
1313
* radius: the distance of the enemies to the center
1414
* parts: a list of true/false that indicate where the enemy has a "hole"
1515
16-
We add a list of enemies to the game state as well as `enemySpeed` which will increase over time.
16+
We add a list of enemies to the game state as well as `enemySpeed` which will increase over time.
1717

1818
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="31:45", language="elm" %}{% endcodesnippet %}
1919

@@ -61,7 +61,7 @@ The enemies should repeat whenever `enemyProgress` exceeds this `maxDistance`. Y
6161

6262
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="150:152", language="elm" %}{% endcodesnippet %}
6363

64-
`offsetForEnemy` represents the distance for a single enemy.
64+
`offsetForEnemy` represents the distance for a single enemy.
6565

6666
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="147:148", language="elm" %}{% endcodesnippet %}
6767

@@ -75,7 +75,7 @@ First we need a function to create a trapezoid:
7575

7676
We will now use this function to create a trapezoid for every occupied part of any enemy:
7777

78-
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="250:263" %}{% endcodesnippet %}
78+
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="250:262" %}{% endcodesnippet %}
7979

8080
This function returns a `Form` that contains a group of these trapezoids. Notice how we filter out parts by creating a tuple of `(index:Int, part:Bool)`, removing parts where part is `False` and sending the index to `makeEnemyPart`. Pure functional magic:
8181

@@ -87,7 +87,7 @@ The following function `makeEnemies` will create a `List(Form)` for every enemy:
8787

8888
Finally we add this function to our `view` function:
8989

90-
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="320:339", language="elm" %}{% endcodesnippet %}
90+
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="320:338", language="elm" %}{% endcodesnippet %}
9191

9292

9393

0 commit comments

Comments
 (0)