예제 #1
0
파일: Ball.cs 프로젝트: kasbrik/kasbrik
        public Ball(Level level)
        {
            this.Level = level;

            this.X = (Level.Width - Ball.Width) / 2;
            this.Y = (Level.Height - 3 * Paddle.Height);
        }
예제 #2
0
파일: Paddle.cs 프로젝트: kasbrik/kasbrik
        public Paddle(Level level)
        {
            this.Level = level;

            this.X = (Level.Width - Paddle.Width) / 2;
            this.Y = (Level.Height - 2 * Paddle.Height);
        }
예제 #3
0
파일: Brick.cs 프로젝트: kasbrik/kasbrik
 public Brick(Level level, float x, float y)
 {
     this.Level = level;
     this.X = x;
     this.Y = y;
 }