-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (64 loc) · 2.24 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Robot</title>
<link rel="stylesheet" href="css/index_style.css"/>
</head>
<body>
<!-- divs -->
<div id="wrap"></div>
<div id="not-wrap">
<!--div id="blocklyDiv" style="height: 100%; width: 100%;"></div-->
<div>
Use the up arrow key to move the robot forward.
Use the left and right arrow keys to turn.
Press "p" to pick up an object.
Press "d" to drop it.
</div>
<select>
Levels: <br>
<option value="1"/>1<br>
<option value="2"/>2<br>
<option value="3"/>3<br>
<option value="4"/>4<br>
<option value="5"/>5<br>
<option value="6"/>6<br>
<option value="7"/>7<br>
<option value="8"/>8<br>
</select>
</div>
<!-- JS -->
<script type="text/javascript" src="js/assets/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/assets/jquery-2.1.3.js"></script>
<!-- Robot Script -->
<script type="text/javascript" src="js/jstkinter.js"></script>
<script type="text/javascript" src="js/robot.js"></script>
<script type="text/javascript" src="js/board.js"></script>
<script type="text/javascript" src="js/test.js"></script>
<!-- Blockly -->
<script src="js/blockly/blockly_compressed.js"></script>
<script src="js/blockly/blocks_compressed.js"></script>
<script src="js/blockly/msg/js/en.js"></script>
<script src="js/custom_robot_blocks.js"></script>
<script>
var toolbox = '<xml>';
toolbox += ' <category name="Logic">';
toolbox += ' <block type="controls_if"></block>';
toolbox += ' <block type="controls_whileUntil"></block>';
toolbox += ' </category>';
toolbox += ' <category name="Booties"></category>';
toolbox += ' <sep></sep>';
toolbox += ' <category name="Robot Logic">';
toolbox += ' <block type="robot_can_move"></blocks>';
toolbox += ' </category>';
toolbox += ' <sep></sep>';
toolbox += ' <category name="Robot Action">';
toolbox += ' <block type="robot_turn"></blocks>';
toolbox += ' </category>';
toolbox += '</xml>';
var workspace = Blockly.inject(
'blocklyDiv', {toolbox: toolbox});
</script>
</body>
</html>