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(); }
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(); }
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); }
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(); }