#HelloGameDev #HelloErmine #HelloWorld2021
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 3 years ago
Was this helpful?