mirror of https://github.com/sundowndev/Detank.git
Update direction
parent
5fb9189eac
commit
bbac68a1ea
|
@ -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{
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue