Add jquery and start implementing the scoreboard

This commit is contained in:
Aaron Mueller 2013-04-11 22:20:03 +02:00
parent 8c0ef31a97
commit 3dbd1847e5
3 changed files with 9612 additions and 0 deletions

View file

@ -60,6 +60,7 @@
}
</style>
<script type="text/javascript" src="lib/vendors/jquery-1.9.1.js"></script>
<script type="text/javascript" src="lib/impact/impact.js"></script>
<script type="text/javascript" src="lib/game/main.js"></script>
</head>

View file

@ -86,6 +86,11 @@
});
ScoreboardScreen = ig.Game.extend({
scoreoid: {
api_key: 'd1011f8f6776a10f7a5d87eaa86c43c8d2ffb9dc',
game_id: '642fc6c1e8',
response: 'json'
},
font: new ig.Font( 'media/04b03.font.png' ),
background: new ig.Image('media/stats_screen.png'),
@ -99,6 +104,15 @@
this.parent();
},
loadScores: function() {
$.post('https://www.scoreoid.com/api/getScores', this.scoreoid, function(data) {
console.log(data);
});
},
saveScore: function(username, score) {
},
draw: function() {
this.parent();
this.background.draw(0, 0);

9597
dev/lib/vendors/jquery-1.9.1.js vendored Normal file

File diff suppressed because it is too large Load diff