Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (32 sloc) 1.13 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title>Prowler</title>
<script src='js/prowler.js'></script>
<script type="text/javascript">
// <![CDATA[
onload = function() {
ws = new WebSocket("ws://localhost:8080/")
ws.onopen = function() { console.log('open') }
ws.onclose = function() { console.log('close') }
var stage = new Stage(document.getElementById('canvas'), ws)
var tile = new Tile
stage.add(tile)
var hunter = new Hunter
hunter.x = stage.width / 2
hunter.y = stage.height / 2
stage.add(hunter)
stage.run()
}
// ]]>
</script>
</head>
<body>
<canvas id="canvas" width="256" height="256"></canvas>
<p>矢印キーで移動</p>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.