...
This commit is contained in:
parent
462257119f
commit
685bee6e6a
7 changed files with 59 additions and 27 deletions
|
|
@ -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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue