-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswash.html
24 lines (24 loc) · 897 Bytes
/
swash.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
<html>
<head>
<title>Swashbuckling</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="main.css">
<style>
.visuallyhidden {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px; width: 1px;
margin: -1px; padding: 0; border: 0;
}
</style>
</head>
<body>
<img id="piratesSS" class="visuallyhidden" src="images/pirates.v1.png" />
<canvas id='canvas' width=480 height=600 style="background-color:white;">
</canvas>
<script src="kontra.js"></script>
<script src="swash.js"></script>
<div>Play once for one side, then again for the other. The result is displayed</div>
</body>
</html>