fix drawing image based on the element in SIRT, baseMenu simplification
@@ -53,10 +53,13 @@ class SimpleImagesRenderTween extends GameObject
53
53
{
54
54
let context = this;
55
55
this.imageDataPerRequest.forEach(arr => arr.data.forEach(e =>
56
context.scene.game.images.fruit.draw(context.scene,
56
e.image.draw(
57
context.scene,
57
58
e.position.x, e.position.y,
58
59
e.image.width * e.size.x, game.images.fruit.height * e.size.y,
59
0, 0, 0, 1, e.subImage)));
60
0, 0, 0, 1, e.subImage
61
)
62
));
60
63
}
61
64
62
65
createTween (context, currentRequest)
@@ -53,10 +53,13 @@ class SimpleImagesRenderTween extends GameObject53
{53
{54
let context = this;54
let context = this;55
this.imageDataPerRequest.forEach(arr => arr.data.forEach(e =>55
this.imageDataPerRequest.forEach(arr => arr.data.forEach(e =>56
context.scene.game.images.fruit.draw(context.scene,56
e.image.draw(57
context.scene,57
e.position.x, e.position.y,58
e.position.x, e.position.y,58
e.image.width * e.size.x, game.images.fruit.height * e.size.y,59
e.image.width * e.size.x, game.images.fruit.height * e.size.y,59
0, 0, 0, 1, e.subImage)));60
0, 0, 0, 1, e.subImage61
)62
));60
}63
}61
64
62
createTween (context, currentRequest)65
createTween (context, currentRequest)