/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-05-05 01:58:04 UTC
  • Revision ID: josh@9ix.org-20130505015804-sfeg9pd9fxbtmgdg
enemy

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)