Merge branch 'master' of https://github.com/FajsiEx/exceed
This commit is contained in:
commit
5c3ce4a227
Binary file not shown.
|
@ -35,6 +35,10 @@ local outroTransitionParticleSmallYellowRingAX = 1080;
|
|||
local outroTransitionParticleSmallYellowRingBX = 1080;
|
||||
local outroTransitionParticleSmallYellowRingCX = 1080;
|
||||
|
||||
|
||||
game.LoadSkinSample('gameplay/track_comp.wav');
|
||||
local compSfxPlayed = false;
|
||||
|
||||
local tickTransitions = function (deltaTime)
|
||||
if outroTransitionScale < 1 then
|
||||
outroTransitionScale = outroTransitionScale + deltaTime / 3 -- transition should last for that time in seconds
|
||||
|
@ -166,8 +170,16 @@ local drawParticles = function ()
|
|||
);
|
||||
end
|
||||
|
||||
local handleSounds = function ()
|
||||
if not compSfxPlayed then
|
||||
compSfxPlayed = true;
|
||||
game.PlaySample('gameplay/track_comp.wav');
|
||||
end
|
||||
end
|
||||
|
||||
local render = function (deltaTime)
|
||||
tickTransitions(deltaTime);
|
||||
handleSounds();
|
||||
gfx.GlobalAlpha(outroTransitionGlobalAlpha);
|
||||
|
||||
gfx.BeginPath();
|
||||
|
|
Loading…
Reference in New Issue