You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
81
81
@@ -87,7 +87,7 @@ The following function `makeEnemies` will create a `List(Form)` for every enemy:
87
87
88
88
Finally we add this function to our `view` function:
0 commit comments