forked from doublespeakgames/adarkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started scoring system, yet to be populated
- Loading branch information
Vermilingua
committed
Nov 1, 2013
1 parent
a196435
commit 3b3755c
Showing
8 changed files
with
173 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
☐ fix the NaN issue at the space screen | ||
☐ persuade michael to get everyone onboard with a big update | ||
☐ school (never gonna happen) | ||
☐ about page | ||
✔ drool over sublime text @done (13-10-31 22:33) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
var Score = { | ||
|
||
name: 'Score', | ||
|
||
options: {}, | ||
|
||
init: function(options) { | ||
this.options = $.extend(this.options, options); | ||
}, | ||
|
||
calculateScore: function() { | ||
var scoreUnadded = Prestige.saveStores(false); | ||
var fullScore = 0; | ||
fullScore = fullScore + scoreUnadded[0] * 1; | ||
fullScore = fullScore + scoreUnadded[1] * 1.5; | ||
fullScore = fullScore + scoreUnadded[2] * 1; | ||
fullScore = fullScore + scoreUnadded[3] * 2; | ||
fullScore = fullScore + scoreUnadded[4] * 2; | ||
fullScore = fullScore + scoreUnadded[5] * 3; | ||
fullScore = fullScore + scoreUnadded[6] * 3; | ||
fullScore = fullScore + scoreUnadded[7] * 2; | ||
fullScore = fullScore + scoreUnadded[8] * 2; | ||
fullScore = fullScore + scoreUnadded[9] * 2; | ||
fullScore = fullScore + scoreUnadded[10] * 2; | ||
fullScore = fullScore + scoreUnadded[11] * 1.5; | ||
fullScore = fullScore + scoreUnadded[12] * 1; | ||
fullScore = fullScore + scoreUnadded[13] * 1; | ||
fullScore = fullScore + scoreUnadded[14] * 10; | ||
fullScore = fullScore + scoreUnadded[15] * 30; | ||
fullScore = fullScore + scoreUnadded[16] * 50; | ||
fullScore = fullScore + scoreUnadded[17] * 100; | ||
fullScore = fullScore + scoreUnadded[18] * 150; | ||
fullScore = fullScore + scoreUnadded[19] * 150; | ||
fullScore = fullScore + scoreUnadded[20] * 3; | ||
fullScore = fullScore + scoreUnadded[21] * 3; | ||
fullScore = fullScore + scoreUnadded[22] * 5; | ||
fullScore = fullScore + scoreUnadded[23] * 4; | ||
fullScore = fullScore + $SM.get('stores["alien alloy"]') * 10; | ||
fullScore = fullScore + Ship.getMaxHull() * 50; | ||
return fullScore; | ||
}, | ||
|
||
saveScore: function() { | ||
var score = Score.calculateScore(); | ||
$SM.set('playStats.score',score); | ||
return score; | ||
}, | ||
|
||
totalScore: function() { | ||
var totScore = $SM.get('previous.score') + Score.saveScore(); //$SM.get('playStats.score'); | ||
if (!totScore) {totScore = $SM.get('playStats.score')}; | ||
return totScore; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters