Example #1
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            camera = new Camera();
            int midX = GraphicsDeviceManager.DefaultBackBufferHeight / 2;
            int midY = GraphicsDeviceManager.DefaultBackBufferWidth / 2;

            Mouse.SetPosition(midX, midY);

            dalek          = new Dalek();
            dalek.pos      = new Vector3(0, 0, 0);
            dalek.DrawAxis = true;
            children.Add(dalek);

            EnemyDalek enemy = new EnemyDalek();

            enemy.pos      = new Vector3(10, 0, -10);
            enemy.DrawAxis = true;
            children.Add(enemy);

            children.Add(camera);
            ground = new Ground();
            children.Add(ground);

            base.Initialize();
        }
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            camera = new Camera();
            int midX = GraphicsDeviceManager.DefaultBackBufferHeight / 2;
            int midY = GraphicsDeviceManager.DefaultBackBufferWidth / 2;
            Mouse.SetPosition(midX, midY);

            dalek = new Dalek();
            dalek.pos = new Vector3(0, 0, 0);
            dalek.DrawAxis = true;
            children.Add(dalek);

            EnemyDalek enemy = new EnemyDalek();
            enemy.pos = new Vector3(10, 0, -10);
            enemy.DrawAxis = true;
            children.Add(enemy);

            children.Add(camera);
            ground = new Ground();
            children.Add(ground);

            base.Initialize();
        }