You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.1 KiB

<html>
<head>
<title>Turkey Baking Simulator</title>
</head>
<body>
<br/><br/><br/><br/>
<center>
<div class="canvasContainer">
<canvas onmousemove="showXY(event)" id="demoCanvas" width="800" height="600" style="border:1px solid #000000"></canvas>
</div>
</center>
<script>
</script>
</body>
<script src="http://code.createjs.com/createjs-2013.09.25.min.js"></script>
<script src="js/model.js"></script>
<script src="js/soundmanager.js"></script>
<script src="js/stories.js"></script>
<script src="js/dialogue.js"></script>
<script src="js/ui.js"></script>
<script src="js/screens.js"></script>
<script src="js/main.js"></script>
<script>
new GameState();
function showXY(e)
{
var mouseX, mouseY;
if(e.offsetX) {
mouseX = e.offsetX;
mouseY = e.offsetY;
}
else if(e.layerX) {
mouseX = e.layerX;
mouseY = e.layerY;
}
console.log("x: " + mouseX + "y :" + mouseY);
/* do something with mouseX/mouseY */
}
</script>
<!-- Load all the things! -->
</html>