Skip to content

Instantly share code, notes, and snippets.

@CodeaLuis
CodeaLuis / gist:6707611
Created September 25, 2013 23:21
TOUCHPLAY
--------------------------------------------
Buttons = class()
function Buttons:init(x,y,txt,funct,Mode,l,h)
self.x = x
self.y = y
@CodeaLuis
CodeaLuis / gist:6707708
Created September 25, 2013 23:33
stuff
--------------------------------------------
Buttons = class()
function Buttons:init(x,y,txt,funct,Mode,l,h)
self.x = x
self.y = y
@CodeaLuis
CodeaLuis / gist:6745793
Created September 28, 2013 19:45
Sounds
---------------------------------
--Sound class
--clase importada 
---------------------------------
Sound = class()
function Sound:init()
displayMode(FULLSCREEN)
function setup()
xc=WIDTH/2
yc=HEIGHT/2
tiempo = 0
function setup()
displayMode(FULLSCREEN)
tiras = 13
chanels = 10
piano = {}
touches = {}
estrellas = {}
toques = false
var = 0
@CodeaLuis
CodeaLuis / gist:7423283
Created November 12, 2013 00:37
States, Scenes, changes
function setup()
Scene("WELCOME",firs_page)
Scene("GOO BYE",second_page)
Scene.parameter()
end
function draw()
background(0)
Scene.draw()
--# ABCMusic
--ABCMusic class by Fred Bogg
-- v 0.4 beta
-- tuplets work
function ?:init(x)
-- you can accept and set parameters here
self.EffectAlpha = 135
tween(4,self,{EffectAlpha = 0})
end
function ?:draw()
-->APPLY THE SIMPLE EFFECT
fill(5,5,5,self.EffectAlpha)
@CodeaLuis
CodeaLuis / 1aTabOrder
Created November 17, 2013 18:02
Codea Project Gist Created with AutoGist
AutoGist Tab Order Version: 2.2.8
------------------------------
This file should not be included in the Codea project.
#Main
@CodeaLuis
CodeaLuis / 1aTabOrder
Created November 17, 2013 18:08
Codea Project Gist Created with AutoGist
AutoGist Tab Order Version: 2.2.8
------------------------------
This file should not be included in the Codea project.
#Main
#effects
#SecretodeUnicornio
#botones
#loadPictures
#viajeLuna