This file contains hidden or 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
{ | |
"pot": true, | |
"paddingX": 2, | |
"paddingY": 2, | |
"bleed": true, | |
"edgePadding": true, | |
"duplicatePadding": false, | |
"rotation": false, | |
"minWidth": 16, | |
"minHeight": 16, |
This file contains hidden or 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
{ | |
"com.badlogic.gdx.graphics.g2d.BitmapFont": { | |
"default-font": { | |
"file": "default.fnt" | |
} | |
}, | |
"com.badlogic.gdx.graphics.Color": { | |
"green": { | |
"a": 1, | |
"b": 0, |
This file contains hidden or 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
if (![].includes) { | |
Array.prototype.includes = function(searchElement /*, fromIndex*/ ) { | |
'use strict'; | |
var O = Object(this); | |
var len = parseInt(O.length) || 0; | |
if (len === 0) { | |
return false; | |
} | |
var n = parseInt(arguments[1]) || 0; | |
var k; |
This file contains hidden or 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
hex = {} | |
hex.centerX = 200 | |
hex.centerY = 200 | |
hex.size = 100 | |
function love.draw() | |
love.graphics.setColor({255,255,255}) | |
local lastX = nil | |
local lastY = nil | |
for i=0,6 do | |
local angle = 2 * math.pi / 6 * (i + 0.5) |