JS Breakout Part 3 (Coloured Bricks)
Mt. Ford Studios
In the third part of this JavaScript tutorial to recreate the 1976 game, Breakout, we create the coloured bricks! We also fix a bug with our touch event so that the paddle always follows the current touch location. Finally, we program the bricks to detect ball hits, destroying the brick, and then sending the ball flying in the opposite direction!
If you’d like to learn how to program a browser-based game in JavaScript, please feel free to download the code below!
CODE Breakout Part 3 (Coloured Bricks): https://drive.google.com/open?id=1kQAIEWzD8E5Md7NDO16EhrBntqbn773D
USEFUL LINKS CSS Legal Color Values: https://www.w3schools.com/cssref/css_colors_legal.asp Visual Studio Code: https://code.visualstudio.com/
FIND US ON FACEBOOK https://www.facebook.com/MountfordStudios/ ... https://www.youtube.com/watch?v=_pcW84UKOEw
57219479 Bytes