constant rocket plume

This commit is contained in:
Donald Ball 2025-11-20 22:53:33 -05:00
parent 7eee00d7ea
commit e2f02985d3
2 changed files with 28 additions and 1 deletions

View file

@ -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