-
Notifications
You must be signed in to change notification settings - Fork 30
/
stage3.html
36 lines (36 loc) · 1.77 KB
/
stage3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="log.js"></script>
<script type="text/javascript" src="battle.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var canvas = $("#arena");
var battle = new Battle(
canvas[0].getContext("2d"),
canvas.attr("width"),
canvas.attr("height"),
['./robot/boss-3.js', './robot/myrobot.js']
);
battle.run();
});
</script>
<style type="text/css">
#arena {
border: 1px solid grey;
}
</style>
<title>Robocode-JS Game - Stage 3</title>
</head>
<body>
<a href="https://github.com/youchenlee/robocode-js"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://github-camo.global.ssl.fastly.net/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<div><a href="index.html">Robocode-JS Game</a> > Stage 3 (Final)</div>
<button id="enable-debug" onclick="triggerDebug();">Trigger debug</button>
<hr />
<canvas id="arena" width="600" height="500" style="float:left;"></canvas>
<pre>
<div id="debug" style="float: left; width: 200px; padding: 10px;"></div>
</pre>
</body>
</html>