/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-25 21:47:47 UTC
  • Revision ID: josh@9ix.org-20130625214747-bqjfaktdqj76aq8o
game over timer & penalty

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
 
74
72
                                    x = planet.x,
75
73
                                    y = planet.y,
76
74
                                    rotation = planet.rotation,
77
 
                                    goods = planet.goods,
78
 
                                    name = planet.name
 
75
                                    goods = planet.goods
79
76
                                 })
80
77
                 end
81
78
 
104
101
              end
105
102
 
106
103
              self:add(the.planets)
107
 
              self:add(the.planetLabels)
108
104
 
109
105
              self:add(the.player)
110
106
              self:add(the.player.thrust)
186
182
                 self.console:watch('num rocks', '#the.rocks.sprites')
187
183
                 self.console:watch('num planets', '#the.planets.sprites')
188
184
                 self.console:watch('num enemies', 'the.enemies:count()')
189
 
                 self.console:watch('onPlanet', 'the.player.onPlanet')
190
185
                 --self.console:watch('drawTook', 'the.drawTook')
191
186
 
192
187
                 -- back off that dark overlay a bit