public EasyGameComponent AddBrick(int row, int col) { int start = 60; EasyGameComponent brick = AddComponent("brick-1x2"); brick.Category = "brick"; brick.SetPosition(start + (col * brick.Width), start + (row * brick.Height)); brick.OverlayColor = RandomHelper.Color(); return(brick); }
public EasyGameComponent AddBall() { ball = AddComponent("ball"); ball.EdgeFriction = 0; ball.Rotateable = true; ball.BounceFactor = 1; ball.Static = false; ball.SetPosition(200, 700); ball.IsBullet = true; ball.Nudge(.6f, -.6f); ball.MaxVelocity = 2f; ball.ConstantVelocity = 10; return(ball); }