/spacey

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-05-14 17:49:03 UTC
  • Revision ID: josh@9ix.org-20130514174903-790agtxqfvz8lnzv
player death

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                              x = self.x + self.width / 2,
55
55
                              y = self.y + self.height / 2,
56
56
                           }
 
57
                           the.app.view:add(b)
57
58
                           self.lastFired = love.timer.getTime()
58
59
                     end
59
60
                  end,
80
81
                        font = 25,
81
82
                        text = "Game Over" }
82
83
                     the.app.view:add(over)
83
 
 
84
 
                     --the.storage.data.highScore
85
 
                     local score = love.timer.getTime() - the.app.view.gameStart
86
 
                     if score > the.storage.data.highScore then
87
 
                        the.storage.data.highScore = score
88
 
                        the.storage:save()
89
 
 
90
 
                        the.highScore.text = string.format(
91
 
                           'High Score: %d:%02d', score / 60, score % 60
92
 
                        )
93
 
                     end
94
84
                  end
95
85
               end
96
86
}
 
 
b'\\ No newline at end of file'