const _0x28ed55 = _0x3178;
(function (_0x39b603, _0x36660d) {
  const _0x1fb2c3 = _0x3178,
    _0x145a51 = _0x39b603();
  while (!![]) {
    try {
      const _0x463340 =
        parseInt(_0x1fb2c3(0x154)) / 0x1 +
        (-parseInt(_0x1fb2c3(0x14d)) / 0x2) *
          (parseInt(_0x1fb2c3(0x150)) / 0x3) +
        (-parseInt(_0x1fb2c3(0x14e)) / 0x4) *
          (-parseInt(_0x1fb2c3(0x14f)) / 0x5) +
        (parseInt(_0x1fb2c3(0x152)) / 0x6) *
          (parseInt(_0x1fb2c3(0x156)) / 0x7) +
        parseInt(_0x1fb2c3(0x14c)) / 0x8 +
        (parseInt(_0x1fb2c3(0x149)) / 0x9) *
          (parseInt(_0x1fb2c3(0x147)) / 0xa) +
        -parseInt(_0x1fb2c3(0x153)) / 0xb;
      if (_0x463340 === _0x36660d) break;
      else _0x145a51["push"](_0x145a51["shift"]());
    } catch (_0x14d4e2) {
      _0x145a51["push"](_0x145a51["shift"]());
    }
  }
})(_0x2179, 0xc0156);
class Exemple extends Phaser[_0x28ed55(0x14b)] {
  ["preload"]() {
    const _0x79d203 = _0x28ed55;
    this[_0x79d203(0x148)]["image"](_0x79d203(0x14a), _0x79d203(0x158));
  }
  [_0x28ed55(0x157)]() {
    const _0x1d5439 = _0x28ed55,
      _0x3c5727 = this[_0x1d5439(0x15a)][_0x1d5439(0x155)](0x64, 0xc8, "snake");
    (_0x3c5727["scale"] = 0.5),
      this["tweens"][_0x1d5439(0x15a)]({
        targets: _0x3c5727,
        x: 0x258,
        scale: 0x1,
        angle: 0x168,
        duration: 0xfa0,
        yoyo: !![],
        repeat: -0x1
      });
  }
}
const config = {
    type: Phaser[_0x28ed55(0x159)],
    transparent: !![],
    width: 0x320,
    height: 0x190,
    scene: Exemple
  },
  game = new Phaser[_0x28ed55(0x151)](config);
function _0x3178(_0x2d905f, _0x5aa38a) {
  const _0x2179b0 = _0x2179();
  return (
    (_0x3178 = function (_0x3178eb, _0x40be99) {
      _0x3178eb = _0x3178eb - 0x147;
      let _0x483af1 = _0x2179b0[_0x3178eb];
      return _0x483af1;
    }),
    _0x3178(_0x2d905f, _0x5aa38a)
  );
}
function _0x2179() {
  const _0x593984 = [
    "1097936YeXYQU",
    "create",
    "https://assets.codepen.io/9367036/snake_1.png",
    "AUTO",
    "add",
    "10wPqLdH",
    "load",
    "14102073kSWJCY",
    "snake",
    "Scene",
    "2447432ALdLjx",
    "66ohxJvz",
    "4wvHhjA",
    "1358590NvjOLo",
    "92991kNIPEt",
    "Game",
    "48QXECdQ",
    "20692441eUvXOM",
    "291478KCZycp",
    "image"
  ];
  _0x2179 = function () {
    return _0x593984;
  };
  return _0x2179();
}

External CSS

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

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/phaser/3.85.1/phaser.min.js