/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-05 14:00:45 UTC
  • Revision ID: josh@9ix.org-20130505140045-o1dcza3m347rkx3i
targeting cursor (manual switch to start)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
                     self.acceleration.x = dx * 2
35
35
                     self.acceleration.y = dy * 2
 
36
 
 
37
                     --TODO: acceleration limit.  It should at least be proportional (not 16:9)
36
38
                  end,
37
39
   onUpdate = function(self)
38
40
                 self.rotation = math.atan2(self.velocity.y, self.velocity.x)