Randomize explosion variance
This commit is contained in:
parent
b40e21afe7
commit
7f975fddc8
1 changed files with 2 additions and 2 deletions
|
@ -241,8 +241,8 @@ function GameScene:generateExplosion(px,py)
|
|||
GameScene.explosionObj = {angle=100, radius=100}
|
||||
GameScene.godsrayObj = {weight=0}
|
||||
|
||||
flux.to(GameScene.explosionObj, 0.5, {angle= 100, radius=1600}):ease("quintout"):after( GameScene.explosionObj, 0.5, { angle= 100, radius= 100 })
|
||||
flux.to(GameScene.godsrayObj, 0.5, {weight=100}):ease("quintout"):after( GameScene.godsrayObj, 0.5, { weight=1 })
|
||||
flux.to(GameScene.explosionObj, 0.5, {angle= GameScene:variance(100,90), radius=GameScene:variance(1600, 150)}):ease("quintout"):after( GameScene.explosionObj, 0.5, { angle= 100, radius= 100 })
|
||||
flux.to(GameScene.godsrayObj, 0.5, {weight=GameScene:variance(100,50)}):ease("quintout"):after( GameScene.godsrayObj, 0.5, { weight=1 })
|
||||
|
||||
eSystem:emit(32)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue