Probable typo. Changed Vector(x, y) to Vector2(x, y)

This commit is contained in:
Profesor Tartelett
2018-06-03 13:02:52 +02:00
committed by GitHub
parent 8274d9fb3f
commit 8032eca4d7

View File

@@ -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