示例#1
0
 public GamePlayScreen()//ref ScreenManager sm)
 {
     //base.Initialize(ref sm);
     GameSession.StartNewSession(ref ScreenManager.contentMan);
     VisionHelper.Initialize();
     HUDHelper.Initialize();
 }
示例#2
0
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch sb = ScreenManager.spriteBatch;

            if (playerMoved)
            {
                VisionHelper.getVisibleSqrs(GameSession.curPlayer.tilePosition, GameSession.curPlayer.vision);
            }

            sb.Begin();
            HUDHelper.Draw(ref sb);
            MapEngine.Draw(sb);
            sb.End();

            // draw altitude tiles
            //if (singleton.mapLoaded)
            //    MapEngine.Draw(sb, ref ScreenManager.graphicDevMan, ref singleton.normalmapEffect);

            sb.Begin();
            GameSession.curPlayer.Draw(ref sb, ref MapEngine.mEngVportWLoc);
            sb.End();
        }