/traderous

To get this branch, use:
bzr branch /bzr/traderous

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-06-19 01:12:39 UTC
  • Revision ID: josh@9ix.org-20130619011239-l1h3rnhphkpg0vdk
bring back game over screen

Show diffs side-by-side

added added

removed removed

104
104
 
105
105
                     self:die()
106
106
                     self.thrust:die()
 
107
                  end
107
108
 
 
109
                  if not self.active then
108
110
                     the.over.visible = true
109
111
                     the.instructions.visible = true
110
 
                     the.app.view:updateScore()
111
 
 
112
 
                     local score = love.timer.getTime() - the.app.view.gameStart
113
 
                     if score > the.storage.data.highScore then
114
 
                        the.storage.data.highScore = score
115
 
                        the.storage:save()
116
 
 
117
 
                        the.highScore.text = string.format(
118
 
                           'High Score: %d:%02d', score / 60, score % 60
119
 
                        )
120
 
                     end
121
112
                  end
122
113
               end,
123
114
   buy = function(self, good, price)