移相器JS和Apache Cordova绿色矩形错误

时间:2019-03-19 21:36:15

标签: ios xcode cordova phaser-framework

我有一个可以正常工作的apk和正常文件,尽管我为科尔多瓦(Cordova)模拟了ios,但是还是出现了一个错误,即图像无法显示,并且绿色矩形是唯一出于某种原因显示的东西。

preload() {
    this.load.image('space', './imgs/spacegif.jpg');
    this.load.image('rocket', './imgs/rocket.png');
    this.load.image('alien', './imgs/alien.gif');
    this.load.image('asteroid', './imgs/asteroid.png');
    this.load.image('cargo', './imgs/cargo.png');
    this.load.image('hatchPanels', './imgs/hatchPanel.png');
    this.load.image('bullets', './imgs/laserBlasts.jpg');
    this.load.image('primus', './imgs/primus.png');
    this.load.image('hatchIcon', './imgs/hatchIcon.png');
    // ...
}

在其中预加载了图像,我什至尝试将资产添加到Xcode并通过该路径显示它们。我该怎么办?

0 个答案:

没有答案