public PhotosystemWing(SystemHandler handler) : base(handler.Content.Load<Texture2D>("Textures/PhotosystemWing"), handler) { this.Stage = Stages.Text; this.Player = new Electron(this.Handler.Content.Load<Texture2D>("Textures/Electron"), this.Handler, new Vector2(300, 500)); this.PhGen = new PhotonGenerator(this, 12); this.HasStart = false; }
public PhotosystemETC(SystemHandler handler) : base(handler.Content.Load<Texture2D>("Textures/ETC"), handler) { this.Stage = Stages.Text; this.Player = new Electron(this.Handler.Content.Load<Texture2D>("Textures/Electron"), this.Handler, new Vector2(120, 300)); //this.WallGen = new WallGenerator(this, 6); this.HasStart = false; this.LastKey = false; }
public Sprite(Texture2D texture, Vector2 location, float rotation, float scale, SystemHandler handler) { this.Texture = texture; this.Location = location; this.Rotation = rotation; this.Origin = new Vector2(this.Texture.Width / 2, this.Texture.Height / 2); this.Scale = scale; this.Handler = handler; }
protected override void Initialize() { base.Initialize(); this.graphics.PreferredBackBufferHeight = 600; this.graphics.PreferredBackBufferWidth = 600; this.graphics.ApplyChanges(); this.handler = new SystemHandler(this.spriteBatch, this.Content); this.IsMouseVisible = true; }
public Photon(Texture2D texture, SystemHandler handler, Vector2 location, bool isBad) : base(texture, location, 0f, 1f, 12f, handler) { this.IsBad = isBad; this.TimeExisted = 0; }
public Electron(Texture2D texture, SystemHandler handler, Vector2 location) : base(texture, location, 0f, 1f, 4f, handler) { this.IsEnergized = false; }
public PhotoSystem(Texture2D background, SystemHandler handler) { this.Background = background; this.Handler = handler; }
public MovingSprite(Texture2D texture, Vector2 location, float rotation, float scale, float maxMovementSpeed, SystemHandler handler, Vector2 movementSpeed) : base(texture, location, rotation, scale, handler) { this.MaxMovementSpeed = maxMovementSpeed; this.MovementSpeed = movementSpeed; }