Ejemplo n.º 1
0
 public BackgroundPatternManager(GameModePlay parent)
 {
     this.Parent  = parent;
     this.Pattern = null;
     this.Scroll  = 0.0f;
     this.Speed   = 2.0f;
 }
Ejemplo n.º 2
0
 public PlayerBullet(GameModePlay parent, float x, float y, float angle)
     : base(parent, Assets.PlayerBullet, new Vector2(x, y), Color4.White)
 {
     this.Angle    = angle;
     this.Hitbox   = new Circle(this);
     this.Velocity = 20.0f;
 }
Ejemplo n.º 3
0
 public Sprite(GameModePlay parent, Texture2D texture, Vector2 position, Color4 color)
 {
     this.NumAnimations = 1;
     this.Parent        = parent;
     this.Texture       = texture;
     this.Position      = position;
     this.Color         = color;
     this.Rotation      = 0.0f;
 }
Ejemplo n.º 4
0
 public Bullet(GameModePlay parent, Enemy enemyParent, Vector2 position, float launchAngle, int delay, int entryPoint)
     : base(parent, null, position, Color4.White)
 {
     this.EnemyParent   = enemyParent;
     this.Runner        = new BulletScriptRunner(this.Parent.Level.Script, entryPoint);
     this.Runner.Parent = this;
     this.LaunchAngle   = launchAngle;
     this.Angle         = launchAngle;
     this.Delay         = delay;
     this.ParentAngle   = this.Atan2(this.Position, this.Parent.Player.Position);
 }
Ejemplo n.º 5
0
 public Player(GameModePlay parent)
     : base(parent, Assets.Player, new Vector2(450, 450), Color4.White)
 {
     this.InputUp      = false;
     this.InputDown    = false;
     this.InputLeft    = false;
     this.InputRight   = false;
     this.InputA       = false;
     this.InputB       = false;
     this.InputC       = false;
     this.Speed        = 10.0f;
     this.SlowSpeed    = 5.0f;
     this.BulletHitbox = new Circle(0.0f, 0.0f, 3.0f);
     this.PickupHitbox = new Circle(0.0f, 0.0f, 40.0f);
 }
Ejemplo n.º 6
0
 public Enemy(GameModePlay parent, bool mirrored, bool boss, float x, float y, EnemyScriptRunner runner)
     : base(parent, null, new Vector2(x, y), Color4.White)
 {
     this.Hitbox        = new Circle(this);
     this.Runner        = runner;
     this.Runner.Parent = this;
     this.Mirrored      = mirrored;
     this.IsBoss        = boss;
     this.IsSlave       = false;
     this.MaxHealth     = 6;
     if (this.Mirrored)
     {
         this.Position.X = 900.0f - this.Position.X;
     }
 }
Ejemplo n.º 7
0
 public Entity(GameModePlay parent, Texture2D texture, Vector2 position, Color4 color)
     : base(parent, texture, position, color)
 {
     this.Hitbox = new Circle();
     this.Angle  = 0.0f;
 }
Ejemplo n.º 8
0
 public MainScriptRunner(GameModePlay parent, StageScript.StageScript script)
     : base(script)
 {
     this.Parent = parent;
 }