Files
chocomae/src/game/lib/screen_top_ui.js
T

23 lines
466 B
JavaScript

function ScreenTopUI() {
this.drawBG();
}
ScreenTopUI.prototype.drawBG = function() {
game.add.graphics()
.beginFill(0x303030, 1)
.drawRect(
0, 0,
game.world.width, ScreenTopUI.BG_HEIGHT
);
}
ScreenTopUI.prototype.makeBackButton = function(eventHandler) {
this.backButton = new BackButton(eventHandler);
}
ScreenTopUI.prototype.makeFullScreenButton = function() {
// this.fullscreenButton = new FullscreenButton();
}
ScreenTopUI.BG_HEIGHT = 60;