ภาพรวมของ 3 Main methods
#HelloGameDev #HelloErmine #HelloWorld2021
สรุปภาพรวมการใช้งานของ 3 Main methods
let item;
class GameScene extends Phaser.Scene{
constructor(test){
super({
key : 'GameScene'
});
}
preload(){
this.load.image('item', './images/egg.png');
}
create(){
item = this.physics.add.image(400, 300, 'item');
}
update(){
item.setVelocityX(100);
}
}
Last updated
Was this helpful?