/traderous

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

« back to all changes in this revision

Viewing changes to planet.lua

  • Committer: Josh C
  • Date: 2013-06-30 14:59:35 UTC
  • Revision ID: josh@9ix.org-20130630145935-y34o51cg3lsom5bg
"safe" zone on planets - no new enemies will track you if you're there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                 if pvec:len2() < hw ^ 2 then
73
73
                    self.label.visible = true
74
74
                    self.keyLabel.visible = true
 
75
                    the.player.onPlanet = self
75
76
 
76
77
                    if the.keys:justPressed('l') then
77
78
                       the.player.velocity = {x=0, y=0}
92
93
                 else
93
94
                    self.label.visible = false
94
95
                    self.keyLabel.visible = false
 
96
                    if the.player.onPlanet == self then
 
97
                       the.player.onPlanet = false
 
98
                    end
95
99
                 end
96
100
              end,
97
101
   onEndFrame = function (self)