/// <summary> /// Initializes /// </summary> public void Initialize() { // TODO: Add your initialization logic here Rain = new RainParticleSystem(new Rectangle(0, -20, Screen.SIZE, 10)); //Rain.IsRaining = false; projectedLocation = new BoundingRectangle(); projectedLocation.Width = 29 * Rho.SIZESCALE; projectedLocation.Height = 33 * Rho.SIZESCALE; projectedLocationX = new BoundingRectangle(); projectedLocationX.Width = 29 * Rho.SIZESCALE; projectedLocationX.Height = 33 * Rho.SIZESCALE; projectedLocationY = new BoundingRectangle(); projectedLocationY.Width = 29 * Rho.SIZESCALE; projectedLocationY.Height = 33 * Rho.SIZESCALE; move = Vector2.Zero; gameMap = new GameMap(); Player = new Rho() { Position = gameMap.RhoStartingPosition }; Land = new LandingParticleSystem(Player, Color.White); inputManager = new InputManager(); CurrentTime = 0; ChangeBackground(); }
protected override void Start() { base.Start(); controller = AddComponent(new PlayerController(this)); landingParticleSystem = new LandingParticleSystem(100); Screen.Instantiate(landingParticleSystem); playerSpawnParticleSystem = new PlayerSpawnParticleSystem(100); Screen.Instantiate(playerSpawnParticleSystem); playerSpawnParticleSystem.PlacePlayerSpawnParticle(Position); }