Skip to content

Instantly share code, notes, and snippets.

View notintricate's full-sized avatar

nerifuture notintricate

View GitHub Profile
@notintricate
notintricate / sequence.lua
Created June 5, 2012 13:17
sequence playback
-- access to the scene objects
local scene = getCurrentScene()
-- define keyboard input
local inputManager = getInputManager()
local keyboard = Keyboard(inputManager:getDevice(TIINPUT_KEYBOARDDEVICE))
-- dynamically create the texture objects for image sequence
local Textures = {}
material tv/frame
{
technique
{
pass
{
ambient 0.215686 0.215686 0.215686
diffuse 0.215686 0.215686 0.215686 1
specular 0.172549 0.172549 0.172549 70
emissive 0 0 0