Ejemplo n.º 1
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            // set the background's initial position
            //_backgroundPosition = new Rectangle(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);

            score = 0;

            druid        = new Druid(Content, "druid_right", new Vector2(50, 400));
            druid.Active = true;

            penalty = new PenaltyObject(Content, "penalty_object", new Vector2(rand.Next(0, WINDOW_WIDTH - 13), rand.Next(0, WINDOW_HEIGHT - 13)));
            //penalty.Active = true;

            point        = new PointObject(Content, "point_object", new Vector2(rand.Next(0, WINDOW_WIDTH - 13), rand.Next(0, WINDOW_HEIGHT - 13)));
            point.Active = true;


            IsMouseVisible = true;

            base.Initialize();
        }
Ejemplo n.º 2
0
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here

            // set the background's initial position
            //_backgroundPosition = new Rectangle(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);

            score = 0;

            druid = new Druid(Content, "druid_right", new Vector2(50, 400));
            druid.Active = true;

            penalty = new PenaltyObject(Content, "penalty_object", new Vector2(rand.Next(0, WINDOW_WIDTH - 13), rand.Next(0, WINDOW_HEIGHT - 13)));
            //penalty.Active = true;

            point = new PointObject(Content, "point_object", new Vector2(rand.Next(0, WINDOW_WIDTH - 13), rand.Next(0, WINDOW_HEIGHT - 13)));
            point.Active = true;

            IsMouseVisible = true;

            base.Initialize();
        }