diff --git a/assets/css/style.css b/assets/css/style.css index f08e00e..a3abf24 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -20,7 +20,7 @@ body{ .map{ width: 1170px; height: 460px; - border: solid 3px red; + border: solid 3px #000; background: url(../img/bg_sand.png) repeat; position: absolute; left: 0; @@ -45,6 +45,7 @@ body{ position: absolute; left: 50px; top: 100px; + display: none; } .bullet{ diff --git a/assets/js/script.js b/assets/js/script.js index 32457c6..8e9d4c0 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -23,6 +23,7 @@ function checkKey(){ if(keyPressed == tank1_key_up || keyPressed == tank1_key_down || keyPressed == tank1_key_left || keyPressed == tank1_key_right){ tank1_checkDirection(); tank1_changeDirection(); + tank1_changePosition(); } function tank1_checkDirection(){