Score formula
25 days ago
Apulia, Italy

Ok so saddogimmo dug trough the game's code and found the score's formula. The game runs at 50 FPS:

The bonus is calculated: 2000-floor(20*(CurrentFrames/TimeBorders)). If this results negative, the bonus is zero.

TimeBorders is the list of all maximum time/2 you can do on a level. Ex. on level 1 the maximum time is 4 seconds, so TimeBorders is 2.

Also, the seconds in-game get rounded to the nearest integer.

Score calculator: https://www.desmos.com/calculator/bf2usfk8bq

Bewerkt door de auteur 24 days ago
Apulia, Italy

The bonus formula I've provided here is a mathematical simplification of the source code, thus it is not the original; however, it yelds the exact same result. Here is the full code for the bonus score calculation:

private function calculateBonus() : void

{

var *loc1*:Number = NaN;

if(getCurrentTime() <= timeBorders[_parent._currentLevel - 1] * 2)

{

*loc1* = timeBorders[_parent._currentLevel - 1] / 50;

bonus = Math.floor((timeBorders[_parent._currentLevel - 1] * 2 - getCurrentTime()) / _loc1_ * 20);

}

else

{

bonus = 0;

}

}
Bewerkt door de auteur 24 days ago
Game statistieken
Volgers
8
Runs
224
Spelers
22
Laatste threads
Geplaatst 23 days ago
0 antwoorden
Geplaatst 24 days ago
3 antwoorden
Geplaatst 24 days ago
1 antwoord
Geplaatst 25 days ago
1 antwoord
Geplaatst 2 years ago
0 antwoorden
Moderators