コード例 #1
0
        public void DrawLevelDisplay()
        {
            // Game1.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, (DepthStencilState)null, (RasterizerState)null);

            string   currentLevelAsString   = string.Concat(this.level);
            Location titleSafeTopLeftCorner = new DeepWoodsSpaceManager(this.mapWidth.Value, this.mapHeight.Value).GetActualTitleSafeTopleftCorner();

            SpriteText.drawString(
                Game1.spriteBatch,
                currentLevelAsString,
                titleSafeTopLeftCorner.X + 16, titleSafeTopLeftCorner.Y + 16, /*x,y*/
                999999, -1, 999999,                                           /*charPos,width,height*/
                1f, 1f,                                                       /*alpha,depth*/
                false,                                                        /*junimoText*/
                SpriteText.scrollStyle_darkMetal,
                "",                                                           /*placeHolderScrollWidthText*/
                SpriteText.color_Green);

            // Game1.spriteBatch.End();
        }
コード例 #2
0
        public static void AddStuff(DeepWoods deepWoods, DeepWoodsRandom random)
        {
            DeepWoodsSpaceManager spaceManager = new DeepWoodsSpaceManager(deepWoods.mapWidth.Value, deepWoods.mapHeight.Value);

            new DeepWoodsStuffCreator(deepWoods, random, spaceManager).ClearAndAddStuff();
        }
コード例 #3
0
 private DeepWoodsStuffCreator(DeepWoods deepWoods, DeepWoodsRandom random, DeepWoodsSpaceManager spaceManager)
 {
     this.deepWoods    = deepWoods;
     this.random       = random;
     this.spaceManager = spaceManager;
 }