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(); }
public static void AddStuff(DeepWoods deepWoods, DeepWoodsRandom random) { DeepWoodsSpaceManager spaceManager = new DeepWoodsSpaceManager(deepWoods.mapWidth.Value, deepWoods.mapHeight.Value); new DeepWoodsStuffCreator(deepWoods, random, spaceManager).ClearAndAddStuff(); }
private DeepWoodsStuffCreator(DeepWoods deepWoods, DeepWoodsRandom random, DeepWoodsSpaceManager spaceManager) { this.deepWoods = deepWoods; this.random = random; this.spaceManager = spaceManager; }