/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-05-16 02:07:23 UTC
  • Revision ID: josh@9ix.org-20130516020723-ntq1ydr2fczd9w5b
stick things into layers

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
              the.rockColliders = Group:new()
87
87
              the.bullets = Group:new()
 
88
              the.mirrors = Group:new()
 
89
              the.rocks = Group:new()
88
90
 
89
91
              the.bg = Tile:new{
90
92
                 image = 'data/stars3.png',
100
102
 
101
103
              --self:add(Enemy:new{x=400, y=300})
102
104
 
 
105
              self:add(the.bullets)
 
106
              self:add(the.rockColliders)
 
107
              self:add(the.mirrors)
 
108
              self:add(the.rocks)
 
109
 
103
110
              the.cursor = Cursor:new()
104
111
              self:add(the.cursor)
105
112
 
136
143
                        end
137
144
                    end
138
145
 
139
 
                    self:add(unseenRock)
 
146
                    the.rocks:add(unseenRock)
140
147
 
141
148
                    self.lastRock = love.timer.getTime()
142
149
                 end