示例#1
0
文件: Level02.cs 项目: JohanGl/Moon
        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();
        }
示例#2
0
文件: Level08.cs 项目: JohanGl/Moon
        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();
        }
示例#3
0
文件: Level09.cs 项目: JohanGl/Moon
        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);
        }
示例#4
0
文件: Level07.cs 项目: JohanGl/Moon
        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();
        }