aboutsummaryrefslogtreecommitdiff
path: root/scratch.md
blob: 0eb82bf26c9c39123bfe58becc308f3f103ba3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Wren Scratch
### Matrix 
```wren
var matrix = [[1, 2, 3], [4, 5, 6]]
System.print(matrix[0][0])
for(layer in _layerData) {
    System.print(layer)
}
```

### Sprite Sheet Transform
```wren
_spriteSheet.transform({
            "srcX": 16*14,
            "srcY": 0,
            "srcW": 16,
            "srcH": 16,
            "scaleX": 2,
            "scaleY": 2
        }).draw(0,0)
```