This commit is contained in:
Torsten 2024-02-12 08:55:09 +01:00
parent 462257119f
commit 685bee6e6a
7 changed files with 59 additions and 27 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
```