/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 01:11:27 UTC
  • Revision ID: josh@9ix.org-20130626011127-7e7z5ed0r0xmtva3
show planet labels, get better 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'
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
 
72
74
                                    x = planet.x,
73
75
                                    y = planet.y,
74
76
                                    rotation = planet.rotation,
75
 
                                    goods = planet.goods
 
77
                                    goods = planet.goods,
 
78
                                    name = planet.name
76
79
                                 })
77
80
                 end
78
81
 
101
104
              end
102
105
 
103
106
              self:add(the.planets)
 
107
              self:add(the.planetLabels)
104
108
 
105
109
              self:add(the.player)
106
110
              self:add(the.player.thrust)