File size: 1,680 Bytes
31b5abd
b1b8fec
31b5abd
 
 
 
 
b1b8fec
 
 
 
a430f05
31b5abd
698ed3b
6f0f81d
 
a430f05
 
698ed3b
 
 
a430f05
 
 
698ed3b
 
a430f05
 
b1b8fec
 
31b5abd
 
b1b8fec
6f0f81d
 
31b5abd
b1b8fec
 
 
a430f05
6f0f81d
 
b1b8fec
 
 
 
6f0f81d
 
b1b8fec
 
 
 
6f0f81d
b1b8fec
698ed3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a430f05
 
 
 
 
 
 
 
 
 
 
 
 
 
b1b8fec
 
 
 
83279e7
b1b8fec
 
 
 
 
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
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#scoreboard {
    position: absolute;
    top: 20px; /* Position at the top */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    display: flex;
    gap: 40px; /* Space between player and bot scores */
    z-index: 10; /* Ensure it's above the game area */
}

#gameArea {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #333;
}

.paddle {
    position: absolute;
    width: 10px;
    height: 80px;
    background-color: #fff;
}

#paddleLeft {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#paddleRight {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#ball {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    top:    background-color: #fff;
}

#paddleLeft {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#paddleRight {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#ball {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#ball {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #0ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}