/ld27

To get this branch, use:
bzr branch /bzr/ld27

« back to all changes in this revision

Viewing changes to zoetrope/sprites/emitter.lua

  • Committer: Josh C
  • Date: 2014-07-03 14:41:57 UTC
  • Revision ID: josh@9ix.org-20140703144157-xydxt62xzcdq6bdk
cluke009 zoetrope + my spritebatch changes

Show diffs side-by-side

added added

removed removed

180
180
        --              nothing
181
181
 
182
182
        extinguish = function (self)
183
 
                for _, spr in pairs(self.sprites) do
 
183
                for _, spr in self:members() do
184
184
                        spr:die()
185
185
                end
186
186
 
208
208
        end,
209
209
 
210
210
        __tostring = function (self)
211
 
                local result = 'Emitter (x: ' .. self.x .. ', y: ' .. self.y ..
212
 
                                           ', w: ' .. self.width .. ', h: ' .. self.height .. ', '
 
211
                local result = 'Emitter (x: ' .. tostring(self.x) .. ', y: ' .. tostring(self.y) ..
 
212
                                           ', w: ' .. tostring(self.width) .. ', h: ' .. tostring(self.height) .. ', '
213
213
 
214
214
                if self.emitting then
215
 
                        result = result .. 'emitting with period ' .. self.period .. ', '
 
215
                        result = result .. 'emitting with period ' .. tostring(self.period) .. ', '
216
216
                else
217
217
                        result = result .. 'not emitting, '
218
218
                end