Member-only story

Breakout Game with Javascript

YvonneDev
4 min readDec 31, 2020

--

course from Brad Traversy

Github code

Features:

canvas drawing

keydown and keyup

requestAnimationFrame()

HTML

rules section hide at the left side with rules button and close button to control

canvas is a game container with all the drawing

CSS

set the canvas to display block

side rules lay at the left side and transform with x-axis when adding the class name show

JS

--

--

YvonneDev
YvonneDev

Written by YvonneDev

❤️Front-end Web Development self-taught *share what I learned*

No responses yet