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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

#scoreboard {
    position: absolute;
    top: 10px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    display: flex;
    gap: 20px;
}

#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: 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%);
}