constant rocket plume
This commit is contained in:
parent
7eee00d7ea
commit
e2f02985d3
2 changed files with 28 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ local function initGame()
|
|||
sprite = love.graphics.newImage('resources/playerShip1_blue.png'),
|
||||
maxThrust = 200,
|
||||
engineSound = love.sound.newSoundData('resources/enginehum3.ogg'),
|
||||
rocketPlume = love.graphics.newImage('resources/sparkle_cloud.png'),
|
||||
},
|
||||
asteroids = {
|
||||
stages = {
|
||||
|
|
@ -100,6 +101,7 @@ local function update(actor, dt)
|
|||
end
|
||||
|
||||
function love.update(dt)
|
||||
state.ship.rocketPlume:update(dt)
|
||||
if state.controls.joystick ~= nil then
|
||||
state.ship.throttle = state.controls.joystick:getGamepadAxis('triggerright')
|
||||
if state.ship.throttle > 0 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue