minimal-web-templates
/games/pacman/index.html |
---|
@@ -8,7 +8,7 @@ |
#pacman { |
height:450px; |
width:342px; |
margin:20px auto; |
margin: 20px auto |
} |
</style> |
@@ -17,9 +17,12 @@ |
<body> |
<h1>HTML5 Pacman</h1> |
<!-- Load the pacman game into this container. --> |
<div id="pacman"></div> |
<!-- Include pacman.js script. --> |
<script src="pacman.js"></script> |
<!-- Load the pacman game into the "pacman" container by ID. --> |
<script> |
PACMAN.init(document.getElementById("pacman"), "./"); |
</script> |