forked from ec-idds/hackathon-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLobby.js
More file actions
43 lines (34 loc) · 903 Bytes
/
Lobby.js
File metadata and controls
43 lines (34 loc) · 903 Bytes
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
function Lobby() {
this.setup = function () {
new Canvas()
}
this.draw = function () {
image(lobby_bg, 0, 0, width, height);
fill(31, 75, 126);
textSize(40);
textFont('Pixelify Sans');
text('Emmanuel College', width / 2 - 170, 30);
text("Prop Hunt", width / 2 - 100, 60);
textSize(25);
textFont('Pixelify Sans');
fill(31, 75, 126, 175);
rect(1, 1, 195, 235);
rect(width - 195, 1, 195, 235);
fill('white');
text('Rules:', 60, 25);
text('Players Joined:', width - 190, 20);
textSize(15);
const rulesText = ` One player is randomly
assigned as a seeker and
the rest are props. Once
a prop is [REDACTED], it
becomes a seeker. The
props have 30 seconds to
hide before the seekers
are released. The seekers
have 3 minutes to find the
props before the props
win.`;
text(rulesText, -3, 45)
}
}