public override void Draw(Graphics e, Ball b) { if (isEnabled) { Color c = Color.FromArgb(180 - alpha, Color.White); Rectangle block = new Rectangle((int)currentX, (int)currentY, (int)Constants.BlockWidth, (int)Constants.BlockWidth); GameApp.DrawAlphaImage(e, alpha, mainTex, block); e.FillRectangle(new SolidBrush(c), currentX, currentY, Constants.BlockWidth, Constants.BlockWidth); if (isTouched && b.IsStateAlso(BallState.Bonused)) { e.FillRectangle(new SolidBrush(bonusColor), currentX, currentY, Constants.BlockWidth, Constants.BlockWidth); } e.DrawRectangle(colBorder(Color.Gray), currentX, currentY, Constants.BlockWidth, Constants.BlockWidth); } }