📅  最后修改于: 2022-03-11 14:55:07.354000             🧑  作者: Mango
function preload() {
this.load.image('sky', require("../assets/sky.png").default);
this.load.image('ground', require("../assets/platform.png").default);
this.load.image('star', require("../assets/star.png").default);
this.load.image('bomb', require("../assets/bomb.png").default);
this.load.spritesheet('dude',
require("../assets/dude.png").default,
{ frameWidth: 32, frameHeight: 48 });
}