Deleted Fanscript/Syntax.md
commited
commit
ea0c1d5106a363f92ba36994c8d53ea94a6d09ec
... | ... | @@ -1,42 +0,0 @@ |
1 | Ever wondered how Fanscript would look in text format? Well, you can see all references in this directory! |
|
2 | ||
3 | Keep in mind that this is a Work-In-Progress project and that all codes you see will not work if you try to write it in say Unity's C#. |
|
4 | ||
5 | ## Examples |
|
6 | Values consist of: |
|
7 | ||
8 | ```coffeescript |
|
9 | Number Age = 10 |
|
10 | Vector Position = (10, 1.51, 5) |
|
11 | Rotation Angle = {0, 90, 0} |
|
12 | Truth Hit = True |
|
13 | Object Player = MyBlocks.Player |
|
14 | ``` |
|
15 | ||
16 | For the constraints, it'll be the same inside Fancade: |
|
17 | ||
18 | ```coffeescript |
|
19 | PlaySensor() { |
|
20 | Constraint const = Physics.AddConstraint(base, part, pivot) |
|
21 | Physics.AngularLimits(const, (0, 0, 1), (0, 0, 0)) |
|
22 | Physics.AngularMotor(const, (0, 0, 90), (0, 0, 100)) |
|
23 | } |
|
24 | ``` |
|
25 | ||
26 | In total we have 7 datatypes that includes lists. |
|
27 | ||
28 | Talking about lists here is how you do them in text format: |
|
29 | ||
30 | ```coffeescript |
|
31 | # set a list variable |
|
32 | List<Vector>[0] Positions = (32.1, 5.51, -23.72) |
|
33 | ||
34 | # to access a list |
|
35 | Number.Inspect(List<Number>[2]) |
|
36 | ``` |
|
37 | ||
38 | Here is [[Martin Magni]]'s Shepherd game [[script | Shepherd]] turned into Fanscript. |
|
39 | ||
40 | # Links |
|
41 | - [[Fanscript/Syntax.md | Syntax]] |
|
42 | - [[Fanscript/Datatypes.md | Datatypes]] |
|
... | ... | \ No newline at end of file |