Exemplo n.º 1
0
        public void LoadLevel(ref List<Segment> itemList, ScrapGame game)
        {
            Level currentLevel = GetTask();
            //foreach (Crate current in currentLevel.CrateList)
            //{
            //    itemList.Add(current);
            //}

            foreach (Segment current in currentLevel.EntityList)
            {
                //current.Init(game);
            }
            itemList.AddRange(currentLevel.EntityList);
        }
Exemplo n.º 2
0
        public void LoadLevel(ref List <Segment> itemList, ScrapGame game)
        {
            Level currentLevel = GetTask();

            //foreach (Crate current in currentLevel.CrateList)
            //{
            //    itemList.Add(current);
            //}

            foreach (Segment current in currentLevel.EntityList)
            {
                //current.Init(game);
            }
            itemList.AddRange(currentLevel.EntityList);
        }
Exemplo n.º 3
0
 static void Main()
 {
     using (var game = new ScrapGame())
         game.Run();
 }
Exemplo n.º 4
0
 public PlayerController(ScrapGame game)
 {
     inputManager = InputManager.GetManager();
     this.game    = game;
 }
Exemplo n.º 5
0
 public PlayerController(ScrapGame game)
 {
     inputManager = InputManager.GetManager();
     this.game = game;
 }
Exemplo n.º 6
0
 static void Main()
 {
     using (var game = new ScrapGame())
         game.Run();
 }
Exemplo n.º 7
0
        Vector2 WorldLimits = new Vector2(50000, 400); //world limits should be set by the terrain max.

        #endregion Fields

        #region Constructors

        public Terrain(ScrapGame game)
        {
            this.game = game;
        }