Skip to content

Instantly share code, notes, and snippets.

@snggeng
Last active June 6, 2017 01:55
Show Gist options
  • Save snggeng/831a40509ae148e48c64f47bb6e5c03e to your computer and use it in GitHub Desktop.
Save snggeng/831a40509ae148e48c64f47bb6e5c03e to your computer and use it in GitHub Desktop.
html for html5 game tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Javascript Games!</title>
<style>
#player {
height: 100px;
width: 100px;
background-color: red;
position: absolute;
top:50px;
left:50px;
border-radius: 50%;
}
</style>
</head>
<body>
<div id="player"></div>
<script type="text/javascript" src="player.js"></script>
<script type="text/javascript" src="game.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment