示例#1
0
 public Ramp(string imageName, float x, float y, int width, int height, Level l)
     : base(imageName, x, y, width, height)
 {
     this.SpawnPoint = new Vector2(x, y);
     leftPushBox     = new PushBox(this, x - 3f, y + 3, 5, height - 6, true);
     rightPushBox    = new PushBox(this, x + width, y + 3, 5, height - 6, false);
 }
示例#2
0
 public Ramp(string imageName, float x, float y, int width, int height, Level l)
     : base(imageName, x, y, width, height)
 {
     this.SpawnPoint = new Vector2(x, y);
     leftPushBox = new PushBox(this, x - 3f, y + 3, 5, height - 6, true);
     rightPushBox = new PushBox(this, x + width, y + 3, 5, height - 6, false);
 }