Skip to content

Instantly share code, notes, and snippets.

@yetanotherportfolio
Created February 28, 2013 14:03
Show Gist options
  • Save yetanotherportfolio/5056950 to your computer and use it in GitHub Desktop.
Save yetanotherportfolio/5056950 to your computer and use it in GitHub Desktop.
var vuf = new VeryMicroFramework("idOfCanvas");
vuf.add('intro_screne', {
init: function()
{},
update: function(delta, time)
{},
draw: function(context, delta, time)
{},
destroy: function()
{},
});
vuf.addChild('intro_scene', 'play_button', {
foo: 'bar',
update: function(delta, time)
{
// this.parent == 'intro_scene'
this.parent.something();
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment