-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.15 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
<html>
<head>
<script src="jquery-1.4.1.min.js"></script>
<script src="vector_battle_regular.typeface.js"></script>
<script src="ipad.js"></script>
<script src="game.js"></script>
<style>
#canvas { border:1px solid black; top:0px; left:0px; }
.button { position:absolute; border:1px solid black; }
#left-controls { position:absolute; left:1px; bottom:0px; display:none; }
#right-controls { position:absolute; right:1px; bottom:0px; display:none; }
#up { width:200px; height:100px; bottom:100px;}
#left { width:100px; height:100px; bottom:0px;}
#right { width:100px; height:100px; bottom:0px; left:100px; }
#space { width:200px; height:200px; bottom:0px; right:0px; }
</style>
</head>
<body>
<div id="game-container">
<canvas id="canvas" width="780" height="540"></canvas>
<div id="left-controls">
<div id="up" class='button'>THRUST</div>
<div id="left" class='button'>LEFT</div>
<div id="right" class='button'>RIGHT</div>
</div>
<div id="right-controls">
<div id="space" class='button'>FIRE</div>
</div>
</div>
</body>
</html>