With this game we made 5 sprites 1 ball 1 player 1 enemy 2 walls.
When the ball hits the wall it gives the player (or enemy) 1 point, first to 5 points wins.
the mechanics are very simple, all you have to do is hit the ball with the block.
you can only move on the y axis (up and down). this makes the game a little bit harder as you have to predict where the ball is going.
The code is based on if statements for example "if player score = 5 or enemy score = 5 end all"
its very easy and very simple coding so I don't really have too much to describe.
Comentários