-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (116 loc) · 4.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pat-a-Cat</title>
<script src="js_david/main.js" defer></script>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
h1 {
margin: 0;
padding: 0;
font-family: "CatPat", sans-serif;
position: fixed;
z-index: 99;
top: 30px;
left: 30px;
color: rgba(100, 50, 80, 0.5);
}
div#assets {
display: none;
}
canvas#main-canvas {
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
/*width: 1280px;*/
/*height: 675px;*/
}
span#player1-score, span#player2-score {
position: fixed;
z-index: 99;
top: 38px;
font-family: "CatPat", sans-serif;
font-size: 1.3rem;
color: rgba(10, 5, 0, 0.6);
}
span#player1-score-value, span#player2-score-value {
color: rgba(10, 5, 0, 0.8);
margin-left: 0.2em;
}
/*span#player1-score {*/
/*left: calc(100% - 410px);*/
/*}*/
/*span#player2-score {*/
/*left: calc(100% - 185px);*/
/*}*/
@font-face {
font-family: "CatPat";
src: url("assets/Myfont-Regular.ttf") format("truetype"),
url("assets/Myfont-Regular.otf") format("otf");
}
</style>
</head>
<body>
<div id="assets">
<!-- CATS -->
<img src="assets/alvincat.png" id="cat-alvin">
<img src="assets/cutecate.png" id="cat-cute">
<img src="assets/davidcat.png" id="cat-david">
<img src="assets/fakecat.png" id="cat-fake">
<img src="assets/rockincat.png" id="cat-rockin">
<img src="assets/sandwhichCat.png" id="cat-sandwich">
<!-- second batch -->
<img src="assets/neutralcat.png" id="cat-neutral">
<img src="assets/elizacat.png" id="cat-eliza">
<img src="assets/aidoncat.png" id="cat-aidon">
<img src="assets/allancat.png" id="cat-allan">
<img src="assets/willcat.png" id="cat-will">
<!-- FIRE CAT -->
<img src="assets/fireplacecat.png" id="fire-cat">
<img src="assets/poof1.png" id="poof1">
<img src="assets/poof2.png" id="poof2">
<img src="assets/poof3.png" id="poof3">
<img src="assets/poof4.png" id="poof4">
<!-- PLAYERS -->
<img src="assets/player1.png" id="player1">
<img src="assets/player1damaged.png" id="player1-damaged">
<img src="assets/player2.png" id="player2">
<img src="assets/player2damaged.png" id="player2-damaged">
<!-- BOOMBOX -->
<img src="assets/boombox.png" id="boombox">
<!-- BACKGROUND ELEMENTS -->
<img src="assets/wallpaper.png" id="wallpaper">
<img src="assets/floor.png" id="floor">
<img src="assets/fireplace.png" id="fireplace">
<img src="assets/firebackversion2.png" id="fireback">
<img src="assets/fire1.png" id="fire1">
<img src="assets/fire2.png" id="fire2">
<img src="assets/fire3.png" id="fire3">
<img src="assets/fire4.png" id="fire4">
<img src="assets/back1.png" id="back1">
<img src="assets/back2.png" id="back2">
<img src="assets/back3.png" id="back3">
<img src="assets/back4.png" id="back4">
<img src="assets/frame.png" id="frame">
<img src="assets/art1.png" id="art1">
<img src="assets/art2.png" id="art2">
<img src="assets/art3.png" id="art3">
<img src="assets/art4.png" id="art4">
<img src="assets/pot.png" id="pot">
<img src="assets/otherpot.png" id="other-pot">
<img src="assets/lamp.png" id="lamp">
<img src="assets/plant.png" id="plant">
<img src="assets/couch.png" id="couch">
<img src="assets/largeCouch.png" id="large-couch">
<!-- SCORE / MENU -->
<img src="assets/coin.png" id="coin">
</div>
<h1>Pat-a-Cat</h1>
<span id="player1-score">Player 1: <span id="player1-score-value">0</span></span>
<span id="player2-score">Player 2: <span id="player2-score-value">0</span></span>
<iframe src="assets/songs/1.mp3" allow="" style="display: none;" id="beats"></iframe>
<canvas id="main-canvas"></canvas>
</body>
</html>