public BouncyBlock(float x, float y, BaseTexture texture) : base(x, y, Block.WIDTH, Block.HEIGHT) { this.SpeedX = speed; base.SetTexture(texture); base.Decelleration = 0; }
public BaseEntity(float x, float y, float width, float height) { this.X = x; this.Y = y; this.Width = width; this.Height = height; SetHitbox(new RectangleF(0, 0, Width, Height)); this.Mirrored = false; this.Layer = 1; this.Texture = null; }
public FallingBlock(float x, float y, BaseTexture texture) : base(x, y, Block.WIDTH, Block.HEIGHT) { this.IsAirborne = true; base.SetTexture(texture); this.Weight = 0.1f; }
public Block(float x, float y, BaseTexture texture) : base(x, y, WIDTH, HEIGHT) { base.SetTexture(texture); }
public void ChangeTexture(BaseTexture texture) { base.SetTexture(texture); }
protected void SetTexture(BaseTexture texture) { if(texture != null) { this.Texture = texture; } }