Quick sfx tweaks
This commit is contained in:
parent
ffc4855928
commit
d58bc2a71e
7
main.lua
7
main.lua
|
@ -32,6 +32,11 @@ function love.load ()
|
||||||
bounceSfx = love.audio.newSource( "art/sfx/bounce.wav", "static")
|
bounceSfx = love.audio.newSource( "art/sfx/bounce.wav", "static")
|
||||||
waveSfx = love.audio.newSource( "art/sfx/wave.wav", "static")
|
waveSfx = love.audio.newSource( "art/sfx/wave.wav", "static")
|
||||||
|
|
||||||
|
dashSfx:setVolume( .8 )
|
||||||
|
cpuDashSfx:setVolume( .8 )
|
||||||
|
bounceSfx:setVolume( .8 )
|
||||||
|
waveSfx:setVolume( .8 )
|
||||||
|
|
||||||
lifeText = love.graphics.newText(a_ttf, "Press Enter")
|
lifeText = love.graphics.newText(a_ttf, "Press Enter")
|
||||||
waveText = love.graphics.newText(a_ttf, "")
|
waveText = love.graphics.newText(a_ttf, "")
|
||||||
bigText = love.graphics.newText(a_ttf, "Bats & Pray")
|
bigText = love.graphics.newText(a_ttf, "Bats & Pray")
|
||||||
|
@ -65,7 +70,6 @@ function love.draw ()
|
||||||
love.graphics.scale( vScale, vScale )
|
love.graphics.scale( vScale, vScale )
|
||||||
end
|
end
|
||||||
love.graphics.draw(bg, 0, 0)
|
love.graphics.draw(bg, 0, 0)
|
||||||
love.graphics.draw(bg, 512, 0)
|
|
||||||
|
|
||||||
love.graphics.draw(waveText, 200, 340, 0, 2, 2)
|
love.graphics.draw(waveText, 200, 340, 0, 2, 2)
|
||||||
love.graphics.draw(lifeText, 125, 355, 0, 1.3, 1.3)
|
love.graphics.draw(lifeText, 125, 355, 0, 1.3, 1.3)
|
||||||
|
@ -649,6 +653,7 @@ function Flier:kill ( murderer )
|
||||||
else
|
else
|
||||||
sfx = love.audio.newSource( "art/sfx/lose.wav", "static")
|
sfx = love.audio.newSource( "art/sfx/lose.wav", "static")
|
||||||
end
|
end
|
||||||
|
sfx:setVolume( .8 )
|
||||||
sfx:play()
|
sfx:play()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue