コード例 #1
0
        public override void Draw(Render render, ITileList tileList, Rectangle radious)
        {
            base.Draw(render, tileList, radious);

            foreach (BaseNpc npc in Npcs)
            {
                npc.RenderNpc(render, Program.Game.Font1, Program.Game.Tiles.Textures[0]);
            }
        }
コード例 #2
0
 public virtual void Draw(Render render, ITileList tileList, Rectangle radious)
 {
     /*   foreach (Cloud cloud in cloud)
      * {
      *
      *     spriteBatch.Draw(tiles.textures[1],
      *         new Rectangle((int)(cloud.position.X), (int)(cloud.position.Y),
      *             16,
      *             16),
      *             Color.White);
      * }*/
     tileList.RenderPlasters(this, radious, render);
     tileList.RenderWall(this, radious, render);
     tileList.RenderTiles(this, radious, render);
     foreach (Explosion exp in _explosions)
     {
         exp.Draw(render);
     }
     foreach (Dust dust in Dusts)
     {
         dust.Render(render);
     }
 }