Last active
September 3, 2015 19:56
-
-
Save Jorger/8864ad5cadf0c1025c40 to your computer and use it in GitHub Desktop.
Script Base, juegos The Brick Web
This file contains hidden or 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
var FPS = movement.BASE - movement.BASE * ((dataLCD.SPEED - 1) * movement.PERCENTAGE) / 100; | |
input.ENTER.press = function(event) | |
{ | |
//Tiempo en que se considerará que el botón está sostenido... | |
//0 no tendrá está propiedad... | |
this.timePress = 0.5; | |
}; | |
input.LEFT.press = function(event) | |
{ | |
this.timePress = 0.5; | |
}; | |
input.TOP.press = function(event) | |
{ | |
this.timePress = 0.5; | |
}; | |
input.RIGHT.press = function(event) | |
{ | |
this.timePress = 0.5; | |
}; | |
input.BOTTOM.press = function(event) | |
{ | |
this.timePress = 0.5; | |
}; | |
var render = function() | |
{ | |
//input.ENTER.sustained | |
//input.LEFT.sustained | |
//input.TOP.sustained | |
//input.RIGHT.sustained | |
//input.BOTTOM.sustained | |
if(movement.CUENTA >= FPS) | |
{ | |
} | |
movement.CUENTA++; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment