From bbac68a1eacba104b89c67939aa7cbdacf6a793c Mon Sep 17 00:00:00 2001 From: orphevs Date: Fri, 8 Dec 2017 23:34:23 +0100 Subject: [PATCH] Update direction --- assets/css/style.css | 3 ++- assets/js/script.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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(){