mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Probable typo. Changed Vector(x, y) to Vector2(x, y)
This commit is contained in:
committed by
GitHub
parent
8274d9fb3f
commit
8032eca4d7
@@ -272,9 +272,9 @@ easily with dictionaries. Here's a simple battleship game example:
|
||||
var board = {}
|
||||
|
||||
func initialize():
|
||||
board[Vector(1, 1)] = SHIP
|
||||
board[Vector(1, 2)] = SHIP
|
||||
board[Vector(1, 3)] = SHIP
|
||||
board[Vector2(1, 1)] = SHIP
|
||||
board[Vector2(1, 2)] = SHIP
|
||||
board[Vector2(1, 3)] = SHIP
|
||||
|
||||
func missile(pos):
|
||||
if pos in board: # Something at that pos
|
||||
|
||||
Reference in New Issue
Block a user