Inheritance: TXAScreen
Exemplo n.º 1
0
        public void NewGameState(GameState state)
        {
            //assert CurrentScreen is always MapScreen
            MapScreen ms = screenManager.CurrentScreen as MapScreen;

            ms.UpdateGameState(state);
        }
Exemplo n.º 2
0
 protected override void Draw(SpriteBatch batch)
 {
     if (Visible)
     {
         batch.Draw(Texture, Position, null, MapScreen.GetPlayerColor(PlayerId), Rotation, Origin, TXAGame.SCALE, SpriteEffects.None, 0f);
     }
 }