Finally, let’s add the fun part: the Javascript! Click here to see what this commit should look like.
- Copy the Javascript from Codepen into the
src/renderer.js
file. - Spin up your app with
npm start
, and see how it works. - Save and commit your changes.
It’s great to have a working game! What else could you build? How could you change this game? Feel free to make it your own by changing the images, changing the game functionality, or even adding sound!
Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!