This commit is contained in:
Torsten 2024-12-23 15:46:37 +01:00
parent 35bd66f21f
commit 8ab76adbe6
146 changed files with 101 additions and 40 deletions

View file

@ -0,0 +1,10 @@
pixel positions on the screen use Vector2 coordinates
cell to world using Vector2
```
var cell_size:Vector2 = Vector2(50.0, 50.0)
# or: var cell_size := Vector2(50.0, 50.0)
func grid_to_world(cell):
return cell + cell_size + cell_size / 2
```