function _0x39b5(_0x2480f8, _0x2c7190) {
  const _0x34c797 = _0x3225();
  return (
    (_0x39b5 = function (_0x5eb0fc, _0x8c0973) {
      _0x5eb0fc = _0x5eb0fc - 0x1d0;
      let _0x3225bd = _0x34c797[_0x5eb0fc];
      return _0x3225bd;
    }),
    _0x39b5(_0x2480f8, _0x2c7190)
  );
}
function _0x3225() {
  const _0x257311 = [
    "input",
    "55376sGXNnk",
    "setConstraint",
    "update",
    "speed",
    "move",
    "add",
    "529362SDWFDr",
    "KeyCodes",
    "preload",
    "Scene",
    "chain",
    "height",
    "debu",
    "Input",
    "https://assets.codepen.io/9367036/space.png?1",
    "space",
    "isDown",
    "image",
    "constructor",
    "ship",
    "init",
    "load",
    "7NpWgfe",
    "call",
    "stateObject",
    "\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)",
    "function\x20*\x5c(\x20*\x5c)",
    "player",
    "120445JrvXla",
    "length",
    "addKeys",
    "string",
    "6089535BuRMjq",
    "create",
    "while\x20(true)\x20{}",
    "167583WdCNzY",
    "Game",
    "keys",
    "3052472lzLWtv",
    "Keyboard",
    "85TEnMvg",
    "https://assets.codepen.io/9367036/shipPink_manned.png",
    "apply",
    "397594sfzPTT",
    "width",
    "gger"
  ];
  _0x3225 = function () {
    return _0x257311;
  };
  return _0x3225();
}
const _0x1f712f = _0x39b5;
(function (_0x5a89c3, _0x33ba53) {
  const _0x117f36 = _0x39b5,
    _0x50dab7 = _0x5a89c3();
  while (!![]) {
    try {
      const _0x558a27 =
        parseInt(_0x117f36(0x1df)) / 0x1 +
        parseInt(_0x117f36(0x1ee)) / 0x2 +
        -parseInt(_0x117f36(0x1e6)) / 0x3 +
        (parseInt(_0x117f36(0x1f2)) / 0x4) *
          (-parseInt(_0x117f36(0x1eb)) / 0x5) +
        -parseInt(_0x117f36(0x1f8)) / 0x6 +
        (-parseInt(_0x117f36(0x1d9)) / 0x7) *
          (parseInt(_0x117f36(0x1e9)) / 0x8) +
        parseInt(_0x117f36(0x1e3)) / 0x9;
      if (_0x558a27 === _0x33ba53) break;
      else _0x50dab7["push"](_0x50dab7["shift"]());
    } catch (_0x16ce01) {
      _0x50dab7["push"](_0x50dab7["shift"]());
    }
  }
})(_0x3225, 0x3956e);
const _0x8c0973 = (function () {
  let _0x24a99e = !![];
  return function (_0x21ddca, _0xb8b65e) {
    const _0x25d60a = _0x24a99e
      ? function () {
          const _0x42769d = _0x39b5;
          if (_0xb8b65e) {
            const _0x233ed1 = _0xb8b65e[_0x42769d(0x1ed)](_0x21ddca, arguments);
            return (_0xb8b65e = null), _0x233ed1;
          }
        }
      : function () {};
    return (_0x24a99e = ![]), _0x25d60a;
  };
})();
(function () {
  _0x8c0973(this, function () {
    const _0x24fefa = _0x39b5,
      _0x7a26fe = new RegExp(_0x24fefa(0x1dd)),
      _0x146167 = new RegExp(_0x24fefa(0x1dc), "i"),
      _0x51e095 = _0x5eb0fc(_0x24fefa(0x1d7));
    !_0x7a26fe["test"](_0x51e095 + _0x24fefa(0x1fc)) ||
    !_0x146167["test"](_0x51e095 + _0x24fefa(0x1f1))
      ? _0x51e095("0")
      : _0x5eb0fc();
  })();
})();
class Example extends Phaser[_0x1f712f(0x1fb)] {
  [_0x1f712f(0x1fa)]() {
    const _0x5c9c10 = _0x1f712f;
    this[_0x5c9c10(0x1d8)]["image"]("space", _0x5c9c10(0x1d1)),
      this[_0x5c9c10(0x1d8)]["image"](_0x5c9c10(0x1d6), _0x5c9c10(0x1ec));
  }
  ["w"];
  [_0x1f712f(0x1e4)]() {
    const _0x3b3a5c = _0x1f712f;
    (this["speed"] = 0x3),
      (this[_0x3b3a5c(0x1e8)] = this[_0x3b3a5c(0x1f1)]["keyboard"][
        _0x3b3a5c(0x1e1)
      ]({
        up: Phaser[_0x3b3a5c(0x1d0)]["Keyboard"][_0x3b3a5c(0x1f9)]["W"],
        down: Phaser[_0x3b3a5c(0x1d0)][_0x3b3a5c(0x1ea)][_0x3b3a5c(0x1f9)]["S"],
        left: Phaser[_0x3b3a5c(0x1d0)][_0x3b3a5c(0x1ea)][_0x3b3a5c(0x1f9)]["A"],
        right: Phaser[_0x3b3a5c(0x1d0)][_0x3b3a5c(0x1ea)][_0x3b3a5c(0x1f9)]["D"]
      }));
    const _0x2a3e98 = config[_0x3b3a5c(0x1ef)] / 0x2,
      _0x24d2b5 = config[_0x3b3a5c(0x1fd)] / 0x2;
    this[_0x3b3a5c(0x1f7)][_0x3b3a5c(0x1d4)](
      _0x2a3e98,
      _0x24d2b5,
      _0x3b3a5c(0x1d2)
    ),
      (this["player"] = this["add"][_0x3b3a5c(0x1d4)](
        _0x2a3e98,
        _0x24d2b5,
        _0x3b3a5c(0x1d6)
      ));
  }
  [_0x1f712f(0x1f4)]() {
    const _0x1bc973 = _0x1f712f;
    this["move"](), this[_0x1bc973(0x1f3)]();
  }
  [_0x1f712f(0x1f6)]() {
    const _0x51687a = _0x1f712f;
    if (this[_0x51687a(0x1e8)]["left"]["isDown"])
      this[_0x51687a(0x1de)]["x"] -= this["speed"];
    else
      this[_0x51687a(0x1e8)]["right"][_0x51687a(0x1d3)] &&
        (this["player"]["x"] += this[_0x51687a(0x1f5)]);
    if (this[_0x51687a(0x1e8)]["up"][_0x51687a(0x1d3)])
      this[_0x51687a(0x1de)]["y"] -= this[_0x51687a(0x1f5)];
    else
      this[_0x51687a(0x1e8)]["down"]["isDown"] &&
        (this[_0x51687a(0x1de)]["y"] += this["speed"]);
  }
  [_0x1f712f(0x1f3)]() {
    const _0x2b593a = _0x1f712f,
      _0x5277be = this[_0x2b593a(0x1de)][_0x2b593a(0x1ef)] / 0x2,
      _0x548721 = this[_0x2b593a(0x1de)][_0x2b593a(0x1fd)] / 0x2;
    if (this[_0x2b593a(0x1de)]["x"] < _0x5277be)
      this["player"]["x"] = _0x5277be;
    else
      this[_0x2b593a(0x1de)]["x"] > config[_0x2b593a(0x1ef)] - _0x5277be &&
        (this[_0x2b593a(0x1de)]["x"] = config[_0x2b593a(0x1ef)] - _0x5277be);
    if (this[_0x2b593a(0x1de)]["y"] < _0x548721)
      this[_0x2b593a(0x1de)]["y"] = _0x548721;
    else
      this["player"]["y"] > config[_0x2b593a(0x1fd)] - _0x548721 &&
        (this[_0x2b593a(0x1de)]["y"] = config["height"] - _0x548721);
  }
}
const config = { width: 0x320, height: 0x190, scene: Example },
  game = new Phaser[_0x1f712f(0x1e7)](config);
