mirror of https://github.com/sundowndev/Detank.git
update js
parent
3d1f5facc6
commit
8db391e1b8
|
@ -10,8 +10,7 @@ var controls = {
|
|||
up: 'z',
|
||||
down: 's',
|
||||
left: 'q',
|
||||
right: 'd',
|
||||
space: 'spacebar'
|
||||
right: 'd'
|
||||
}
|
||||
|
||||
var rotation = {
|
||||
|
@ -33,7 +32,6 @@ function setPosition (posX, posY, dir) {
|
|||
gridX = x;
|
||||
gridY = y;
|
||||
|
||||
|
||||
var grid = document.querySelector('.line-'+posY+' .col-'+posX);
|
||||
|
||||
if(grid.classList.contains('cible')){
|
||||
|
|
Loading…
Reference in New Issue