const Phaser = require('phaser');
const { POSITIONS: { HOME_MAIN }, TEXT } = require('./constants');

const X = HOME_MAIN.x();
const Y = HOME_MAIN.y();
const WIDTH = HOME_MAIN.width();
const HEIGHT = HOME_MAIN.height();

class HomeNews extends Phaser.Scene {
    constructor() {
        super({ key: 'HomeNews' });
    }

    create() {
        this.add.text(X, Y, 'News Scene', TEXT.HEADER);
        this.add.text(X, Y + HEIGHT * 0.1, 'some other stuff here', TEXT.NORMAL);
    }

    cleanUp() {
        this.scene.remove();
    }
}

module.exports = HomeNews;
