/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-26 00:45:08 UTC
  • Revision ID: josh@9ix.org-20130626004508-6in13i6vjpu77els
give planets names

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