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', up: 'z',
down: 's', down: 's',
left: 'q', left: 'q',
right: 'd', right: 'd'
space: 'spacebar'
} }
var rotation = { var rotation = {
@ -33,7 +32,6 @@ function setPosition (posX, posY, dir) {
gridX = x; gridX = x;
gridY = y; gridY = y;
var grid = document.querySelector('.line-'+posY+' .col-'+posX); var grid = document.querySelector('.line-'+posY+' .col-'+posX);
if(grid.classList.contains('cible')){ if(grid.classList.contains('cible')){