/// <summary> /// This method is called once per frame (60fps is desired) to draw. /// </summary> public override void Draw(SpriteBatch spriteBatch) { if (IsVisible && !StopDrawing) //StopDrawing is used while transitioning zones { //updateSpriteLocation(player); //graphics.GraphicsDevice.Clear(Color.CornflowerBlue); //GameDraw.drawGround(map, player); GameDraw.DrawAdjacentGround(world, player); GameDraw.DrawScenery(world); GameDraw.DrawPlayer(player, world, player.spritePosition, new Rectangle(0, 0, 116, 153)); GameDraw.DrawNPCs(world); if (inMenu) { menu.Draw(spriteBatch, font, Color.White); } } }
public override void Draw(SpriteBatch spriteBatch) { if (IsVisible) { GameDraw.DrawAdjacentGround(world, viewLocation); GameDraw.DrawScenery(world); //NPCs will be drawn with it's own method //NPCs from adjacent areas will NOT be drawn if (!hideNPCs) { GameDraw.DrawNPCs(NPCs, world); } if (!hidePlayer) { GameDraw.DrawUncontroledPlayer(GameScreen.player, world); } spriteBatch.Draw(barTexture, topBarRect, Color.White); spriteBatch.Draw(barTexture, bottomBarRect, Color.White); } }