Skip to content

Instantly share code, notes, and snippets.

View MacroMachines's full-sized avatar

Nico Raftis MacroMachines

View GitHub Profile
@MacroMachines
MacroMachines / Starfields2.lua
Created August 4, 2017 15:40 — forked from Bri-G/Starfields2.lua
Starfields 3 - this one spins around a star matrix
-- StarfFields by Bri_G based on HTML by Seb Lee-Delisle
-- Rotating field around a central star matrtix
--[[ if require ~= nil then
require("loveCodea")
end --]]
function setup()
--
fov = 250
@MacroMachines
MacroMachines / Iso
Created July 19, 2017 07:17
Pathfinding on an 'infinite' isometric grid.
--# Main
function setup()
displayMode(FULLSCREEN)
Grid.init(64,32)
touches = 0 -- Number of touches
vx = 0; vy = 0 -- View position
-- Create some tiles using the class
goal = Tile(-10, 0, 'yellow')
start = Tile(0, 0, 'green')
@MacroMachines
MacroMachines / visualizer.py
Created July 10, 2017 10:12 — forked from tjb0607/visualizer.py
a 2D audio visualizer script for Blender 2.5+ (v0.3)
# To use this script, you must first change a few things.
# First, you'll want to change the filepath for the sound file.
# This is on line 76. Second, you might want to change the materials or the settings.
# To render this, you'll need to set the background color, enable Only Render on the display window, and render it with OpenGL (it's much faster and most optimal for 2D renders.)
# LICENSE = wtfpl
# VERSION = 0.3
import bpy
def makeMaterial(name, diffuse, alpha):
@MacroMachines
MacroMachines / gist:0c372df5c1934a88cfa0791d52dca155
Created December 28, 2016 06:25 — forked from aras-p/gist:783703
GLSL Bumped Specular
// Final for now...
// iPhone 3Gs: 5.9ms
#ifdef VERTEX
attribute vec4 a_position;
attribute vec2 a_uv;
attribute vec3 a_normal;
attribute vec4 a_tangent;
uniform mat4 u_mvp;