This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
export var boardWidth = 205 | |
export var boardHeight = 120 | |
export var rectSize = 4 | |
export var offset = 1 | |
export var timeLeft = 0 | |
export var timeStep = 0.01 | |
var board = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function love.load() | |
points = {} | |
hostPoints = {} | |
connections = {} | |
minDistance = 30 | |
maxDistance = 60 | |
-- Number of times for host point to try to place a point near it | |
hostTries = 3 | |
-- Maximum number of additional connections for newly placed point |