/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-06-19 01:06:14 UTC
  • Revision ID: josh@9ix.org-20130619010614-j3rbcv1c0my2tw0f
enemy shields and death

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
                     self:die()
106
106
                     self.thrust:die()
107
 
                  end
108
107
 
109
 
                  if not self.active then
110
108
                     the.over.visible = true
111
109
                     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
112
121
                  end
113
122
               end,
114
123
   buy = function(self, good, price)