Example #1
0
        public void Initialize(GameContext context)
        {
            // Initialize the background
            background = new DefaultBackground();
            background.Initialize(context);

            starHandler = new StarHandler(context);

            Player = new Player();
            Player.Initialize(context);

            playerInfo = new PlayerInfo();
            playerInfo.Initialize(context, 4);

            Reset();
        }
Example #2
0
        public void Initialize(GameContext context)
        {
            this.context = context;

            // Initialize the background
            background = new DefaultBackground();
            background.Initialize(context);

            starHandler = new StarHandler(context);

            Player = new Player();
            Player.Initialize(context);

            playerInfo = new PlayerInfo();
            playerInfo.Initialize(context, 8);

            blackHoles = new BlackHole[2];
            blackHoles[0] = new BlackHole();
            blackHoles[0].Initialize(context);
            blackHoles[0].Position = new Vector2(32, 32);

            Reset();

            InitializeShakeGestures();
        }
Example #3
0
        public void Initialize(GameContext context)
        {
            // Initialize the background
            background = new DefaultBackground();
            background.Initialize(context);

            starHandler = new StarHandler(context);

            rail = context.Content.Load<Texture2D>("Scenes/Levels/Custom/Rail");

            Player = new Player();
            Player.Initialize(context);

            playerInfo = new PlayerInfo();
            playerInfo.Initialize(context, 4);

            Reset();

            railPosition = new Vector2(0, Player.Position.Y + 40 - 8);
        }
Example #4
0
        public void Initialize(GameContext context)
        {
            this.context = context;

            // Initialize the background
            background = new DefaultBackground();
            background.Initialize(context);

            starHandler = new StarHandler(context);

            Player = new Player();
            Player.Initialize(context);

            playerInfo = new PlayerInfo();
            playerInfo.Initialize(context, 6);

            blackHole = new BlackHole();
            blackHole.Initialize(context);
            blackHole.Position = new Vector2(Device.HalfWidth, Device.HalfHeight);

            Reset();
        }