Updated Introduction (markdown)
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:
|
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)
|
# 1) 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)
|
set {_circle::*} to circle at player with radius 1 and density 5
|
||||||
show happy villager at {_bigcircle::*} #do something with your locations
|
# 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:
|
The result looks like this:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user