Пример #1
0
        public PlayerLayer(CollisionManager collMgr, DrawManager drawMgr, TimeManager timeMgr)
            : base(collMgr, drawMgr, timeMgr)
        {
            backdrop = new Sprite(ContentLoader.Content.Load<Texture2D>(Assets.TOP_DOWN_FIELD));
            backdrop.Scale = new Vector2(5, 5);
            Add(backdrop);

            player = new SmileyWalkDude();
            player.Position = new Vector2(300, 300);
            player.Scale = new Vector2(3, 3);
            Add(player);
        }
Пример #2
0
 public LogoLayer(CollisionManager coll, DrawManager draw, TimeManager time, params WorldObject[] worldObjects)
     : base(coll, draw, time, worldObjects)
 {
     Billboard = new LogoBillboard();
     Add(Billboard);
 }
Пример #3
0
 public Layer(CollisionManager collisionManager, DrawManager drawManager, TimeManager timeManager, params WorldObject[] worldObjects)
 {
     Initialize(collisionManager, drawManager, timeManager, worldObjects);
 }
Пример #4
0
        protected void Initialize(CollisionManager collisionManager, DrawManager drawManager, TimeManager timeManager, params WorldObject[] worldObjects)
        {
            WorldObjects = new List<WorldObject>();

            CollisionManager = collisionManager;
            DrawManager = drawManager;
            TimeManager = timeManager;

            AddRange(worldObjects);
            SortUpdateOrder();

            Enabled = true;
            UpdateOrder = 0;
        }
Пример #5
0
 public MainLayer(CollisionManager collisionMgr, DrawManager drawMgr, TimeManager timeMgr, params WorldObject[] worldObjects)
     : base(collisionMgr, drawMgr, timeMgr, worldObjects)
 {
     SetUpWorldObjects();
     drawMgr.EnableDrawWireFrames(collisionMgr);
 }