Skip to content

Instantly share code, notes, and snippets.

View slapsys's full-sized avatar

Aurimas Slapsys slapsys

View GitHub Profile
@slapsys
slapsys / Life.gd
Created October 9, 2018 19:11
Life
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 = []
@slapsys
slapsys / main.lua
Last active December 18, 2016 20:02
Simple planar graph generation in Love2d
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