Example #1
0
 public PlayerInfoFrame(GameState PlayingState)
 {
     playingState = PlayingState;
     infoBlocks = new List<PlayerInfoBlock>();
     for (int i = 0; i < 4; i++)
     {
         var block = new PlayerInfoBlock(null, this);
         block.Location = new Vector2((PlayerInfoBlock.BlockSize.Width * i) + 28, FramePosition.Y + 5);
         infoBlocks.Add(block);
     }
 }
Example #2
0
        public override void Load()
        {
            OwningState = (GameState)Moxy.StateManager["Game"];

            StatusBar.UI = this;
            StatusBar.Pixel = new Texture2D (Moxy.Graphics, 1, 1, false, SurfaceFormat.Color);
            StatusBar.Pixel.SetData (new [] { Color.White });

            getReadyTexture = Moxy.ContentManager.Load<Texture2D> ("Interface//getready");
            font = Moxy.ContentManager.Load<SpriteFont> ("Fonts//spookyfont");
            scorefont = Moxy.ContentManager.Load<SpriteFont> ("Fonts//scorefont");

            EnergyBar.UI = this;
            StatusBars = new List<StatusBar> ();
            ActivePlayers = new List<Player> ();
        }
Example #3
0
 public override void Load()
 {
     activeGameState = (GameState) Moxy.StateManager["Game"];
     playerInfo = new PlayerInfoFrame(activeGameState);
 }