mirror of https://github.com/sundowndev/Detank.git
update js
parent
3d1f5facc6
commit
8db391e1b8
|
@ -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')){
|
||||||
|
|
Loading…
Reference in New Issue