PBBG Snippets

Log In or Register

Basic Game Map (HTML)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<html>
<head>
<title>Simple Game Map</title>
<!-- Load the javascript -->
<script type="text/javascript" src="basic_game_map.js"></script>
<!-- Style the page -->
<style type="text/css">
	canvas { border:1px solid black; }
</style>
</head>
<body>
<!-- We will insert a message here when a user clicks on an item -->
<p id="disp"></p>
<!-- This is the canvas element where we will display our map -->
<canvas id="map" width="250" height="250">Fallback content: your browser can't display this map.</canvas>
</body>
</html>

Comments

You need to be logged in to comment on snippets.