function _0x5eb0fc(_0x4f14df) {
  function _0x426dcc(_0x415021) {
    const _0x2b6ff3 = _0x39b5;
    if (typeof _0x415021 === _0x2b6ff3(0x1e2))
      return function (_0x2118ca) {}
        [_0x2b6ff3(0x1d5)](_0x2b6ff3(0x1e5))
        ["apply"]("counter");
    else
      ("" + _0x415021 / _0x415021)[_0x2b6ff3(0x1e0)] !== 0x1 ||
      _0x415021 % 0x14 === 0x0
        ? function () {
            return !![];
          }
            [_0x2b6ff3(0x1d5)](_0x2b6ff3(0x1fe) + _0x2b6ff3(0x1f0))
            [_0x2b6ff3(0x1da)]("action")
        : function () {
            return ![];
          }
            [_0x2b6ff3(0x1d5)](_0x2b6ff3(0x1fe) + _0x2b6ff3(0x1f0))
            ["apply"](_0x2b6ff3(0x1db));
    _0x426dcc(++_0x415021);
  }
  try {
    if (_0x4f14df) return _0x426dcc;
    else _0x426dcc(0x0);
  } catch (_0x550e42) {}
}

External CSS

  1. https://codepen.io/tim-momo/pen/yLWvyra.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/phaser/3.80.1/phaser.min.js
  2. https://codepen.io/tim-momo/pen/yLWvyra.js