Skip to content

Commit

Permalink
Now online leaderboard available
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo committed Aug 31, 2018
1 parent ddd7c2c commit 4c79fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class StoryModeGameSession extends GameSession {
* The total number of available levels in the story mode.
*/
public static final int MAX_LEVEL = 17;
private static final int FULL_LIFE = 1;
private static final int FULL_LIFE = 5;
private static final int SCORE_TO_GET_LIFE = 100000;
private int currentLevel;
private int lives;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private boolean save(final LeaderboardRecord record, final String tableName) {
this.manager.createConnection();
final String query = "INSERT INTO " + tableName + " (Name, Score, Stage) " +
"VALUES ('" + record.getName() + "', " + record.getScore() + ", " +
record.getStage();
record.getStage() + ")";
this.manager.insertRecords(query);
return true;
} catch (SQLException e) {
Expand Down

0 comments on commit 4c79fd9

Please sign in to comment.