...
This commit is contained in:
parent
1e22d28754
commit
6b926d3afe
126 changed files with 128562 additions and 104297 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