Skip to content

Instantly share code, notes, and snippets.

@Jorger
Last active September 3, 2015 19:56
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 Jorger/8864ad5cadf0c1025c40 to your computer and use it in GitHub Desktop.
Save Jorger/8864ad5cadf0c1025c40 to your computer and use it in GitHub Desktop.
Script Base, juegos The Brick Web
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