In this game, we mix pong and bricks! Idea is to build step-by-step logic to:
- Learn Go on the fly.
- Build a Go web-service for supporting the online version of the game
Here is an image of what the game shoudl look like!
-
Set the position of the play area, paddle, ball and smiley-bricks!
-
Ball will keep bouncing off the play area wall i.e. it will reflect off the wall.
-
Smiley-bricks are the target - everytime the ball destroys a brick, you get 1 point.
- When a smiley-brick is destroyed, it appears again in another location
-
Move the paddle to bounce the ball around.
- If the ball hits the paddle in the middle, it will reflect exactly!
- The more awat from the middle the ball hits the paddel, the larger the angle of relection!
-
The game is timed and high scores are maintained for maximum number of smiley-bricks hit.
-
Every time 4 points are scored,
- The speed of the ball increases by 10%!
- The size of the smiley-brick reduces by 10%!
-
The ball destroys the smiely-brick and continues it's same trajectory
- Paddle is positioned in the middle and moves horizonaltally only!
- Smiley-bricks are positioned in the top and bottom edges of the play-area
- Paddles are positioned vertically on the left and right edges of the play area.
- Smiley-brick is positioned in the middle 40% of the play-area
- Player who hits the smiley-brick gets a point.