Skip to content

Commit

Permalink
Step 2 - Include Kontra.js library
Browse files Browse the repository at this point in the history
  • Loading branch information
leereilly committed Aug 13, 2021
1 parent 9f22af7 commit 464d86c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
<body>
<canvas width="250" height="250" id="game" style="background-color: black;"></canvas>
</body>
<script src="https://cdn.jsdelivr.net/npm/kontra@7.1.3/kontra.min.js"></script>
<script>
let { GameLoop, Sprite, bindKeys, collides, init, initKeys, keyPressed, randInt } = kontra;

let { canvas } = init();
</script>
</html>

0 comments on commit 464d86c

Please sign in to comment.