mnml/client/src/scenes/home.news.js
2019-03-05 14:52:59 +10:00

25 lines
577 B
JavaScript

const Phaser = require('phaser');
const { POSITIONS: { MENU_MAIN }, TEXT } = require('./constants');
const X = MENU_MAIN.x();
const Y = MENU_MAIN.y();
const WIDTH = MENU_MAIN.width();
const HEIGHT = MENU_MAIN.height();
class HomeNews extends Phaser.Scene {
constructor() {
super({ key: 'HomeNews' });
}
create() {
this.add.bitmapText(X, Y, 'gothic', 'News Scene', 20);
this.add.bitmapText(X, Y + HEIGHT * 0.1, 'gothic', 'some other stuff here', 20);
}
cleanUp() {
this.scene.remove();
}
}
module.exports = HomeNews;