-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (103 loc) · 4.69 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Sandbox</title>
<link rel="stylesheet" href="css/style.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Blockly -->
<script src="blockly/blockly_compressed.js"></script>
<script src="blockly/javascript_compressed.js"></script>
<script src="blockly/msg/en.js"></script>
<!-- Phaser -->
<script src="phaser/phaser.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<h1>Sandbox</h1>
<p>Use this space as a playground.</p>
</div>
<div class="row">
<div class="language col-md-8 col-sm-12">
<div id="blockly-workspace" class="blockly-workspace"></div>
</div>
<div class="simulation col-md-4 col-sm-12">
<div class="debugging">
<!-- Debugging -->
<div class="row show-options">
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
<input type="checkbox" class="btn-check" id="show-positions-button" autocomplete="off">
<label class="btn btn-outline-dark" for="show-positions-button"><b>Show Positions</b></label>
<input type="checkbox" class="btn-check" id="show-directions-button" autocomplete="off">
<label class="btn btn-outline-dark" for="show-directions-button"><b>Show Directions</b></label>
<input type="checkbox" class="btn-check" id="show-collisions-button" autocomplete="off">
<label class="btn btn-outline-dark" for="show-collisions-button"><b>Show Collisions</b></label>
</div>
</div>
</div>
<!-- Phaser -->
<div class="row">
<div class="display">
<div id="game-canvas" class="game-canvas"></div>
</div>
</div>
</div>
</div>
</div>
<xml id="toolbox" style="display: none">
</xml>
<xml id="blocks" style="display: none">
<block type="custom_start" id="START" x="-250" y="-150"></block>
</xml>
<!-- Modal - Delete positions -->
<div class="modal fade" id="delete-positions-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Delete Positions</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="col-12">
<div id="delete-positions-container" class="container">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal - Create position -->
<div class="modal fade" id="create-position-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Create Position</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form class="row g-3">
<div class="col-12">
<label for="position-name" class="form-label">Give the position a name:</label>
<input type="text" class="form-control" id="position-name" placeholder="Name" required>
</div>
</form>
</div>
<div class="modal-footer">
<div class="container">
<div class="row">
<button type="button" id="create-position-button" class="btn btn-success btn-lg">Create</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/initial_setup.js"></script>
<script src="js/bootstrap_setup.js"></script>
<script src="js/phaser_setup.js"></script>
<script src="js/blockly_setup.js"></script>
</body>
</html>