1- import { Container , Graphics , HTMLText } from "pixi.js" ;
1+ import { Container , Graphics , HTMLText , Sprite } from "pixi.js" ;
22import { HEIGHT , TEXT_FONT , theme , WIDTH } from "../constants" ;
33import GameNode from "./GameNode" ;
44import { inputs } from "../inputs" ;
@@ -22,14 +22,14 @@ export default class Menu extends GameNode {
2222 levelSelect = new Container ( ) ;
2323 background : Background ;
2424
25- constructor ( background : Background ) {
25+ constructor ( background : Background , ministryLogo : any ) {
2626 super ( ) ;
2727 this . background = background ;
2828 this . view . position . x = WIDTH / 2 ;
2929 this . view . position . y = HEIGHT / 2 ;
3030
3131 const boxHeight = 900 ;
32- const boxWidth = 1500 ;
32+ const boxWidth = 1400 ;
3333 this . view . addChild (
3434 container (
3535 new Graphics ( ) . roundRect (
@@ -105,6 +105,12 @@ export default class Menu extends GameNode {
105105 . fill ( theme . colors . primary ) ;
106106 this . levelSelect . addChild ( leftArrow ) ;
107107 this . levelSelect . addChild ( rightArrow ) ;
108+
109+ const logo = new Sprite ( ministryLogo ) ;
110+ logo . anchor = { x : 0 , y : 1 } ;
111+ logo . position = { x : - WIDTH / 2 , y : HEIGHT / 2 } ;
112+ logo . scale = 0.3 ;
113+ this . view . addChild ( logo ) ;
108114 }
109115
110116 toggleNumPlayers ( ) {
0 commit comments