Преглед на файлове

Merge branch 'fix-keyboard-with-touch' into 'master'

Always load keyboard and mouse movers

See merge request Isleward/isleward!544
tags/v0.10.0^2
Big Bad Waffle преди 2 години
родител
ревизия
52ca66cf71
променени са 1 файла, в които са добавени 6 реда и са изтрити 7 реда
  1. +6
    -7
      src/client/js/components/player.js

+ 6
- 7
src/client/js/components/player.js Целия файл

@@ -20,13 +20,12 @@ define([
init: function () {
const obj = this.obj;

if (isMobile)
obj.addComponent('keyboardMover');
obj.addComponent('mouseMover');

if (isMobile)
obj.addComponent('touchMover');
else {
obj.addComponent('keyboardMover');
obj.addComponent('mouseMover');
}

obj.addComponent('serverActions');
obj.addComponent('pather');

@@ -72,7 +71,7 @@ define([
renderer.setPosition({
x: (x - (renderer.width / (scale * 2))) * scale,
y: (y - (renderer.height / (scale * 2))) * scale
}, instant);
}, instant);
},

onRespawn: function ({ x, y }) {


Зареждане…
Отказ
Запис