Skip to content

Instantly share code, notes, and snippets.

@nklsrh
Created July 10, 2013 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nklsrh/5962955 to your computer and use it in GitHub Desktop.
Save nklsrh/5962955 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Game</title>
<style>
body {
background-color: black;
}
#gameCanvas {
background-color: black;
width: 640px;
height: 360px;
margin: auto;
align: center;
}
#scoreboard {
text-align: center;
font-family: Segoe UI, Helvetica, Ubuntu, sans-serif;
color: white;
}
#scores {
font-size:600%;
padding:0;
margin:0;
color: white;
}
#title {
background-color: white;
color: black;
}
</style>
</head>
<body onload='setup();'>
<div id='gameCanvas'></div>
<script src='./Scripts/three.min.js'></script>
<script src='./Scripts/keyboard.js'></script>
<script src='./Scripts/game.js'></script>
<div id='scoreboard'>
<h1 id='scores'>0-0</h1>
<h1 id='title'>3D PONG</h1>
<h2 id='winnerBoard'>First to 7 wins!</h2>
<h3>A - move left
<br>D - move right</h3>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment