Created
July 10, 2013 02:19
-
-
Save nklsrh/5962955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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