/traderous

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-06-30 21:40:01 UTC
  • Revision ID: josh@9ix.org-20130630214001-qb2ykjjrolqm1mzx
recenter mouse on respawn

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
require 'shield'
22
22
require 'pause_view'
23
23
require 'game_over'
 
24
require 'names'
24
25
 
25
26
util = {
26
27
   signOf = function(value)
44
45
              the.bullets = Group:new()
45
46
              the.interface = Group:new()
46
47
              the.planets = Group:new()
 
48
              the.planetLabels = Group:new()
47
49
              the.indicators = Group:new()
48
50
              the.enemies = Group:new()
49
51
 
102
104
              end
103
105
 
104
106
              self:add(the.planets)
 
107
              self:add(the.planetLabels)
105
108
 
106
109
              self:add(the.player)
107
110
              self:add(the.player.thrust)
183
186
                 self.console:watch('num rocks', '#the.rocks.sprites')
184
187
                 self.console:watch('num planets', '#the.planets.sprites')
185
188
                 self.console:watch('num enemies', 'the.enemies:count()')
 
189
                 self.console:watch('onPlanet', 'the.player.onPlanet')
186
190
                 --self.console:watch('drawTook', 'the.drawTook')
187
191
 
188
192
                 -- back off that dark overlay a bit