c
This commit is contained in:
@@ -78,15 +78,15 @@ function create() {
|
||||
if (!isMobile) {
|
||||
image = this.add.image(customWidth / 4, customHeight / 2, 'letter_img');
|
||||
image.setInteractive().setDepth(1).setScale(0.6);
|
||||
// letter_img = this.add.image(customWidth / 1.5, customHeight / 2, 'icon_img');
|
||||
// letter_img.setDepth().setScale(0.6);
|
||||
// this.add.text(customWidth / 1.6, customHeight / 1.25, data.icon_name, textStyle2);
|
||||
letter_img = this.add.image(customWidth / 1.5, customHeight / 2, 'icon_img');
|
||||
letter_img.setDepth().setScale(0.6);
|
||||
this.add.text(customWidth / 1.6, customHeight / 1.25, data.icon_name, textStyle2);
|
||||
} else {
|
||||
image = this.add.image(customWidth / 2.5, customHeight / 2.5, 'letter_img');
|
||||
image.setInteractive().setDepth(1).setScale(0.3);
|
||||
// letter_img = this.add.image(customWidth / 1.35, customHeight / 2 + 100, 'icon_img');
|
||||
// letter_img.setDepth().setScale(0.3);
|
||||
// this.add.text(customWidth / 2, customHeight / 1.3, data.icon_name, textStyle2);
|
||||
letter_img = this.add.image(customWidth / 1.35, customHeight / 2 + 100, 'icon_img');
|
||||
letter_img.setDepth().setScale(0.3);
|
||||
this.add.text(customWidth / 2, customHeight / 1.3, data.icon_name, textStyle2);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -133,11 +133,13 @@ function create() {
|
||||
function update() {}
|
||||
|
||||
function captureSnapshot(game) {
|
||||
snapshotButton.setVisible(false);
|
||||
game.renderer.snapshot((image) => {
|
||||
image.style.width = '160px';
|
||||
image.style.height = '120px';
|
||||
image.style.paddingLeft = '2px';
|
||||
document.body.appendChild(image);
|
||||
snapshotButton.setVisible(true);
|
||||
|
||||
// Download the snapshot as an image
|
||||
const link = document.createElement('a');
|
||||
|
||||
Reference in New Issue
Block a user