@@ -4,7 +4,7 @@ function gameInit()
44
55 // fire
66 new ParticleEmitter (
7- vec2 ( - 5 , - 2 ) , 0 , // pos, angle
7+ vec2 ( - 5 , 0 ) , 0 , // pos, angle
88 2 , 0 , 200 , PI , // emitSize, emitTime, rate, cone
99 tile ( 0 ) , // tileInfo
1010 rgb ( 1 , .5 , .1 ) , rgb ( 1 , .1 , .1 ) , // colorStartA, colorStartB
@@ -16,7 +16,7 @@ function gameInit()
1616
1717 // smoke
1818 new ParticleEmitter (
19- vec2 ( 5 , - 2 ) , 0 , // pos, angle
19+ vec2 ( 5 , 0 ) , 0 , // pos, angle
2020 3 , 0 , 100 , PI , // emitSize, emitTime, rate, cone
2121 tile ( 0 ) , // tileInfo
2222 hsl ( 0 , 0 , 0 , .5 ) , hsl ( 0 , 0 , 1 , .5 ) , // colorStartA, colorStartB
@@ -31,16 +31,16 @@ function gameInit()
3131 vec2 ( ) , 0 , // pos, angle
3232 0 , 0 , 100 , PI , // emitSize, emitTime, rate, cone
3333 tile ( 0 ) , // tileInfo
34- rgb ( 1 , 1 , .5 ) , rgb ( 1 , .5 , .5 ) , // colorStartA, colorStartB
35- rgb ( 1 , 0 , 0 , 0 ) , rgb ( .5 , 0 , 1 , 0 ) , // colorEndA, colorEndB
36- .8 , .5 , .1 , .01 , 0 , // time, sizeStart, sizeEnd, speed, angleSpeed
37- .95 , 1 , .02 , PI , .1 , // damp, angleDamp, gravity, particleCone, fade
38- .3 , 0 , 1 , 0 // randomness, collide, additive, colorLinear
34+ rgb ( 1 , 1 , .3 , .2 ) , rgb ( 1 , .5 , .1 , .2 ) , // colorStartA, colorStartB
35+ rgb ( 1 , 0 , 0 , 0 ) , rgb ( .5 , 0 , 1 , 0 ) , // colorEndA, colorEndB
36+ 1 , 1 , 3 , .01 , 0 , // time, sizeStart, sizeEnd, speed, angleSpeed
37+ .95 , 1 , .02 , PI , .2 , // damp, angleDamp, gravity, particleCone, fade
38+ .3 , 0 , 1 , 0 // randomness, collide, additive, colorLinear
3939 ) ;
4040}
4141
4242function gameUpdate ( )
4343{
4444 // move comet emitter back and forth so it trails particles
45- cometEmitter . pos = vec2 ( sin ( time ) * 9 , 5 ) ;
46- }
45+ cometEmitter . pos = vec2 ( sin ( time ) * 9 , cos ( time ) - 5 ) ;
46+ }
0 commit comments