repl.it
@SingularityV3/

Bounce Breaker

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
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
144
145
146
147
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <canvas 
      id="gameScreen" 
      height="400" 
      width="500"
      style="background: lightgreen; border: 1px solid black;"
    ></canvas>
    <button 
      onclick="addBall()"
      id="buyBasic"
      style="
        position: absolute; 
        top: 8px; 
        left: 510px;">
      Buy Basic: 10
    </button>
    <button 
      onclick="removeBall(0)"
      id="removeBasic"
      style="
        position: absolute; 
        top: 30px; 
        left: 510px;">
      Remove Basic
    </button>
    <button
      onclick="basicSpeedIncrease()"
      id="speedBasic"
      style="
        position: absolute; 
        top: 52px; 
        left: 510px;">
      Basic Speed Up: 10
    </button>
    <button
      onclick="basicPowerIncrease()"
      id="powerBasic"
      style="
        position: absolute; 
        top: 74px; 
        left: 510px;">
      Basic Power Up: 200
    </button>
    <button
      onclick="addPulser()"
      id="buyPulser"
      style="
        position: absolute; 
        top: 96px; 
        left: 510px;">
      Buy Pulser: 200
    </button>
    <button 
      onclick="removeBall(1)"
      id="removePulser"
      style="
        position: absolute; 
        top: 118px; 
        left: 510px;">
      Remove Pulser
    </button>
    <button
      onclick="pulseRadiusIncrease()"
      id="pulseRadius"
      style="
        position: absolute; 
        top: 140px; 
        left: 510px;">
      Pulse Radius Up: 400
    </button>
    <button
      onclick="pulsePowerIncrease()"
      id="pulsePower"
      style="
        position: absolute;
        top: 162px;
        left: 510px;">
      Pulse Power Up: 150
    </button>
    <button
      onclick="addSpawner()"
      id="buySpawner"
      style="
        position: absolute; 
        top: 184px; 
        left: 510px;">
      Buy Spawner: 1000
    </button>
    <button 
      onclick="removeBall(2)"
      id="removeSpawner"
      style="
        position: absolute; 
        top: 206px; 
        left: 510px;">
      Remove Spawner
    </button>
    <button 
      onclick="spawnerSpeedIncrease()"
      id="spawnerSpeed"
      style="
        position: absolute; 
        top: 228px; 
        left: 510px;">
      Spawner Speed Up: 250
    </button>
    <button 
      onclick="spawnPowerIncrease()"
      id="spawnPower"
      style="
        position: absolute; 
        top: 250px; 
        left: 510px;">
      Spawn Power Up: 250
    </button>
    <button 
      onclick="spawnAmountIncrease()"
      id="spawnAmount"
      style="
        position: absolute; 
        top: 272px; 
        left: 510px;">
      Spawn Amount Up: 500
    </button>
    <p id="level" style="
      position: absolute;
      top: 395px;
      left: 8px;">
      Level: 1
    </p>
    <p id="frags" style="
      position: absolute;
      top: 410px;
      left: 8px">
      Fragments: 0
    </p>
    <script src="script.js"></script>
  </body>
</html>
result
console
?