Basic Renderer

* Adds Tiled map JSON rendering
* TODO Cleanup & Organization
This commit is contained in:
Indrajith K L
2021-08-01 02:26:00 +05:30
parent 4cd16130dc
commit b73889da9f
8 changed files with 244 additions and 0 deletions

22
scratch.md Normal file
View File

@@ -0,0 +1,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)
```