grades
This commit is contained in:
parent
52a8b7c78e
commit
dfdbe9e48e
11
game.lua
11
game.lua
|
@ -344,6 +344,17 @@ function Game:draw()
|
|||
love.graphics.printf("You succeeded at scaling up the Tower of Scale, and displayed the mastery over the power scaling!", 8,80,232,"center")
|
||||
love.graphics.printf("SCORE:"..player_power_to_string(self.player_power),0,128,248,"center")
|
||||
|
||||
if self.player_power >= 10000000000 then
|
||||
love.graphics.printf("GRADE: S",0,144,248,"center")
|
||||
elseif self.player_power >= 1000000000 then
|
||||
love.graphics.printf("GRADE: A",0,144,248,"center")
|
||||
elseif self.player_power >= 100000000 then
|
||||
love.graphics.printf("GRADE: B",0,144,248,"center")
|
||||
elseif self.player_power >= 10000000 then
|
||||
love.graphics.printf("GRADE: C",0,144,248,"center")
|
||||
else
|
||||
love.graphics.printf("GRADE: D",0,144,248,"center")
|
||||
end
|
||||
love.graphics.printf("Want to do better?\nPress Z to undo!", 0,200,248,"center")
|
||||
love.graphics.pop()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue