update js

master
sundowndev 2017-12-09 04:17:38 +01:00
parent 3d1f5facc6
commit 8db391e1b8
1 changed files with 1 additions and 3 deletions

View File

@ -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')){