Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
|
@@ -8,6 +8,10 @@ canvas.height = window.innerHeight;
|
|
| 8 |
let towers = [];
|
| 9 |
let enemies = [];
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
function update() {
|
| 12 |
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
| 13 |
|
|
|
|
| 8 |
let towers = [];
|
| 9 |
let enemies = [];
|
| 10 |
|
| 11 |
+
// Adicionar uma torre e inimigo de teste
|
| 12 |
+
towers.push(new Tower(canvas.width / 2, canvas.height / 2));
|
| 13 |
+
enemies.push(new Enemy(canvas.width / 2, 100));
|
| 14 |
+
|
| 15 |
function update() {
|
| 16 |
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
| 17 |
|