@@ -73,17 +73,17 @@ class BabylonEngine extends Engine {
7373 3 * Math . random ( ) * rnd [ Math . floor ( Math . random ( ) * 2 ) ] ,
7474 ] ;
7575
76- let circle ;
76+ let particle ;
7777 let filled ;
7878 if ( this . type === 'sprite' ) {
79- circle = new BABYLON . Sprite ( 'sprite' , spriteManager ) ;
80- circle . width = 64 ;
81- circle . height = 64 ;
82- circle . angle = Math . PI ;
83- circle . invertU = true ;
84- circle . position . x = - x ;
85- circle . position . z = - y ;
86- circle . position . y = - i ;
79+ particle = new BABYLON . Sprite ( 'sprite' , spriteManager ) ;
80+ particle . width = 64 ;
81+ particle . height = 64 ;
82+ particle . angle = Math . PI ;
83+ particle . invertU = true ;
84+ particle . position . x = - x ;
85+ particle . position . z = - y ;
86+ particle . position . y = - i ;
8787 } else {
8888 // Create circles by drawing lines in a 360 degree radius
8989 let points = [ ] ;
@@ -98,15 +98,15 @@ class BabylonEngine extends Engine {
9898 }
9999 circles [ size ] = points ;
100100 }
101- circle = BABYLON . MeshBuilder . CreateLines (
101+ particle = BABYLON . MeshBuilder . CreateLines (
102102 'circle' ,
103103 { points : points , updatable : false } ,
104104 this . scene
105105 ) ;
106- circle . color = new BABYLON . Color3 . White ( ) ;
107- circle . position . x = - x ;
108- circle . position . z = - y ;
109- circle . position . y = - i - 1 ;
106+ particle . color = new BABYLON . Color3 . White ( ) ;
107+ particle . position . x = - x ;
108+ particle . position . z = - y ;
109+ particle . position . y = - i - 1 ;
110110 if ( this . type === 'fill' ) {
111111 const mat = new BABYLON . StandardMaterial ( 'mat1' , this . scene ) ;
112112 mat . alpha = 1 ;
@@ -126,11 +126,11 @@ class BabylonEngine extends Engine {
126126 filled . position . x = - x ;
127127 filled . position . z = - y ;
128128 filled . position . y = - i ;
129- circle . color = new BABYLON . Color3 . Black ( ) ;
129+ particle . color = new BABYLON . Color3 . Black ( ) ;
130130 }
131131 }
132132
133- particles [ i ] = { x, y, size : size , dx, dy, el : [ circle , filled ] } ;
133+ particles [ i ] = { x, y, size : size , dx, dy, el : [ particle , filled ] } ;
134134 }
135135 this . particles = particles ;
136136 }
0 commit comments