-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
167 lines (142 loc) · 6.3 KB
/
index.html
File metadata and controls
167 lines (142 loc) · 6.3 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="">
<meta name="author" content="">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta property="og:title" content="Pixual" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://pixual.io" />
<meta property="og:image:width" content="1192" >
<meta property="og:image:height" content="1196" >
<meta property="og:image:url" content="http://pixual.io/pixual.png" >
<meta property="og:site_name" content="Pixual.io" />
<meta property="og:description" content="We challange you to play Pixual. Given two nearly identical square grids of pixels, determine which single pixel is not identical between grids. Correctly identifying the pixel advances a level where the grid increases in size by one row and column and 5 seconds are added to their clock. A wrong selection results in loss of one second.Score is level * seconds remaining." >
<meta property="fb:app_id" content="1744059312479963" >
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="pixual.css">
<title>Pixual.io</title>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1744059312479963',
xfbml : true,
version : 'v2.5'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Pixual.io</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="#home" data-toggle="tab">Play</a>
</li>
<li>
<a href="#about" data-toggle="tab">About</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="tab-content">
<div class="tab-pane active" id="home">
<div id="playArea" class="text-center">
<canvas id="canvas" class="canvass"></canvas>
<canvas id="canvas2" class="canvass2"></canvas>
</div>
<div class="statsBar">
<h3 id="stats" class="text-center">Clock: <span id="countdown"></span> Level: <span id="level"></span> Points: <span id="points"></span></h3>
</div>
<div class="row text-center add-padding">
<input class="btn btn-default" type="button" id="startGame" value="Start Playing" onclick="startGame()">
<input class="btn btn-default" type="button" id="resetGame" value="Reset" onclick="startGame()">
<input class="btn btn-default" type="button" id="newGame" value="New Game" onclick="startGame()">
<input class="btn btn-default" type="button" id="reDraw" value="Re-Draw" onclick="reDraw()">
</div>
</div>
<div class="tab-pane" id="about">
<div class="row well">
<div class="col-md-7 text-center">
<h2>HOW TO PLAY</h3>
Given two nearly identical square grids of pixels, the player must determine which single pixel is not identical between grids. <br>
The game is timed and players start with 60 seconds. <br>
Correctly identifying the pixel advances a level where the grid increases in size by one row and column and 5 seconds are added to their clock. <br>
A wrong selection results in loss of one second. <br>
Score is level * seconds remaining. <br>
<br>
</div>
<div class="col-md-5 text-center">
<h2>WHO</h3>
Mica Cardillo <br>
Patrick Cunningham <br>
Kevin Conner <br>
<br>
</div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-2">
<a href="http://www.globalgamejam.org" target="_blank">
<img class="img-responsive" src="http://ggj.s3.amazonaws.com/GGJ%20round%20logo.png">
</a>
</div>
<div class="col-md-2 col-md-offset-1">
<a href="http://www.roguehacklab.com" target="_blank">
<img class="img-responsive img-rounded" src="http://roguehacklab.com/img/RHL_logo.jpg">
</a>
</div>
<div class="col-md-2 col-md-offset-1">
<a href="http://www.jcls.org" target="_blank">
<img class="img-responsive img-rounded" src="http://roguehacklab.com/img/jcls.jpg">
</a>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="text-center">
<div class="fb-like" data-share="true" data-width="450" data-show-faces="true">
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="pixual.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','http://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50519192-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>