Skip to content

Commit 5104b01

Browse files
committed
Update doc/enemies.adoc
1 parent 7e3cc3a commit 5104b01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/enemies.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
Enemies
22
-------
33

4+
image:Bildschirmfoto 2016-06-26 um 15.31.42.png[alt=""]
5+
46
In the original game the shape of the "enemies" are defined in a large class and they are created in waves. For this tutorial we keep it simpler. We have some pre-defined enemy-arrangements that repeat themselves.
57

68
Let's first introduce a new type `Enemy`:
79

810
{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/enemies/src/Hexagon.elm", lines="26:30", language="elm" %}{% endcodesnippet %}
911

1012

13+
1114
* radius: the distance of the enemies to the center
1215
* parts: a list of true/false that indicate where the enemy has a "hole"
1316

0 commit comments

Comments
 (0)