Practice+Game

Your First Game

Now we want to combine our knowledge of 'If' Statements and loops into one game. In the taxi game, you have to stay on the road! Gather as much green fuel as possible while avoiding the black oil that will bring your taxi to a halt! 

This is a complex game with a significant amout of code. Try playing the game first before coming up with your own version:    Now we know how to change the backgrounds, change the sprites, add new sprites and some basic commands, we are ready to create our first game and it looks something like this:



It is a variation on the classic 'Pong' game. The red paddle at the bottom bounces the ball. Each time the ball hits a block, the block dissapears and you get points. However, beware, you only have a fixed number of lives. If you miss the ball with the paddle 5 times, you lose the game.


 * ~ Task [[image:task.jpg width="229" height="200"]] ||
 * Open the 'Block Breaker' workbook here:



Follow the instruction to create the Block Breaker Game. ||

||
 * ~ Task
 * Edit the 'Code' of the above Block Breaker Game to customise it, make it your own game. Hint: Use different sprites and backgrounds . ||