Chronos234 commited on
Commit
63cf1ad
·
verified ·
1 Parent(s): bbf1430

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +4 -0
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