Updated Introduction (markdown)

bi0qaw 2017-11-16 22:18:31 +01:00
parent 30d9531001
commit ab99b45262

@ -4,9 +4,12 @@ There are two types of expressions in Biosphere2:
The usual workflow is that you first create a bunch of locations or vectors. In a second step you apply some transformation to them. And in a final step you do something with them. This is best shown by an example:
```
set {_circle::*} to circle at player with radius 1 and density 5 #creation step (create locations in the shape of a circle)
set {_bigcircle::*} to {_circle::*} scaled at player by 2 #transformation step (make circle 2 times larger)
show happy villager at {_bigcircle::*} #do something with your locations
# 1) creation step (create locations in the shape of a circle)
set {_circle::*} to circle at player with radius 1 and density 5
# 2) transformation step (make circle 2 times larger)
set {_bigcircle::*} to {_circle::*} scaled at player by 2
# 3) do something with your locations (not part of Biosphere2)
show happy villager at {_bigcircle::*}
```
The result looks like this: