Skip to content

Instantly share code, notes, and snippets.

@bashbaugh
Created February 24, 2019 17:20
Show Gist options
  • Select an option

  • Save bashbaugh/035e5fb8c4e80299f6de16a96c955569 to your computer and use it in GitHub Desktop.

Select an option

Save bashbaugh/035e5fb8c4e80299f6de16a96c955569 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Game</title>
</head>
<body onload="init()">
<h1>JavaScript Game</h1>
<p>Here is a simple JavaScript game:</p>
<canvas id="c" width="400" height="400"></canvas>
<script>
console.log("Starting the script!");
let canvas_element = document.getElementById("c");
let canvas = canvas_element.getContext("2d");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment