Esempio n. 1
0
        public override void Initialize(RenderContext context)
        {
            Ground side = GroundPrefabList.GetPrefab(Collision.Col1);;

            side.Rotate(0, 0, -90);
            side.Translate(500, 750);
            AddChild(side);

            var size = (Vector2)side.RigidBody.UserData;

            Width = (int)size.Y;
            base.Initialize(context);
        }
Esempio n. 2
0
        public override void Initialize(RenderContext context)
        {
            Ground ground = GroundPrefabList.GetPrefab(Collision.Col7);

            ground.Translate(0, 0);
            AddChild(ground);

            Ground Top = GroundPrefabList.GetPrefab(Collision.Col6);

            Top.Rotate(0, 0, 180);
            Top.Translate(1200, 300);
            AddChild(Top);

            var size = (Vector2)ground.RigidBody.UserData;

            Width = (int)size.X;
            base.Initialize(context);
        }
Esempio n. 3
0
        public override void Initialize(RenderContext context)
        {
            Ground ground = GroundPrefabList.GetPrefab(Collision.Col1);

            ground.Translate(0, 0);
            AddChild(ground);

            Ground Top = GroundPrefabList.GetPrefab(Collision.Col1);

            Top.Rotate(0, 0, 180);
            Top.Translate(1200, 300);
            AddChild(Top);

            Pickup pickup = PickupPrefabList.GetPrefab <HealthPickup>(PickupName.Health);

            pickup.Translate(1200, 150);
            AddChild(pickup);

            var size = (Vector2)ground.RigidBody.UserData;

            Width = (int)size.X;
            base.Initialize(context);
        }