24 lines
514 B
JavaScript
24 lines
514 B
JavaScript
const Phaser = require('phaser');
|
|
const { POSITIONS: { MENU_MAIN }, TEXT } = require('./constants');
|
|
|
|
const X = MENU_MAIN.x();
|
|
const Y = MENU_MAIN.y();
|
|
const HEIGHT = MENU_MAIN.height();
|
|
|
|
class HomeShop extends Phaser.Scene {
|
|
constructor() {
|
|
super({ key: 'HomeShop' });
|
|
}
|
|
|
|
create() {
|
|
this.add.text(X, Y, 'Shop Scene', TEXT.HEADER);
|
|
this.add.text(X, Y + HEIGHT * 0.1, 'rulul', TEXT.NORMAL);
|
|
}
|
|
|
|
cleanUp() {
|
|
this.scene.remove();
|
|
}
|
|
}
|
|
|
|
module.exports = HomeShop;
|