Exemplo n.º 1
0
        public override void Initialize()
        {
            //Assignment of Variables
            batch = new SpriteBatch(GameUtilities.GraphicsDevice);
            Font  = GameUtilities.Content.Load <SpriteFont>("Fonts\\bigFont");
            fail  = GameUtilities.Content.Load <SoundEffect>("SoundEffects\\Fail");

            AddObject(new StaticModelObject("room", Vector3.Zero));

            var target1 = new Target(new Vector3(1, 5, -3));//placement of 1st target

            AddObject(target1);

            var dart = new Dart(new Vector3(1, 6, 20));//placement of Dart

            AddObject(dart);

            player = new DartsPlayer(new Vector3(0, 5, 15));//placement of player/camera
            AddObject(player);



            HUD = GameUtilities.Content.Load <Texture2D>("Textures\\HUD");

            base.Initialize();

            dartController = dart.Manager.GetComponent(typeof(DartController)) as DartController;
        }
Exemplo n.º 2
0
 public DartController(DartsPlayer data)
 {
     this.data = data;
 }