PHP Classes

File: contents/apps/t-rex/src/js/game.js

Recommend this page to a friend!
  Classes of Subin Siby   Lobby   contents/apps/t-rex/src/js/game.js   Download  
File: contents/apps/t-rex/src/js/game.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lobby
Web OS to install and run Web applications
Author: By
Last change:
Date: 7 years ago
Size: 574 bytes
 

Contents

Class file image Download
$.extend(lobby.app,{highScore:0,init:function(){this.ar("top-score",{},function(score){lobby.app.highScore=parseInt(score);});new Runner("#game");this.loadScores();},loadScores:function(){this.ar("scores",{"type":"local"},function(scores){$("#highscores #local .scores").html(scores);});this.ar("scores",{"type":"online"},function(scores){$("#highscores #online .scores").html(scores);});},newHighScore:function(score){var score=Number(score).toString();this.ar("save-score",{"score":score},function(){lobby.app.loadScores();});}});lobby.load(function(){lobby.app.init();});