add engine burn
This commit is contained in:
parent
e2fe2499d4
commit
7eee00d7ea
3 changed files with 21 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ function actors.buildActors(game)
|
|||
for k, v in pairs(ship) do
|
||||
instance[k] = v
|
||||
end
|
||||
instance.engineSound = love.audio.newSource(instance.engineSound)
|
||||
instance.engineSound:setVolume(0)
|
||||
instance.engineSound:setLooping(true)
|
||||
setmetatable(instance, ships_mt)
|
||||
return instance
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue