-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
60 lines (47 loc) · 1.56 KB
/
game.html
File metadata and controls
60 lines (47 loc) · 1.56 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>Projeto Final de Redes - 2015.2</title>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="../squareShift/css/game.css">
</head>
<body>
<div class="header">
<div class="container">
<a class="btn" href="index.html">Inicio</a>
</div>
<canvas id="myCanvas" width="1200" height="530" style="border:5px solid #000000;"></canvas>
</div>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var canvasData = ctx.getImageData(0, 0, canvas.width, canvas.height);
canvasData {
width: unsigned long, // the width of the canvas
height: unsigned long, // the height of the canvas
data: CanvasPixelArray // the values of the pixels
}
var x = 10;
var y = 10;
var blue = canvasData.data[(y * width + x) * 4 + 2];
</script>
<div class="infos">
<div class="container">
<div class="coluna">
<a href="about.html"><h2>Sobre a Disciplina</h2></a>
<p>Na disciplina de Redes aprendemos sobre o funcionamento dos protocolos utilizados na web, dentre outras coisas</p>
</div>
<div class="coluna">
<a href="developers.html"><h2>Equipe</h2></a>
<p>Conheça nosso time!</p>
</div>
<div class="coluna">
<a href="rules.html"><h2>Regras do Jogo</h2></a>
<p>Saiba como funciona a mecânica do jogo</p>
</div>
<div class="containerfix"></div>
</div>
</div>
</body>
</html>