Skip to content

Commit

Permalink
added frogger stuff2
Browse files Browse the repository at this point in the history
  • Loading branch information
abrieff committed Apr 14, 2013
1 parent 64af9ea commit a3ce849
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added frogger/assets/dead_frog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frogger/assets/frogger_sprites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frogger/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ function game_over(){
game_over_count++;
send_data = {"game_title":"frogger", "username":name, "score":score}
jQuery.ajax({
url: <Url of the action>,
url: "http://tuftsdev.github.io/WebProgramming/assignments/lab1.html",
type: "POST",
data: {highscores: JSON.stringify(send_data)},
dataType: "json",
beforeSend: function(x) {
if (x && x.overrideMimeType) {
x.overrideMimeType("application/j-son;charset=UTF-8");
}
});
}});
if (score > highscore){
highscore = score;
}
Expand Down
4 changes: 2 additions & 2 deletions frogger/game.js~
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ function game_over(){
game_over_count++;
send_data = {"game_title":"frogger", "username":name, "score":score}
jQuery.ajax({
url: <Url of the action>,
url: "http://tuftsdev.github.io/WebProgramming/assignments/lab1.html",
type: "POST",
data: {highscores: JSON.stringify(send_data)},
dataType: "json",
beforeSend: function(x) {
if (x && x.overrideMimeType) {
x.overrideMimeType("application/j-son;charset=UTF-8");
}
},
});
if (score > highscore){
highscore = score;
}
Expand Down

0 comments on commit a3ce849

Please sign in to comment.