Created
March 15, 2016 20:24
-
-
Save deanputney/75290b881bf0bbeaaef1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"keys" : "1 =", | |
"is_exclusive" : true, | |
"prevent_repeat": true, | |
"on_keydown" : function() { | |
var g = addGameboy(); | |
var gl = gameboys.length | |
positionGameboy(g); | |
}, | |
"on_keyup" : function(e) { | |
} | |
}, | |
{ | |
"keys" : "1 -", | |
"is_exclusive" : true, | |
"prevent_repeat": true, | |
"on_keydown" : function() { | |
console.log('remove'); | |
var g = gameboys.pop() | |
scene.remove(g) | |
}, | |
"on_keyup" : function(e) { | |
} | |
}, | |
{ | |
"keys" : "1 0", | |
"is_exclusive" : true, | |
"prevent_repeat": true, | |
"on_keydown" : function() { | |
console.log('remove'); | |
while(gameboys.length > 0) { | |
var g = gameboys.pop() | |
scene.remove(g) | |
} | |
}, | |
"on_keyup" : function(e) { | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment