Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Created March 27, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekelokorpi/e7a85c6271fac3fbd597a2bb6b36e5cb to your computer and use it in GitHub Desktop.
Save ekelokorpi/e7a85c6271fac3fbd597a2bb6b36e5cb to your computer and use it in GitHub Desktop.
game.createScene('Main', {
init: function() {
this.gameMusic();
},
gameMusic: function() {
var music = new game.Music('music.m4a');
music.play();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment