workaround
@@ -11,6 +11,9 @@ class GrassTiler extends GameObject
11
11
12
12
draw(context)
13
13
{
14
if(this.ground_dark.width == 0 || this.ground_light.width == 0)
15
return;
16
14
17
let width = this.scene.real_size.x + this.ground_dark.width
15
18
let height = this.scene.real_size.y + this.ground_dark.height
16
19
let count = 0;
@@ -19,7 +22,7 @@ class GrassTiler extends GameObject
19
22
for(let y = 0; y < height; y += this.ground_light.height)
20
23
{
21
24
count++;
22
((count) %2 == 1? this.ground_dark : this.ground_light).draw(this.scene, 0, 0, this.ground_dark.width, this.ground_dark.height, x, y, this.ground_dark.width, this.ground_light.height, 0, 1)
25
((count) %2 == 1? this.ground_dark : this.ground_light).draw(this.scene, 0, 0, this.ground_dark.width, this.ground_dark.height, x - 32, y, this.ground_dark.width, this.ground_light.height, 0, 1)
23
26
}
24
27
25
28
count = x/64 % 2;
@@ -11,6 +11,9 @@ class GrassTiler extends GameObject11
11
12
draw(context)12
draw(context)13
{13
{14
if(this.ground_dark.width == 0 || this.ground_light.width == 0)15
return;16
14
let width = this.scene.real_size.x + this.ground_dark.width17
let width = this.scene.real_size.x + this.ground_dark.width15
let height = this.scene.real_size.y + this.ground_dark.height18
let height = this.scene.real_size.y + this.ground_dark.height16
let count = 0;19
let count = 0;@@ -19,7 +22,7 @@ class GrassTiler extends GameObject19
for(let y = 0; y < height; y += this.ground_light.height)22
for(let y = 0; y < height; y += this.ground_light.height)20
{23
{21
count++;24
count++;22
((count) %2 == 1? this.ground_dark : this.ground_light).draw(this.scene, 0, 0, this.ground_dark.width, this.ground_dark.height, x, y, this.ground_dark.width, this.ground_light.height, 0, 1)25
((count) %2 == 1? this.ground_dark : this.ground_light).draw(this.scene, 0, 0, this.ground_dark.width, this.ground_dark.height, x - 32, y, this.ground_dark.width, this.ground_light.height, 0, 1)23
}26
}24
27
25
count = x/64 % 2;28
count = x/64 % 2;