-
Notifications
You must be signed in to change notification settings - Fork 0
/
sokoban.html
70 lines (62 loc) · 3.63 KB
/
sokoban.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
<html>
<head>
<title>Sokoban JS</title>
<link rel="StyleSheet" href="Content/pepper-grinder/jquery-ui-1.8.4.custom.css" type="text/css">
<link rel="StyleSheet" href="Content/Site.css" type="text/css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.1.2/build/cssreset/reset-context-min.css">
<script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
<script src="Scripts/jquery.cookie.js" type="text/javascript"></script>
<script src="Scripts/GameJs/LevelStatistics.js" type="text/javascript"></script>
<script src="Scripts/GameJs/DrawableElements.js" type="text/javascript"></script>
<script src="Scripts/GameJs/Map.js" type="text/javascript"></script>
<script src="Scripts/GameJs/Game.js" type="text/javascript"></script>
<script src="Scripts/jQuery.touchSwipe.min.js" type="text/javascript"></script>
<style type="text/css">
:root #header + #content > #left > #rlblock_left,
:root #content > #right > .dose > .dosesingle,
:root #content > #center > .dose > .dosesingle {
display: none !important;
}
</style>
</head>
<body>
<!--[if !IE]-->
<div id="wasd">
<p>Please use WASD keys to move the character. W = Up, A = Right, S = Down, D = Right.</p>
</div>
<!--[endif]-->
<canvas id="canvas" width="800" height="500">
Sorry your browser does not support Canvas. Please use different browser:
<a href="http://www.mozilla-europe.org/en/firefox/">Get Firefox</a> or
<a href="http://www.google.com/chrome">Get Chrome</a>
</canvas>
<script type="text/javascript">
document.sokobanGame = new Game();
document.sokobanGame.Run();
$("div#dialog").dialog({
autoOpen: false,
modal: true,
width: 400
});
$("div#gameOverDialog").dialog({
autoOpen: false,
modal: true,
width: 400
});
</script>
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all " tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-dialog" style="display: none; z-index: 1000; outline: 0px;">
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" unselectable="on"><span class="ui-dialog-title" id="ui-dialog-title-dialog" unselectable="on">Congratulations</span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button" unselectable="on"><span class="ui-icon ui-icon-closethick" unselectable="on">close</span></a></div>
<div id="dialog" class="ui-dialog-content ui-widget-content">
<p>Congratulations, level is completed!</p>
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover">Go to the next level</button>
</div>
</div>
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all " tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-gameOverDialog" style="display: none; z-index: 1000; outline: 0px;">
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" unselectable="on"><span class="ui-dialog-title" id="ui-dialog-title-gameOverDialog" unselectable="on">Game over</span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button" unselectable="on"><span class="ui-icon ui-icon-closethick" unselectable="on">close</span></a></div>
<div id="gameOverDialog" class="ui-dialog-content ui-widget-content">
<p>Congratulations, you beat the game!</p>
</div>
</div>
</body>
</html