-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.html
35 lines (35 loc) · 1.84 KB
/
index.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
<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/boss-2.js']
);
battle.run();
});
</script>
<style type="text/css">
#arena {
border: 1px solid grey;
}
</style>
</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>Help the blue tank to win <a href="stage0.html">Stage 0</a>, <a href="stage1.html">Stage 1</a>, <a href="stage2.html">Stage 2</a> and the <a href="stage3.html">the Final Stage</a></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>