-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
143 lines (135 loc) · 8.74 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Snake Game</title>
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="d-flex justify-content-center align-items-center header" style="height: 15vh; background-color:black">
<img src="/images/aulab.png" alt="">
<h1 class="mb-0 mx-2">Webinar Retro Gaming</h1>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-12 col-xl-4 order-2 order-xl-1">
<div class="px-5">
<h1 class="py-3">Html - CSS 🎨</h1>
<ul class="list-group pb-2 mb-1 ">
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-1">
<label class="form-check-label stretched-link text-white" for="check-1">Change title color</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-2">
<label class="form-check-label stretched-link text-white" for="check-2">Add subtitle</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-3">
<label class="form-check-label stretched-link text-white" for="check-3">Change text fonts globally</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-4">
<label class="form-check-label stretched-link text-white" for="check-4">Change page background</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-5">
<label class="form-check-label stretched-link text-white" for="check-5">Change checkbox color</label>
</li>
</ul>
<h1 class="py-3 mt-3">JAVASCRIPT ⚙️</h1>
<ul class="list-group pb-5">
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-6">
<label class="form-check-label stretched-link text-white" for="check-6">Chage field size</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-7">
<label class="form-check-label stretched-link text-white" for="check-7">Change snake speed</label>
</li>
<li class="list-group-item py-4 bg-transparent border-0">
<input class="form-check-input me-1" type="checkbox" value="" id="check-8">
<label class="form-check-label stretched-link text-white" for="check-8">Snake effect, passing through walls</label>
</li>
</ul>
</div>
</div>
<div class="col-12 col-xl-8 order-1 order-xl-2">
<div class="gamePage d-flex flex-column justify-content-center align-items-center my-4 ">
<div id="startBtn" class="btn mt-2 mb-3 border-0 rounded-2">Start Game</div>
<div class="rel">
<!-- <div class="d-flex buttons mt-3">
<div id="pauseBtn" class="mx-1">
<img src="images/pause.png"></img>
</div>
<div id="resumeBtn"nclass="mx-1">
<img src="images/play.png"></img>
</div>
</div> -->
<h2 class="mt-2 ">
<span id="score" class="px-3 py-2 score">0</span>
</h2>
</div>
<canvas class="mt-3" id="snakeCanvas" width="640" height="640"></canvas>
<img id="head" src="images/aulab.png" alt="target">
<img class="virus" src="images/virus/neg-bug.png" alt="virus">
<img class="virus" src="images/virus/neg-phone.png" alt="virus">
<img class="virus" src="images/virus/neg-stress.png" alt="virus">
<img class="target" src="images/targets/html.png" alt="target">
<img class="target" src="images/targets/css.png" alt="target">
<img class="target" src="images/targets/js.png" alt="target">
<img class="target" src="images/targets/learning.png" alt="target">
<img class="target" src="images/targets/php.png" alt="target">
<img class="target" src="images/targets/laravel.png" alt="target">
<img class="target" src="images/targets/mysql.png" alt="target">
<img class="target" src="images/targets/scrum.png" alt="target">
<img class="target" src="images/targets/team.png" alt="target">
<img class="target" src="images/targets/certificate.png" alt="target">
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<img class="result-img" src="images/angry.jpeg" alt="snake">
<p>Game Over! Your Score is: <span id="scoreModal"></span></p>
</div>
<div class="modal-footer">
<button id="modal-btn" type="button" class="btn modal-btn"
data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="winModal" tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<img class="result-img" src="images/happy.png" alt="snake">
<p>You win!</p>
</div>
<div class="modal-footer">
<button id="modal-btn" type="button" class="btn modal-btn"
data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous">
</script>
<script type="text/javascript" src="main.js"></script>
</body>
</html>