示例#1
0

        
示例#2
0
文件: Stage.cs 项目: nluthy/tvmario
 public void Init(ContentManager content, string strBackground, string strHuman, string strMap)
 {
     if (strBackground != null && strBackground != "")
     {
         _background = content.Load <Texture2D>(strBackground);
     }
     _imgCoin = content.Load <Texture2D>("Images\\Maps\\Tile08");
     _imgIcon = content.Load <Texture2D>("Images\\Characters\\icon24");
     _human   = new Human();
     if (strHuman != null && strHuman != "")
     {
         _human.Init(content, strHuman);
     }
     if (strMap != null && strMap != "")
     {
         _map = new MapWithCells(content, strMap);
     }
 }