/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 01:05:32 UTC
  • Revision ID: josh@9ix.org-20130505010532-905cpj0k6o7kpm02
ship graphic.  point it in the direction of movement.

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)
38
36
                  end,
39
37
   onUpdate = function(self)
40
38
                 self.rotation = math.atan2(self.velocity.y, self.velocity.x)