3
image = 'data/laser.png',
5
self.velocity = vector.new(800, 0) -- veclocity 800
6
self.velocity:rotate_inplace(self.rotation)
8
self.createdAt = love.timer.getTime()
10
onUpdate = function(self, dt)
11
if love.timer.getTime() - self.createdAt > 2 then
12
-- TODO: reuse these (see factory idea above)
14
the.app.view:remove(self)
b'\\ No newline at end of file'