8259 lines
425 KiB
JavaScript
8259 lines
425 KiB
JavaScript
(function(_0x2e4825) {
|
||
var _0x157e07 = function() {
|
||
var _0x38f897 = !![];
|
||
return function(_0x3f7171, _0x2129d2) {
|
||
var _0x280ec3 = _0x38f897 ? function() {
|
||
if (_0x2129d2) {
|
||
var _0x236aa0 = _0x2129d2['apply'](_0x3f7171, arguments);
|
||
_0x2129d2 = null;
|
||
return _0x236aa0;
|
||
}
|
||
} : function() {};
|
||
_0x38f897 = ![];
|
||
return _0x280ec3;
|
||
};
|
||
}();
|
||
var _0x43aaf3 = _0x157e07(this, function() {
|
||
var _0x4ac416 = function() {
|
||
var _0x1f75f4;
|
||
try {
|
||
_0x1f75f4 = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');')();
|
||
} catch (_0x2c7f23) {
|
||
_0x1f75f4 = _0x2e4825;
|
||
}
|
||
return _0x1f75f4;
|
||
};
|
||
var _0x200bfb = _0x4ac416();
|
||
var _0x39c107 = function() {
|
||
return {
|
||
'key': 'item',
|
||
'value': 'attribute',
|
||
'getAttribute': function() {
|
||
for (var _0xd57466 = 0x0; _0xd57466 < 0x3e8; _0xd57466--) {
|
||
var _0xa8fc45 = _0xd57466 > 0x0;
|
||
switch (_0xa8fc45) {
|
||
case !![]:
|
||
return this['item'] + '_' + this['value'] + '_' + _0xd57466;
|
||
default:
|
||
this['item'] + '_' + this['value'];
|
||
}
|
||
}
|
||
}()
|
||
};
|
||
};
|
||
var _0x3b11e7 = new RegExp('[jOqxWELOxfJxNIUHTLZHxXCFFQLbEVNJXLCCKLjFxPQZxSJTROSGXSqWxMWWKCVOZAbqSZNqVGPfBSKZPUQGGMjTVVQLVRHbZCDQPTPGLEPxNWZQVPOBLMGLUJZTbCUHKGCUSxKZXjTEGTWEZHxSbJPSWWPBUYqNbAINjOCKDMYxCYqWKECUEPE]', 'g');
|
||
var _0x38b4e4 = 'pjhaOqsexr.loWcELal;OxfJxNphIUHTtL.dwsZysHxXCF.ruFQL;bEVNJXkrLCCKutLovijgF.xcomP;.spQiZxeSlJeTRO-uSGXmsSonqWstx.dMWWKeC;VsOZpiAelbeqSZNq-VumGsoPnfBSKZPsUQtG.GMdej;.izTzVVyQgaLmeVRHbs.comZC;izzyDQPTgPameGLsEPx.NWcZomQVPOBLMGLUJZTbCUHKGCUSxKZXjTEGTWEZHxSbJPSWWPBUYqNbAINjOCKDMYxCYqWKECUEPE' ['replace'](_0x3b11e7, '')['split'](';');
|
||
var _0x486fe3;
|
||
var _0x1a7ab;
|
||
var _0xd555ff;
|
||
var _0xcbd509;
|
||
for (var _0x1731a9 in _0x200bfb) {
|
||
if (_0x1731a9['length'] == 0x8 && _0x1731a9['charCodeAt'](0x7) == 0x74 && _0x1731a9['charCodeAt'](0x5) == 0x65 && _0x1731a9['charCodeAt'](0x3) == 0x75 && _0x1731a9['charCodeAt'](0x0) == 0x64) {
|
||
_0x486fe3 = _0x1731a9;
|
||
break;
|
||
}
|
||
}
|
||
for (var _0x273035 in _0x200bfb[_0x486fe3]) {
|
||
if (_0x273035['length'] == 0x6 && _0x273035['charCodeAt'](0x5) == 0x6e && _0x273035['charCodeAt'](0x0) == 0x64) {
|
||
_0x1a7ab = _0x273035;
|
||
break;
|
||
}
|
||
}
|
||
if (!('~' > _0x1a7ab)) {
|
||
for (var _0x2bcc9b in _0x200bfb[_0x486fe3]) {
|
||
if (_0x2bcc9b['length'] == 0x8 && _0x2bcc9b['charCodeAt'](0x7) == 0x6e && _0x2bcc9b['charCodeAt'](0x0) == 0x6c) {
|
||
_0xd555ff = _0x2bcc9b;
|
||
break;
|
||
}
|
||
}
|
||
for (var _0x1b74f3 in _0x200bfb[_0x486fe3][_0xd555ff]) {
|
||
if (_0x1b74f3['length'] == 0x8 && _0x1b74f3['charCodeAt'](0x7) == 0x65 && _0x1b74f3['charCodeAt'](0x0) == 0x68) {
|
||
_0xcbd509 = _0x1b74f3;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
if (!_0x486fe3 || !_0x200bfb[_0x486fe3]) {
|
||
return;
|
||
}
|
||
var _0x7d3aa7 = _0x200bfb[_0x486fe3][_0x1a7ab];
|
||
var _0x507067 = !!_0x200bfb[_0x486fe3][_0xd555ff] && _0x200bfb[_0x486fe3][_0xd555ff][_0xcbd509];
|
||
var _0x1469dd = _0x7d3aa7 || _0x507067;
|
||
if (!_0x1469dd) {
|
||
return;
|
||
}
|
||
|
||
if (false) {
|
||
data;
|
||
} else {
|
||
return;
|
||
}
|
||
_0x39c107();
|
||
});
|
||
_0x43aaf3();
|
||
var _0xceeb77 = function() {
|
||
var _0x53f90f = !![];
|
||
return function(_0x3a03e8, _0x5cb9bf) {
|
||
var _0x21ca33 = _0x53f90f ? function() {
|
||
if (_0x5cb9bf) {
|
||
var _0x49bb2f = _0x5cb9bf['apply'](_0x3a03e8, arguments);
|
||
_0x5cb9bf = null;
|
||
return _0x49bb2f;
|
||
}
|
||
} : function() {};
|
||
_0x53f90f = ![];
|
||
return _0x21ca33;
|
||
};
|
||
}();
|
||
var _0x44849c = _0xceeb77(this, function() {
|
||
var _0xf66d66 = function() {};
|
||
var _0x5d3fda;
|
||
try {
|
||
var _0x19b4a4 = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');');
|
||
_0x5d3fda = _0x19b4a4();
|
||
} catch (_0x14dfa6) {
|
||
_0x5d3fda = _0x2e4825;
|
||
}
|
||
if (!_0x5d3fda['console']) {
|
||
_0x5d3fda['console'] = function(_0x4d9e0e) {
|
||
var _0x34314e = {};
|
||
_0x34314e['log'] = _0x4d9e0e;
|
||
_0x34314e['warn'] = _0x4d9e0e;
|
||
_0x34314e['debug'] = _0x4d9e0e;
|
||
_0x34314e['info'] = _0x4d9e0e;
|
||
_0x34314e['error'] = _0x4d9e0e;
|
||
_0x34314e['exception'] = _0x4d9e0e;
|
||
_0x34314e['trace'] = _0x4d9e0e;
|
||
return _0x34314e;
|
||
}(_0xf66d66);
|
||
} else {
|
||
_0x5d3fda['console']['log'] = _0xf66d66;
|
||
_0x5d3fda['console']['warn'] = _0xf66d66;
|
||
_0x5d3fda['console']['debug'] = _0xf66d66;
|
||
_0x5d3fda['console']['info'] = _0xf66d66;
|
||
_0x5d3fda['console']['error'] = _0xf66d66;
|
||
_0x5d3fda['console']['exception'] = _0xf66d66;
|
||
_0x5d3fda['console']['trace'] = _0xf66d66;
|
||
}
|
||
});
|
||
_0x44849c();
|
||
var _0x4a8abc = 0x320,
|
||
_0x3eaf37 = 0x258;
|
||
var _0x2aacf1 = _0x4a8abc / 0x2,
|
||
_0x25d46a = _0x3eaf37 / 0x2;
|
||
var _0x1a3978 = 0x78;
|
||
var _0x1f3d42 = 0x50;
|
||
var _0xecb5a1 = 0x12c;
|
||
var _0x25c6da = 0x12c;
|
||
var _0x119242 = 0x28;
|
||
var _0x41bba0 = 'Quad.easeInOut';
|
||
var _0x130e52 = {
|
||
'left': {
|
||
'x': 0x0,
|
||
'y': 0x0,
|
||
'width': _0x1a3978,
|
||
'height': _0x3eaf37
|
||
},
|
||
'left_half': {
|
||
'x': 0x0,
|
||
'y': 0x0,
|
||
'width': _0x2aacf1,
|
||
'height': _0x3eaf37
|
||
},
|
||
'left_30': {
|
||
'x': 0x0,
|
||
'y': 0x0,
|
||
'width': _0x4a8abc * 0.3,
|
||
'height': _0x3eaf37
|
||
},
|
||
'right': {
|
||
'x': _0x4a8abc - _0x1a3978,
|
||
'y': 0x0,
|
||
'width': _0x1a3978,
|
||
'height': _0x3eaf37
|
||
},
|
||
'right_half': {
|
||
'x': _0x2aacf1,
|
||
'y': 0x0,
|
||
'width': _0x2aacf1,
|
||
'height': _0x3eaf37
|
||
},
|
||
'right_75_30': {
|
||
'x': _0x4a8abc * 0.25,
|
||
'y': _0x3eaf37 * 0.3,
|
||
'width': _0x4a8abc * 0.75,
|
||
'height': _0x3eaf37 * 0.7
|
||
},
|
||
'top': {
|
||
'x': 0x0,
|
||
'y': 0x0,
|
||
'width': _0x4a8abc,
|
||
'height': _0x1f3d42
|
||
},
|
||
'top_30': {
|
||
'x': 0x0,
|
||
'y': 0x0,
|
||
'width': _0x4a8abc,
|
||
'height': _0x3eaf37 * 0.3
|
||
},
|
||
'bottom': {
|
||
'x': 0x0,
|
||
'y': _0x3eaf37 - _0x1f3d42,
|
||
'width': _0x4a8abc,
|
||
'height': _0x1f3d42
|
||
}
|
||
};
|
||
var _0x1f790d = ['1_3', '2_1', '3_2', '3_3', '4_1'];
|
||
var _0x17990f = ['0_1', '1_2', '2_3', '3_1', '4_2'];
|
||
var _0x56a351 = {
|
||
'music_tb': 'music_tr',
|
||
'music_in': 'music_tr',
|
||
'music_cr': 'music_tm',
|
||
'music_el': 'music_fl',
|
||
'music_os': 'music_fl',
|
||
'music_sp': 'music_fl',
|
||
'music_ht': 'music_lc',
|
||
'music_7k': 'music_de'
|
||
};
|
||
var _0x3d0774 = {
|
||
'tr0003': {
|
||
'event': 'device_tr0003',
|
||
'prev': null,
|
||
'next': 'tr0004',
|
||
'text': ['Brother,\x20I\x20am\x20glad\x20you\x20followed\x20me.\x20You\x20are\x20currently', 'standing\x20on\x20the\x20threshold\x20of\x20an\x20amazing\x20new\x20world,\x20a', 'Forestworld.\x20I\x20hacked\x20the\x20local\x20neurointerface\x20and', 'linked\x20it\x20to\x20myself.\x20It\x20is\x20some\x20kind\x20of\x20a\x20global\x20network.', 'One\x20of\x20the\x20functions\x20allows\x20me\x20to\x20leave\x20messages.', '', 'The\x20neurointerface\x20is\x20keyed\x20to\x20my\x20DNA;\x20since\x20you\x20are\x20my', 'twin,\x20you\x20should\x20be\x20able\x20to\x20access\x20them\x20as\x20well.']
|
||
},
|
||
'tr0004': {
|
||
'event': 'device_tr0004',
|
||
'prev': 'tr0003',
|
||
'next': 'tmp07',
|
||
'text': ['This\x20world\x20has\x20been\x20abandoned,\x20like\x20all\x20the\x20others.\x20But', 'unlike\x20the\x20Underground\x20City,\x20here\x20the\x20signs\x20of\x20the', 'runaway\x20are\x20all\x20over\x20the\x20place.\x20I\x20am\x20trying\x20to\x20figure', 'out\x20who\x20these\x20people\x20were.\x20Why\x20did\x20they\x20flee\x20and\x20where', 'did\x20they\x20go?\x20A\x20lot\x20of\x20questions.\x20So\x20far,\x20I\x20know\x20that\x20the', 'Tree,\x20at\x20the\x20foot\x20of\x20which\x20you\x20are\x20standing,\x20consists', 'of\x20several\x20levels.\x20I\x20will\x20try\x20to\x20move\x20on\x20to\x20the\x20second\x20level.', 'Perhaps\x20that\x20strange\x20mechanism\x20in\x20the\x20ruins\x20of\x20the', 'temple\x20with\x20the\x20attached\x20ropes\x20from\x20the\x20first\x20door\x20will', 'help\x20me.']
|
||
},
|
||
'tmp07': {
|
||
'event': 'device_tmp07',
|
||
'prev': 'tr0004',
|
||
'next': 'pr02',
|
||
'text': ['I\x20am\x20starting\x20to\x20understand\x20the\x20purpose\x20of\x20this\x20forest.\x20It', 'is\x20similar\x20to\x20a\x20transfer\x20station\x20in\x20some\x20kind\x20of\x20global', 'network\x20of\x20the\x20worlds.\x20Every\x20Tree\x20in\x20the\x20Forest\x20has', 'Doors\x20linked\x20to\x20each\x20other.\x20Inhabitants\x20of\x20the\x20Forest', 'could\x20probably\x20manage\x20them,\x20provide\x20access\x20to\x20those', 'who\x20are\x20traveling\x20across\x20the\x20worlds.\x20Those\x20Doors\x20are', 'linked\x20to\x20thousands\x20of\x20different\x20worlds.\x20Incredible!']
|
||
},
|
||
'pr02': {
|
||
'event': 'device_pr02',
|
||
'prev': 'tmp07',
|
||
'next': 'tr0302',
|
||
'text': ['It\x20seems\x20unlikely\x20that\x20the\x20Forest\x20people\x20created\x20the', 'Doors.\x20There\x20are\x20signs\x20that\x20they\x20were\x20just\x20managing', 'them,\x20while\x20the\x20actual\x20creators\x20came\x20from\x20a\x20different', 'world.\x20I\x20see\x20some\x20similarities\x20between\x20the\x20ruins\x20of\x20the', 'temple\x20and\x20ceremonial\x20constructions\x20in\x20the', 'Underground\x20City.\x20Apart\x20from\x20that,\x20the\x20same\x20strange', 'symbols\x20are\x20located\x20all\x20over\x20the\x20place.\x20Seems\x20like\x20the', 'Forest\x20people\x20and\x20the\x20Underground\x20people\x20honored\x20the', 'same\x20powerful\x20beings.\x20Perhaps,\x20those\x20beings\x20are\x20the', 'Engineers,\x20creators\x20of\x20the\x20Doors\x20network?']
|
||
},
|
||
'tr0302': {
|
||
'event': 'device_tr0302',
|
||
'prev': 'pr02',
|
||
'next': 'htf02',
|
||
'text': ['I\x20have\x20been\x20through\x20several\x20Doors,\x20visiting\x20worlds', 'where\x20the\x20Forest\x20people\x20would\x20go.\x20My\x20searches\x20have', 'already\x20yielded\x20some\x20results.\x20I\x20know\x20that\x20the\x20Forest', 'people\x20have\x20gone\x20to\x20a\x20special\x20place,\x20called\x20the\x20Refuge.', 'They\x20were\x20trying\x20to\x20hide\x20from\x20something,\x20something', 'dangerous.\x20It\x20is\x20still\x20not\x20clear\x20to\x20me\x20what\x20exactly\x20it', 'was.\x20I\x20must\x20try\x20to\x20find\x20the\x20entrance\x20to\x20the\x20Refuge.']
|
||
},
|
||
'htf02': {
|
||
'event': 'device_htf02',
|
||
'prev': 'tr0302',
|
||
'next': 'flp03',
|
||
'text': ['I\x27ve\x20found\x20a\x20blueprint;\x20evidence\x20of\x20a\x20secret\x20entrance', 'under\x20the\x20Temple\x20ruins.', 'There\x20is\x20something\x20strange\x20inside\x20it,\x20similar\x20to\x20a\x20coffin', 'or\x20a\x20sarcophagus.\x20What\x20did\x20the\x20Forest\x20people\x20hide\x20so', 'well?\x20Or\x20whom?']
|
||
},
|
||
'flp03': {
|
||
'event': 'device_flp03',
|
||
'prev': 'htf02',
|
||
'next': 'cr02',
|
||
'text': ['Go\x20down\x20to\x20the\x20foot\x20of\x20the\x20Tree\x20from\x20the\x20left\x20side\x20and', 'open\x20the\x20metal\x20door\x20with\x20a\x20picture\x20of\x20a\x20skull\x20on\x20it.\x20Next', 'you\x20will\x20enter\x20the\x20place\x20where\x20one\x20of\x20the\x20most', 'dangerous\x20substances\x20in\x20the\x20entire\x20universe\x20is\x20kept.\x20It\x20is', 'the\x20Colloidal\x20jelly.\x20Liquid\x20that\x20turns\x20anything\x20into\x20a', 'similar\x20substance\x20to\x20itself.\x20This\x20jelly\x20could\x20become', 'a\x20weapon\x20of\x20a\x20mass\x20destruction,\x20burning\x20everything\x20down', 'to\x20the\x20densest\x20layer\x20of\x20the\x20soil.\x20I\x27ve\x20drawn\x20you\x20a', 'blueprint\x20of\x20the\x20lock\x20where\x20this\x20is\x20stored.\x20It\x20is\x20hidden\x20in', 'the\x20room\x20with\x20the\x20three\x20Doors.']
|
||
},
|
||
'cr02': {
|
||
'event': 'device_cr02',
|
||
'prev': 'flp03',
|
||
'next': 'os01',
|
||
'text': ['I\x20decrypted\x20the\x20sign\x20on\x20the\x20top\x20of\x20the\x20Tree.\x20It\x20says:\x20“The', 'way\x20to\x20the\x20Refuge\x20lies\x20through\x20the\x20center\x20of\x20Giant\x20and', 'the\x20other\x20side\x20of\x20the\x20Door”.\x20What\x20could\x20it\x20possibly\x20mean?']
|
||
},
|
||
'os01': {
|
||
'event': 'device_os01',
|
||
'prev': 'cr02',
|
||
'next': 'intr0102',
|
||
'text': ['Signs\x20on\x20the\x20wall\x20of\x20the\x20crypt\x20describe\x20a\x20powerful', 'Teamster\x20race\x20and\x20their\x20Dogs.\x20A\x20long\x20time\x20ago,\x20they\x20came', 'into\x20the\x20Forest\x20world.\x20Local\x20people\x20were\x20waiting\x20for', 'them,\x20fearful\x20of\x20their\x20arrival.', 'The\x20text\x20is\x20very\x20vague,\x20and\x20difficult\x20to\x20decrypt.']
|
||
},
|
||
'intr0102': {
|
||
'event': 'device_intr0102',
|
||
'prev': 'os01',
|
||
'next': 'sign1',
|
||
'text': ['I\x27m\x20on\x20the\x20finish\x20line.\x20I\x20can\x20feel\x20the\x20entrance\x20to\x20the', 'Refuge\x20is\x20somewhere\x20near.\x20I\x20wish\x20I\x20could\x20solve\x20the\x20secret', 'behind\x20the\x20Door\x20with\x20seven\x20lamps.']
|
||
},
|
||
'sign1': {
|
||
'event': 'device_sign1',
|
||
'prev': 'intr0102',
|
||
'next': 'sign2',
|
||
'text': ['Many\x20ideas\x20for\x20locations\x20were\x20inspired\x20by\x20books\x20or\x20movies,', 'which\x20I\x27ve\x20read.\x20The\x20Forest\x20with\x20giant\x20trees,\x20some\x20of\x20which', 'are\x20hundred\x20meters\x20tall,\x20come\x20from\x20the\x20fiction\x20novel\x20by\x20Kir', 'Bulychev\x20“Village”,\x20which\x20I\x20read\x20as\x20a\x20child.\x20When\x20I\x20was', 'thinking\x20about\x20the\x20Forest\x20and\x20the\x20people,\x20who\x20live\x20on\x20these', 'branches,\x20I\x20imagined\x20a\x20big\x20amount\x20of\x20Doors\x20hidden\x20there.\x20That', 'is\x20how\x20the\x20idea\x20of\x20a\x20transfer\x20station\x20was\x20born–\x20the\x20world\x20is\x20an', 'Abandoned\x20network,\x20used\x20as\x20a\x20hub\x20for\x20traveling.', '', 'Storage\x20location,\x20designed\x20to\x20pour\x20an\x20opalescent\x20blue\x20liquid', 'into\x20the\x20Crystal\x20Skull,\x20links\x20you\x20directly\x20to\x20the\x20two\x20works.', 'Liquid,\x20which\x20turns\x20any\x20material\x20into\x20itself\x20after\x20contact\x20was', 'taken\x20from\x20the\x20novel\x20by\x20Strugatsky\x20brothers\x20“Roadside\x20Picnic”.', 'Witches\x20Jelly,\x20fearful\x20and\x20dangerous\x20substance,\x20which\x20can\x20be', 'stored\x20only\x20in\x20crystal\x20containers.\x20A\x20vessel\x20was\x20needed,\x20for\x20the', 'Player\x20to\x20pour\x20Jelly\x20into,\x20so\x20it\x20would\x20look\x20similar\x20to\x20the', 'Crystal\x20Skulls\x20from\x20the\x20movie\x20“Indiana\x20Jones\x20and\x20the\x20Kingdom', 'of\x20the\x20Crystal\x20Skull.”', 'So,\x20who\x20put\x20this\x20skull\x20into\x20the\x20Space\x20Station\x20cell?\x20And\x20why?', '', 'Forest\x20Doors\x20lead\x20into\x20different\x20worlds.\x20The\x20Player\x20can\x20explore', 'only\x20one\x20tree\x20and\x208\x20Doors,\x20but\x20how\x20many\x20of\x20them\x20are\x20in\x20the', 'Forest?\x20Possibly\x20thousands.']
|
||
},
|
||
'sign2': {
|
||
'event': 'device_sign2',
|
||
'prev': 'sign1',
|
||
'next': 'sign3',
|
||
'text': ['Going\x20down\x20into\x20the\x20trunk,\x20you\x20find\x20that\x20after\x20you\x20open\x20the', 'Door\x20from\x20the\x20other\x20side,\x20you\x20get\x20to\x20a\x20previously\x20inaccessible', 'part\x20of\x20the\x20targeted\x20world,\x20under\x20a\x20different\x20angle.\x20This\x20kind', 'of\x20joke\x20opened\x20up\x20new\x20possibilities\x20for\x20creating\x20brainteasers.', 'For\x20example,\x20this\x20is\x20how\x20a\x20Player\x20gets\x20into\x20the\x20Prison\x20location,', 'in\x20the\x20beginning\x20from\x20the\x20interrogation\x20room\x20side\x20and\x20later\x20on', 'from\x20the\x20observer\x20side.\x20In\x20the\x20old\x20movie\x20“Labyrinth”,\x20directed\x20by', 'Jim\x20Henson,\x20in\x20which\x20David\x20Bowie\x20played\x20the\x20Goblin\x20King,\x20midget\x20Hogle', 'does\x20a\x20similar\x20trick,\x20helping\x20Sarah\x20to\x20get\x20out\x20of\x20the\x20mines.', '', 'The\x20game\x20starts\x20at\x20the\x20same\x20point,\x20where\x20the\x20first\x20game\x20finished,', 'in\x20front\x20of\x20the\x20second\x20door\x20to\x20Tibet.\x20But\x20you\x20noticed,\x20that\x20there\x20was', 'something\x20wrong\x20with\x20the\x20world\x20of\x20Tibet.\x20The\x20left\x20door\x20had\x20rotten\x20and', 'crumbled,\x20while\x20the\x20lake\x20had\x20been\x20frozen\x20and\x20it\x20seemed\x20like\x20even\x20the', 'line\x20of\x20the\x20mountains\x20peaks\x20had\x20changed.\x20Possibly,\x20it\x20is\x20a\x20time', 'anomaly\x20that\x20threw\x20a\x20Player\x20many\x20years\x20ahead.', '', 'The\x20location\x20with\x20the\x20infinite\x20staircase\x20and\x20the\x20secret\x20passage\x20was', 'inspired\x20by\x20the\x20dystopic\x20novel\x20by\x20Jan\x20Weiss\x20“House\x20of\x20Thousand\x20Floors”.', 'The\x20main\x20character\x20wakes\x20up\x20in\x20a\x20strange\x20place,\x20remembers\x20nothing,', 'even\x20his\x20own\x20name.\x20Getting\x20out\x20of\x20the\x20endless\x20staircase,\x20he\x20eventually', 'appears\x20in\x20one\x20of\x20the\x20most\x20impregnable\x20places\x20on\x20Earth\x20–\x20Muller\x20house,', 'a\x20thousand\x20floor\x20skyscraper.\x20It\x20is\x20a\x20separate\x20totalitarian\x20state,', 'under\x20the\x20rule\x20of\x20mysterious\x20Ogisphere\x20Muller.']
|
||
},
|
||
'sign3': {
|
||
'event': 'device_sign3',
|
||
'prev': 'sign2',
|
||
'next': 'sign4',
|
||
'text': ['Ironically,\x20the\x20player\x20ignores\x20the\x20first\x20living\x20creature\x20that\x20', 'they\x20meet\x20in\x20the\x20abandoned\x20worlds.\x20Due\x20to\x20the\x20player\x27s\x20lack\x20of\x20', 'knowledge,\x20they\x20turn\x20off\x20the\x20power\x20of\x20his\x20sarcophagus\x20in\x20the\x20', 'crypt\x20beneath\x20the\x20temple.', '', 'Perhaps\x20this\x20alien\x20could\x20have\x20answered\x20a\x20lot\x20of\x20questions\x20', 'about\x20what\x20happened\x20in\x20the\x20worlds.', '', 'You\x20have\x20probably\x20already\x20realized\x20that\x20the\x20locations\x20of\x20the\x20', 'orbital\x20station,\x20flying\x20platform\x20and\x20sand\x20planet\x20are\x20located\x20in\x20', 'the\x20same\x20world.\x20Three\x20doors\x20from\x20the\x20same\x20room\x20in\x20the\x20forest\x20', 'lead\x20to\x20them.\x20The\x20locations\x20are\x20connected\x20by\x20the\x20space\x20elevator.\x20', 'The\x20flying\x20platform,\x20a\x20command\x20post\x20high\x20in\x20the\x20sky\x20was\x20inspired\x20', 'by\x20something\x20I\x20saw\x20in\x20the\x20movie\x20oblivion.']
|
||
},
|
||
'sign4': {
|
||
'event': 'device_sign4',
|
||
'prev': 'sign3',
|
||
'next': 'tb04b',
|
||
'text': ['Some\x20of\x20you\x20have\x20solved\x20the\x20task\x20on\x20the\x20looped\x20rooms\x20after', 'the\x20sixth\x20Door\x20and\x20found\x20the\x20last\x20secret.', 'This\x20brainteaser\x20is\x20in\x20fact,\x20an\x20interpretation\x20of\x20a\x20popular', 'riddle,\x20frequently\x20used\x20during\x20job\x20interviews\x20with\x20programmers.', 'The\x20original\x20task\x20is\x20about\x20a\x20train,\x20the\x20cars\x20of\x20which', 'create\x20a\x20vicious\x20circle.']
|
||
},
|
||
'tb04b': {
|
||
'event': 'device_tb04b',
|
||
'prev': 'sign4',
|
||
'next': null,
|
||
'text': ['My\x20dear\x20brother.\x20You\x20have\x20to\x20follow\x20me\x20and\x20travel\x20to', 'the\x20new\x20world.\x20The\x20Forest\x20people\x20called\x20it\x20Refuge.\x20I\x20hope', 'that\x20you\x20will\x20be\x20able\x20to\x20reach\x20me\x20there\x20and\x20together\x20we', 'will\x20find\x20more\x20answers.\x20Good\x20luck.']
|
||
}
|
||
};
|
||
var _0x368ce2 = [
|
||
['Language:\x20English', 'Object:Citizen1984', 'Acsess:\x20granted'],
|
||
['Incoming\x20message'],
|
||
['A:\x20Is\x20anybody\x20here?\x20Someone?'],
|
||
['YOU:\x20Yes,\x20I\x27m\x20here.'],
|
||
['A:\x20Oh,\x20it\x20looks\x20like\x20I\x27m\x20not\x20the\x20only\x20one\x20who\x20survived.\x20Where\x20are\x20you?'],
|
||
['YOU:\x20I\x20think\x20I\x27m\x20at\x20the\x20entrance\x20to\x20the\x20Refuge.\x20Who\x20are\x20you?'],
|
||
['A:\x20I\x20thought\x20that\x20I\x20was\x20alone\x20here.\x20Are\x20you\x20from\x20the\x20Forest\x20world?\x20Or\x20from', '\x20\x20\x20the\x20outside?'],
|
||
['YOU:\x20I\x27m\x20not\x20from\x20the\x20Forest.'],
|
||
['A:\x20Are\x20you\x20thinking\x20of\x20going\x20to\x20the\x20Refuge?'],
|
||
['YOU:\x20Yes.\x20Are\x20you\x20there?'],
|
||
['A:\x20I\x20don\x27t\x20know\x20where\x20I\x20am.\x20I\x20was\x20among\x20the\x20refugees.\x20Yes,\x20probably\x20in\x20the', '\x20\x20\x20Refuge.\x20It\x27s\x20dark.'],
|
||
['YOU:\x20What\x20happened?'],
|
||
['A:\x20We\x20ran\x20here\x20from\x20the\x20Forest.\x20The\x20Conductor\x20opened\x20the\x20door...\x20Seems\x20like', '\x20\x20\x20we\x20did\x20not\x20make\x20it...\x20there\x20was\x20a\x20strong\x20crash,\x20or\x20explosion.\x20I\x20awaken.', '\x20\x20\x20It\x27s\x20dark\x20here.\x20I\x20feel\x20nothing.\x20I\x20have\x20my\x20own\x20neurointerface,\x20that’s\x20how', '\x20\x20\x20I\x27ve\x20been\x20sending\x20messages\x20to\x20the\x20network\x20from\x20time\x20to\x20time.\x20But\x20no\x20one', '\x20\x20\x20answered\x20before\x20you\x20arrived.'],
|
||
['Connection\x20lost'],
|
||
['Connection\x20restored'],
|
||
['YOU:\x20What\x20happened\x20in\x20the\x20Forest?'],
|
||
['A:\x20It\x20had\x20to\x20happen\x20sooner\x20or\x20later.\x20The\x20Old\x20predictions.\x20No\x20one\x20believed\x20in', '\x20\x20\x20them.\x20We\x20trusted\x20the\x20thing\x20that\x20destroyed\x20us.\x20Some\x20were\x20gone\x20to\x20different', '\x20\x20\x20worlds.\x20Most\x20of\x20them\x20went\x20to\x20the\x20Refuge.'],
|
||
['YOU:\x20What\x20are\x20you\x20talking\x20about?'],
|
||
['A:\x20Darkness.\x20I\x20am\x20here.\x20Why\x20don\x27t\x20I\x20feel\x20my\x20body?'],
|
||
['A:\x20I’m\x20in\x20the\x20western\x20part.\x20You\x20have\x20to\x20get\x20into\x20the\x20temple.\x20Remember...'],
|
||
['Connection\x20failed.\x20Press\x20to\x20continue.'],
|
||
['Access\x20granted.\x20Door\x20is\x20opening.']
|
||
];
|
||
for (var _0xd4143 in _0x3d0774) {
|
||
if (!_0x3d0774['hasOwnProperty'](_0xd4143)) continue;
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x3d0774[_0xd4143]['length']; _0x5a8aa6++) {
|
||
_0x3d0774[_0xd4143][_0x5a8aa6]['text'] = _0x3d0774[_0xd4143][_0x5a8aa6]['text']['toUpperCase']();
|
||
}
|
||
}
|
||
var _0x2a4c4e = function(_0x37e384, _0x571594) {
|
||
if (_0x571594 === null || typeof _0x571594 === 'undefined') {
|
||
return _0x3d0774[_0x37e384];
|
||
}
|
||
var _0x14d679 = _0x571594 ? 'next' : 'prev';
|
||
var _0x571594 = _0x3d0774[_0x37e384][_0x14d679];
|
||
if (!_0x571594) return null;
|
||
while (!_0xb43598['getEvent'](_0x3d0774[_0x571594]['event'])) {
|
||
_0x571594 = _0x3d0774[_0x571594][_0x14d679];
|
||
if (!_0x571594) return null;
|
||
}
|
||
return _0x571594;
|
||
};
|
||
var _0x6acfe0 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function _0x6acfe0() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'loader'
|
||
});
|
||
},
|
||
'preload': function() {
|
||
this['load']['image']('splash', 'images/splash/card-symbol-2.png');
|
||
this['load']['bitmapFont']('rough_draft', 'fonts/font.png', 'fonts/font.xml');
|
||
},
|
||
'create': function() {
|
||
_0x493b23();
|
||
this['scene']['start']('splashLoader');
|
||
}
|
||
});
|
||
var _0x22f8fb = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function _0x6acfe0() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'splashLoader'
|
||
});
|
||
},
|
||
'preload': function() {
|
||
this['add']['image'](_0x2aacf1, _0x25d46a - 0x32, 'splash')['setScale'](0.8);
|
||
var _0x237d83 = this['add']['text'](_0x2aacf1, _0x25d46a, '', {
|
||
'color': '#b3f05c',
|
||
'align': 'center',
|
||
'fontFamily': 'textFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['load']['on']('progress', function(_0x26c17d) {
|
||
_0x237d83['setText']('' + parseInt(_0x26c17d * 0x64));
|
||
});
|
||
this['load']['on']('complete', function() {
|
||
_0x237d83['destroy']();
|
||
});
|
||
this['load']['image']('window_small', 'images/menu/window-small.png');
|
||
this['load']['image']('btn_play', 'images/menu/btn_play.png');
|
||
this['load']['image']('btn_settings', 'images/menu/btn_settings.png');
|
||
this['load']['image']('bg_mainmenu', 'images/menu/bg-mainmenu_1_5.jpg');
|
||
this['load']['image']('btn_green_small', 'images/menu/btn_green_small.png');
|
||
this['load']['image']('btn_credits', 'images/menu/btn_credits.png');
|
||
this['load']['image']('btn_back', 'images/menu/btn_back.png');
|
||
this['load']['image']('credits_bg', 'images/menu/credits_bg.jpg');
|
||
this['load']['image']('btn_music_off', 'images/menu/btn_music_off.png');
|
||
this['load']['image']('btn_sound_on', 'images/menu/btn_sound_on.png');
|
||
this['load']['image']('btn_sound_off', 'images/menu/btn_sound_off.png');
|
||
this['load']['image']('btn_music_on', 'images/menu/btn_music_on.png');
|
||
this['load']['image']('logo_through_small', 'images/menu/logo_through_small.png');
|
||
this['load']['image']('btn_navy_small', 'images/menu/btn_navy_small.png');
|
||
this['load']['audio']('music_tr', ['sound/music/tr.mp3']);
|
||
this['load']['audio']('music_tm', ['sound/music/tmp.mp3']);
|
||
this['load']['audio']('music_fl', ['sound/music/flp.mp3']);
|
||
this['load']['audio']('music_lc', ['sound/music/lch.mp3']);
|
||
this['load']['audio']('music_de', ['sound/music/dep.mp3']);
|
||
this['load']['audio']('music_pr', ['sound/music/pri.mp3']);
|
||
this['load']['audio']('music_menu', ['sound/music/menu.mp3']);
|
||
this['load']['audio']('flp04_open_door_flp04', ['sound/sfx/nonrepeating/flp04_open_door_flp04.mp3']);
|
||
this['load']['audio']('flp04_lever_on_flp04', ['sound/sfx/nonrepeating/flp04_lever_on_flp04.mp3']);
|
||
this['load']['audio']('flp05_open_lock_flp05', ['sound/sfx/nonrepeating/flp05_open_lock_flp05.mp3']);
|
||
this['load']['audio']('flp05_press_lock_flp05', ['sound/sfx/nonrepeating/flp05_press_lock_flp05.mp3']);
|
||
this['load']['audio']('dep02_open_hatch_dep02', ['sound/sfx/nonrepeating/dep02_open_hatch_dep02.mp3']);
|
||
this['load']['audio']('dep02_insert_cylinder_dep02', ['sound/sfx/nonrepeating/dep02_insert_cylinder_dep02.mp3']);
|
||
this['load']['audio']('dep06_fill_skull', ['sound/sfx/nonrepeating/dep_fill_skull.mp3']);
|
||
this['load']['audio']('tmp05_puzzle_slide_tmp06', ['sound/sfx/nonrepeating/tmp06_puzzle_slide_tmp06.mp3']);
|
||
this['load']['audio']('tmp05_mechanism_tmp06', ['sound/sfx/nonrepeating/tmp06_mechanism_tmp06.mp3']);
|
||
this['load']['audio']('tmp06_insert_pyramide', ['sound/sfx/nonrepeating/tmp_insert_pyramide.mp3']);
|
||
this['load']['audio']('sp01_unhide_hatch', ['sound/sfx/nonrepeating/sp01_unhide_hatch.mp3']);
|
||
this['load']['audio']('sp01_open_hatch_sp01', ['sound/sfx/nonrepeating/sp01_open_hatch_sp01.mp3']);
|
||
this['load']['audio']('sp02_unhide_laser', ['sound/sfx/nonrepeating/sp02_unhide_laser.mp3']);
|
||
this['load']['audio']('sp02_open_laser', ['sound/sfx/nonrepeating/sp02_open_laser.mp3']);
|
||
this['load']['audio']('sp02_laser_rays', ['sound/sfx/nonrepeating/sp02_laser_rays.mp3']);
|
||
this['load']['audio']('sp04_btn_laser_sp04', ['sound/sfx/nonrepeating/sp04_btn_laser_sp04.mp3']);
|
||
this['load']['audio']('sp04_screens_on_sp04', ['sound/sfx/nonrepeating/sp04_screens_on_sp04.mp3']);
|
||
this['load']['audio']('sp04_call_el_sp04', ['sound/sfx/nonrepeating/sp04_call_el_sp04.mp3']);
|
||
this['load']['audio']('sp04_lever_error_sp04', ['sound/sfx/nonrepeating/sp04_lever_error_sp04.mp3']);
|
||
this['load']['audio']('sp04_lever_on_sp04', ['sound/sfx/nonrepeating/sp04_lever_on_sp04.mp3']);
|
||
this['load']['audio']('os02_btn_os02', ['sound/sfx/nonrepeating/os02_btn_os02.mp3']);
|
||
this['load']['audio']('os02_error_os02', ['sound/sfx/nonrepeating/os02_error_os02.mp3']);
|
||
this['load']['audio']('os02_rotate_os02', ['sound/sfx/nonrepeating/os02_rotate_os02.mp3']);
|
||
this['load']['audio']('os02_solve_os02', ['sound/sfx/nonrepeating/os02_solve_os02.mp3']);
|
||
this['load']['audio']('os04_btn_os04', ['sound/sfx/nonrepeating/os04_btn_os04.mp3']);
|
||
this['load']['audio']('os04_polarity_os04', ['sound/sfx/nonrepeating/os04_polarity_os04.mp3']);
|
||
this['load']['audio']('os04_lever_os04', ['sound/sfx/nonrepeating/os04_lever_os04.mp3']);
|
||
this['load']['audio']('tr0001_rotator', ['sound/sfx/nonrepeating/tr0001_rotator.mp3']);
|
||
this['load']['audio']('tr0001_open_dep_door', ['sound/sfx/nonrepeating/tr0001_open_dep_door.mp3']);
|
||
this['load']['audio']('tr0001_solve_lock_0001', ['sound/sfx/nonrepeating/tr0001_solve_lock_0001.mp3']);
|
||
this['load']['audio']('tr0006_rotator', ['sound/sfx/nonrepeating/tr0006_rotator.mp3']);
|
||
this['load']['audio']('tr0011_wood_stick_use', ['sound/sfx/nonrepeating/tr0011_wood_stick_use.mp3']);
|
||
this['load']['audio']('tr0011_wood_stick_connect', ['sound/sfx/nonrepeating/tr0011_wood_stick_connect.mp3']);
|
||
this['load']['audio']('tr0013_liana', ['sound/sfx/nonrepeating/tr0013_liana.mp3']);
|
||
this['load']['audio']('tr0102_ladder_down_0102', ['sound/sfx/nonrepeating/tr0102_ladder_down_0102.mp3']);
|
||
this['load']['audio']('tr0102_ladder_up_0102', ['sound/sfx/nonrepeating/tr01012_ladder_up_0102.mp3']);
|
||
this['load']['audio']('tr0202_bridge_0202', ['sound/sfx/nonrepeating/tr0202_bridge_0202.mp3']);
|
||
this['load']['audio']('tr0203_saw_working', ['sound/sfx/nonrepeating/tr0203_saw_working.mp3']);
|
||
this['load']['audio']('tr0203_wood_stick_sway', ['sound/sfx/nonrepeating/tr0203_wood_stick_sway.mp3']);
|
||
this['load']['audio']('tr0701_key_fall_0701', ['sound/sfx/nonrepeating/tr0701_key_fall_0701.mp3']);
|
||
this['load']['audio']('tr0703_unfill_skull', ['sound/sfx/nonrepeating/tr0703_unfill_skull.mp3']);
|
||
this['load']['audio']('el_move', ['sound/sfx/nonrepeating/el_move.mp3']);
|
||
this['load']['audio']('el_stop', ['sound/sfx/nonrepeating/el_stop.mp3']);
|
||
this['load']['audio']('el_insert_el_btn', ['sound/sfx/nonrepeating/el_insert_el_btn.mp3']);
|
||
this['load']['audio']('el_open_el_door', ['sound/sfx/nonrepeating/el_open_el_door.mp3']);
|
||
this['load']['audio']('el_press_el_btn', ['sound/sfx/nonrepeating/el_press_el_btn.mp3']);
|
||
this['load']['audio']('el_arrives', ['sound/sfx/nonrepeating/el_arrives.mp3']);
|
||
this['load']['audio']('cr3_kill_engineer', ['sound/sfx/nonrepeating/cr3_kill_engineer.mp3']);
|
||
this['load']['audio']('lch01_mix_rooms_lch01', ['sound/sfx/nonrepeating/lch01_mix_rooms_lch01.mp3']);
|
||
this['load']['audio']('lch01_lever_lch01', ['sound/sfx/nonrepeating/lch01_lever_lch01.mp3']);
|
||
this['load']['audio']('lch01_btn_lch01', ['sound/sfx/nonrepeating/lch01_btn_lch01.mp3']);
|
||
this['load']['audio']('lch02_switch_lch02', ['sound/sfx/nonrepeating/lch02_switch_lch02.mp3']);
|
||
this['load']['audio']('tbt_exit_door_key', ['sound/sfx/nonrepeating/tbt_exit_door_key.mp3']);
|
||
this['load']['audio']('tbt_exit_door_open', ['sound/sfx/nonrepeating/tbt_exit_door_open.mp3']);
|
||
this['load']['audio']('htf01_open_hidden_door_htf01', ['sound/sfx/nonrepeating/htf01_open_hidden_door_htf01.mp3']);
|
||
this['load']['audio']('htf01_press_tile_htf01', ['sound/sfx/nonrepeating/htf01_press_tile_htf01.mp3']);
|
||
this['load']['audio']('htf03_puzzle_deactivation_htf03', ['sound/sfx/nonrepeating/htf03_puzzle_deactivation_htf03.mp3']);
|
||
this['load']['audio']('htf03_error_chip_htf03', ['sound/sfx/nonrepeating/htf03_error_chip_htf03.mp3']);
|
||
this['load']['audio']('htf03_solve', ['sound/sfx/nonrepeating/htf03_solve.mp3']);
|
||
this['load']['audio']('htf03_switch_htf03', ['sound/sfx/nonrepeating/htf03_switch_htf03.mp3']);
|
||
this['load']['audio']('htf03_move_chip_htf03', ['sound/sfx/nonrepeating/htf03_move_chip_htf03.mp3']);
|
||
this['load']['audio']('htf03_puzzle_activation', ['sound/sfx/nonrepeating/htf03_puzzle_activation.mp3']);
|
||
this['load']['audio']('htf03_choose_chip_htf03', ['sound/sfx/nonrepeating/htf03_choose_chip_htf03.mp3']);
|
||
this['load']['audio']('htf03_no_moves_htf03', ['sound/sfx/nonrepeating/htf03_no_moves_htf03.mp3']);
|
||
this['load']['audio']('7k_press_cube_7k', ['sound/sfx/nonrepeating/7k_press_cube_7k.mp3']);
|
||
this['load']['audio']('7k_unhide_keydestroyer', ['sound/sfx/nonrepeating/7k_unhide_keydestroyer.mp3']);
|
||
this['load']['audio']('7k_unhide_exit_key', ['sound/sfx/nonrepeating/7k_unhide_exit_key.mp3']);
|
||
this['load']['audio']('7k_destroy_key', ['sound/sfx/nonrepeating/7k_destroy_key.mp3']);
|
||
this['load']['audio']('pr03_line_press_pr01', ['sound/sfx/nonrepeating/pr01_line_press_pr01.mp3']);
|
||
this['load']['audio']('pr03_open_lock_pr02', ['sound/sfx/nonrepeating/pr02_open_lock_pr02.mp3']);
|
||
this['load']['audio']('use', ['sound/sfx/repeating/use.mp3']);
|
||
this['load']['audio']('open_door', ['sound/sfx/repeating/open_door.mp3']);
|
||
this['load']['audio']('close_door', ['sound/sfx/repeating/close_door.mp3']);
|
||
this['load']['audio']('unlock_door', ['sound/sfx/repeating/unlock_door.mp3']);
|
||
this['load']['audio']('secret', ['sound/sfx/repeating/secret.mp3']);
|
||
this['load']['audio']('puzzle_in', ['sound/sfx/repeating/puzzle_in.mp3']);
|
||
this['load']['audio']('puzzle_out', ['sound/sfx/repeating/puzzle_out.mp3']);
|
||
this['load']['audio']('footsteps', ['sound/sfx/repeating/footsteps.mp3']);
|
||
this['load']['audio']('transition_to', ['sound/sfx/repeating/transition_to.mp3']);
|
||
this['load']['audio']('transition_portal', ['sound/sfx/repeating/transition_tmp03.mp3']);
|
||
this['load']['audio']('interface_use', ['sound/sfx/repeating/interface_use.mp3']);
|
||
this['load']['audio']('interface_turn_page', ['sound/sfx/repeating/interface_turn_page.mp3']);
|
||
this['load']['audio']('interface_enter', ['sound/sfx/repeating/interface_enter.mp3']);
|
||
this['load']['audio']('interface_exit', ['sound/sfx/repeating/interface_exit.mp3']);
|
||
this['load']['audio']('ui_inventory_open', ['sound/sfx/menu/ui_inventory_open.mp3']);
|
||
this['load']['audio']('ui_inventory_close', ['sound/sfx/menu/ui_inventory_close.mp3']);
|
||
this['load']['audio']('ui_select_item', ['sound/sfx/menu/ui_select_item.mp3']);
|
||
this['load']['audio']('ui_back_item', ['sound/sfx/menu/ui_back_item.mp3']);
|
||
this['load']['audio']('ui_pickup_item', ['sound/sfx/menu/ui_pickup_item.mp3']);
|
||
this['load']['audio']('menu_over', ['sound/sfx/menu/menu_over.mp3']);
|
||
this['load']['audio']('menu_click', ['sound/sfx/menu/menu_click.mp3']);
|
||
this['load']['atlas']('lch01_panel_numbers', 'images/animations/lch/lch01/panel/lch01_panel_numbers.png', 'images/animations/lch/lch01/panel/lch01_panel_numbers.json');
|
||
this['load']['image']('inventory_arrow', 'images/inventory/inventory_arrow.png');
|
||
this['load']['image']('inventory_line', 'images/inventory/inventory_background.png');
|
||
this['load']['image']('tr0002_saw', 'images/items/scene/tr0002_saw.png');
|
||
this['load']['image']('tr0201b_scheme', 'images/items/scene/tscheme.png');
|
||
this['load']['image']('tr0203_bridge', 'images/items/scene/tr0203_bridge.png');
|
||
this['load']['image']('tr0501_key', 'images/items/scene/tr0501_key.png');
|
||
this['load']['image']('tr0701_key', 'images/items/scene/tr0701_key.png');
|
||
this['load']['image']('tmp04_key', 'images/items/scene/tmp04_key.png');
|
||
this['load']['image']('tmp07_key', 'images/items/scene/tmp07_key.png');
|
||
this['load']['image']('dep02_uv', 'images/items/scene/dep02_uv.png');
|
||
this['load']['image']('flp04_key', 'images/items/scene/flp04_key.png');
|
||
this['load']['image']('flp05_lens', 'images/items/scene/flp05_lens.png');
|
||
this['load']['image']('htf02_button', 'images/items/scene/hthf02_btn.png');
|
||
this['load']['image']('htf03_key04', 'images/items/scene/htf03_box_key04.png');
|
||
this['load']['image']('sp04_cylinder', 'images/items/scene/sp04_cylinder.png');
|
||
this['load']['image']('sp04_fuse', 'images/items/scene/sp04_fuse.png');
|
||
this['load']['image']('os02_key', 'images/items/scene/os02_key.png');
|
||
this['load']['image']('os02_skull', 'images/items/scene/os02_skull.png');
|
||
this['load']['image']('lch03_pyramide', 'images/items/scene/lch03_pyramide.png');
|
||
this['load']['image']('cr3_battery', 'images/items/scene/cr3_battery.png');
|
||
this['load']['atlas']('inv_items', 'images/items/items.png', 'images/items/items.json');
|
||
this['load']['image']('white', 'images/bg/white.jpg');
|
||
this['load']['image']('black', 'images/bg/black.jpg');
|
||
this['load']['image']('tb01', 'images/bg/tb01.jpg');
|
||
this['load']['image']('tb02', 'images/bg/tb02.jpg');
|
||
this['load']['image']('tb02b', 'images/bg/tb02b.jpg');
|
||
this['load']['image']('tb02b_sign_1', 'images/animations/tbt/tbt02b/tbt02B_secret_i.png');
|
||
this['load']['image']('tb02b_sign_1_on', 'images/animations/tbt/tbt02b/tbt02B_secret_i_on.png');
|
||
this['load']['image']('tb02b_sign_2', 'images/animations/tbt/tbt02b/tbt02B_secret_k.png');
|
||
this['load']['image']('tb02b_sign_2_on', 'images/animations/tbt/tbt02b/tbt02B_secret_k_on.png');
|
||
this['load']['image']('tb02b_sign_3', 'images/animations/tbt/tbt02b/tbt02B_secret_n.png');
|
||
this['load']['image']('tb02b_sign_3_on', 'images/animations/tbt/tbt02b/tbt02B_secret_n_on.png');
|
||
this['load']['image']('tb02b_sign_4', 'images/animations/tbt/tbt02b/tbt02B_secret_u.png');
|
||
this['load']['image']('tb02b_sign_4_on', 'images/animations/tbt/tbt02b/tbt02B_secret_u_on.png');
|
||
this['load']['image']('tb03', 'images/bg/tb03.jpg');
|
||
this['load']['image']('tb03b', 'images/bg/tb03b.jpg');
|
||
this['load']['image']('tb04b', 'images/bg/tb04b.jpg');
|
||
this['load']['image']('tb05b', 'images/bg/tb05b.png');
|
||
this['load']['image']('tb05b_inner', 'images/animations/tbt/tbt05b/tbt05B_inner.png');
|
||
this['load']['image']('tb05b_lock', 'images/animations/tbt/tbt05b/tbt05B_lock.png');
|
||
this['load']['image']('tb05b_outer', 'images/animations/tbt/tbt05b/tbt05B_outer.png');
|
||
this['load']['image']('tb06', 'images/bg/tb06.jpg');
|
||
this['load']['image']('tr0001', 'images/bg/tr0001.jpg');
|
||
this['load']['image']('tr0001_door', 'images/animations/tr/tr0001/door/tr0001_door.png');
|
||
this['load']['image']('tr0001_mask', 'images/animations/tr/tr0001/door/mask.png');
|
||
this['load']['image']('tr0001_lock', 'images/animations/tr/tr0001/lock/tr0001_lock.png');
|
||
this['load']['image']('tr0001_btn_zoomed', 'images/animations/tr/tr0001/lock/tr0001_btn_zoomed.png');
|
||
this['load']['image']('tr0002', 'images/bg/tr0002.jpg');
|
||
this['load']['image']('tr0003', 'images/bg/tr0003.jpg');
|
||
this['load']['image']('tr0004', 'images/bg/tr0004.jpg');
|
||
this['load']['image']('tr0005', 'images/bg/tr0005.jpg');
|
||
this['load']['image']('tr0005_shovel', 'images/items/scene/tr0004_shovel.png');
|
||
this['load']['image']('tr0006', 'images/bg/tr0006.jpg');
|
||
this['load']['image']('tr0006_switch', 'images/animations/tr/tr0006/tr0006_switch.png');
|
||
this['load']['image']('tr0007', 'images/bg/tr0007.jpg');
|
||
this['load']['image']('tr0008', 'images/bg/tr0008.jpg');
|
||
this['load']['image']('tr0009', 'images/bg/tr0009.jpg');
|
||
this['load']['image']('tr0009_door', 'images/animations/tr/tr0009/tr0009_door.png');
|
||
this['load']['image']('tr0009_door_burnt', 'images/animations/tr/tr0009/tr0009_door_burnt.png');
|
||
this['load']['image']('tr0010', 'images/bg/tr0010.jpg');
|
||
this['load']['image']('tr0010_indicator_green', 'images/animations/tr/tr0010/tr0010_lamp.png');
|
||
this['load']['image']('tr0010_ladder', 'images/animations/tr/tr0010/tr0010_ladder.png');
|
||
this['load']['image']('tr0010_ladder2', 'images/animations/tr/tr0010/tr0010_ladder2.png');
|
||
this['load']['image']('tr0011', 'images/bg/tr0011.jpg');
|
||
this['load']['image']('tr0011_lever', 'images/animations/tr/tr0011/tr0011_lever.png');
|
||
this['load']['image']('tr0011_slot', 'images/animations/tr/tr0011/tr0011_slot.png');
|
||
this['load']['image']('tr0012', 'images/bg/tr0012.jpg');
|
||
this['load']['image']('tr0013', 'images/bg/tr0013.jpg');
|
||
this['load']['image']('tr0013_liana', 'images/animations/tr/tr0013/tr0013_liana.png');
|
||
this['load']['image']('tr0013_lianas', 'images/animations/tr/tr0013/tr0013_lianas.png');
|
||
this['load']['image']('tr0101', 'images/bg/tr0101.jpg');
|
||
this['load']['image']('tr0101_indicator_red', 'images/animations/tr/tr0101/tr0101_indicator_red.png');
|
||
this['load']['image']('tr0102', 'images/bg/tr0102.jpg');
|
||
this['load']['image']('tr0102_gear', 'images/animations/tr/tr0102/tr0102_gear.png');
|
||
this['load']['image']('tr0102_cover', 'images/animations/tr/tr0102/tr0102_cover.png');
|
||
this['load']['image']('tr0102_ladder', 'images/animations/tr/tr0102/tr0102_ladder.png');
|
||
this['load']['image']('tr0102_lever', 'images/animations/tr/tr0102/tr0102_lever.png');
|
||
this['load']['image']('tr0102_lever2', 'images/animations/tr/tr0102/tr0102_lever2.png');
|
||
this['load']['image']('tr0102_small_gear', 'images/animations/tr/tr0102/tr0102_small_gear.png');
|
||
this['load']['image']('tr0102_small_gear_cover', 'images/animations/tr/tr0102/tr0102_small_gear_cover.png');
|
||
this['load']['image']('tr0103', 'images/bg/tr0103.jpg');
|
||
this['load']['image']('tr0201', 'images/bg/tr0201.jpg');
|
||
this['load']['image']('tr0201b', 'images/bg/tr0201b.png');
|
||
this['load']['image']('tr0201b_door_l', 'images/animations/tr/tr0201b/door_l/tr0201b_door_1.png');
|
||
this['load']['image']('tr0201b_door_c', 'images/animations/tr/tr0201b/door_c/tr0201b_door2.png');
|
||
this['load']['image']('tr0201b_door_r', 'images/animations/tr/tr0201b/door_r/tr0201b_door_3.png');
|
||
this['load']['image']('tr0202', 'images/bg/tr0202.jpg');
|
||
this['load']['image']('tr0202_bridge', 'images/animations/tr/tr0202/tr0202_bridge.png');
|
||
this['load']['image']('tr0202_gear1', 'images/animations/tr/tr0202/tr0202_gear1.png');
|
||
this['load']['image']('tr0202_gear2', 'images/animations/tr/tr0202/tr0202_gear2.png');
|
||
this['load']['image']('tr0202_gear3', 'images/animations/tr/tr0202/tr0202_gear3.png');
|
||
this['load']['image']('tr0202_lever', 'images/animations/tr/tr0202/tr0202_lever.png');
|
||
this['load']['image']('tr0203', 'images/bg/tr0203.jpg');
|
||
this['load']['image']('tr0203_lever', 'images/animations/tr/tr0203/tr0203_lever.png');
|
||
this['load']['image']('tr0204', 'images/bg/tr0204.jpg');
|
||
this['load']['image']('tr0300', 'images/bg/tr0300.jpg');
|
||
this['load']['image']('tr0301', 'images/bg/tr0301.jpg');
|
||
this['load']['image']('tr0302', 'images/bg/tr0302.jpg');
|
||
this['load']['image']('tr0400', 'images/bg/tr0400.jpg');
|
||
this['load']['image']('tr0401', 'images/bg/tr0401.jpg');
|
||
this['load']['image']('tr0500', 'images/bg/tr0500.jpg');
|
||
this['load']['image']('tr0501', 'images/bg/tr0501.jpg');
|
||
this['load']['image']('tr0502', 'images/bg/tr0502.jpg');
|
||
this['load']['image']('tr0502_door', 'images/animations/tr/tr0502/tr0502_door.png');
|
||
this['load']['image']('tr0503', 'images/bg/tr0503.jpg');
|
||
this['load']['image']('tr0503_door', 'images/animations/tr/tr0503/tr0503_door.png');
|
||
this['load']['image']('tr0503_door_burnt', 'images/animations/tr/tr0503/tr0503_door_burnt.png');
|
||
this['load']['image']('tr0701', 'images/bg/tr0701.jpg');
|
||
this['load']['image']('tr0702', 'images/bg/tr0702.jpg');
|
||
this['load']['image']('tr0703', 'images/bg/tr0703.jpg');
|
||
this['load']['image']('tr0703_liquid', 'images/animations/tr/tr0703/tr0703_liquid.png');
|
||
this['load']['image']('tr0703_liquid_stroke', 'images/animations/tr/tr0703/tr0703_liquid_stroke.png');
|
||
this['load']['image']('tr0703_btn', 'images/animations/tr/tr0703/tr0703_btn.png');
|
||
this['load']['image']('tr0703_mask', 'images/animations/tr/tr0703/mask.jpg');
|
||
this['load']['image']('tmp01', 'images/bg/tmp01.jpg');
|
||
this['load']['image']('tmp02', 'images/bg/tmp02.jpg');
|
||
this['load']['image']('tmp03', 'images/bg/tmp03.jpg');
|
||
this['load']['image']('tmp04', 'images/bg/tmp04.jpg');
|
||
this['load']['image']('tmp05', 'images/bg/tmp05.png');
|
||
this['load']['image']('tmp05_btn_l', 'images/animations/tmp/tmp05/button/tmp05_btn_l.png');
|
||
this['load']['image']('tmp05_btn_l_pressed', 'images/animations/tmp/tmp05/button/tmp05_btn_l_pressed.png');
|
||
this['load']['image']('tmp05_light', 'images/animations/tmp/tmp05/lines/tmp05_light.png');
|
||
this['load']['image']('tmp05_puzzle1', 'images/animations/tmp/tmp05/lines/tmp05_puzzle1.png');
|
||
this['load']['image']('tmp05_puzzle1_light1', 'images/animations/tmp/tmp05/lines/tmp05_puzzle1_light1.png');
|
||
this['load']['image']('tmp05_puzzle1_light2', 'images/animations/tmp/tmp05/lines/tmp05_puzzle1_light2.png');
|
||
this['load']['image']('tmp05_puzzle1_light3', 'images/animations/tmp/tmp05/lines/tmp05_puzzle1_light3.png');
|
||
this['load']['image']('tmp05_puzzle1_light4', 'images/animations/tmp/tmp05/lines/tmp05_puzzle1_light4.png');
|
||
this['load']['image']('tmp05_puzzle2', 'images/animations/tmp/tmp05/lines/tmp05_puzzle2.png');
|
||
this['load']['image']('tmp05_puzzle2_light1', 'images/animations/tmp/tmp05/lines/tmp05_puzzle2_light1.png');
|
||
this['load']['image']('tmp05_puzzle2_light2', 'images/animations/tmp/tmp05/lines/tmp05_puzzle2_light2.png');
|
||
this['load']['image']('tmp05_puzzle2_light3', 'images/animations/tmp/tmp05/lines/tmp05_puzzle2_light3.png');
|
||
this['load']['image']('tmp05_puzzle3', 'images/animations/tmp/tmp05/lines/tmp05_puzzle3.png');
|
||
this['load']['image']('tmp05_puzzle3_light1', 'images/animations/tmp/tmp05/lines/tmp05_puzzle3_light1.png');
|
||
this['load']['image']('tmp05_puzzle3_light2', 'images/animations/tmp/tmp05/lines/tmp05_puzzle3_light2.png');
|
||
this['load']['image']('tmp05_puzzle3_light3', 'images/animations/tmp/tmp05/lines/tmp05_puzzle3_light3.png');
|
||
this['load']['image']('tmp05_puzzle4', 'images/animations/tmp/tmp05/lines/tmp05_puzzle4.png');
|
||
this['load']['image']('tmp05_puzzle4_light1', 'images/animations/tmp/tmp05/lines/tmp05_puzzle4_light1.png');
|
||
this['load']['image']('tmp05_puzzle4_light2', 'images/animations/tmp/tmp05/lines/tmp05_puzzle4_light2.png');
|
||
this['load']['image']('tmp05_puzzle4_light3', 'images/animations/tmp/tmp05/lines/tmp05_puzzle4_light3.png');
|
||
this['load']['image']('tmp05_stairs', 'images/animations/tmp/tmp05/lines/tmp05_stairs.png');
|
||
this['load']['image']('tmp05_ropes', 'images/animations/tmp/tmp05/mechanism/tmp05_ropes.png');
|
||
this['load']['image']('tmp05_gear1', 'images/animations/tmp/tmp05/mechanism/tmp05_gear1.png');
|
||
this['load']['image']('tmp05_gear2', 'images/animations/tmp/tmp05/mechanism/tmp05_gear2.png');
|
||
this['load']['image']('tmp05_gear3', 'images/animations/tmp/tmp05/mechanism/tmp05_gear3.png');
|
||
this['load']['image']('tmp05_gear_lines', 'images/animations/tmp/tmp05/mechanism/tmp05_gear_lines.png');
|
||
this['load']['image']('tmp05_mask', 'images/animations/tmp/tmp05/mechanism/mask.png');
|
||
this['load']['image']('tmp06', 'images/bg/tmp06.jpg');
|
||
this['load']['image']('tmp05_mask', 'images/animations/tmp/tmp05/mechanism/mask.png');
|
||
this['load']['image']('tmp06_mask', 'images/animations/tmp/tmp06/mask.png');
|
||
this['load']['image']('tmp06_pyramide0', 'images/animations/tmp/tmp06/tmp06_pyramide0.png');
|
||
this['load']['image']('tmp06_pyramide1', 'images/animations/tmp/tmp06/tmp06_pyramide1.png');
|
||
this['load']['image']('tmp06_pyramide2', 'images/animations/tmp/tmp06/tmp06_pyramide2.png');
|
||
this['load']['image']('tmp06_pyramide3', 'images/animations/tmp/tmp06/tmp06_pyramide3.png');
|
||
this['load']['image']('tmp06_pyramide4', 'images/animations/tmp/tmp06/tmp06_pyramide4.png');
|
||
this['load']['image']('tmp06_pyramide5', 'images/animations/tmp/tmp06/tmp06_pyramide5.png');
|
||
this['load']['image']('tmp06_pyramide6', 'images/animations/tmp/tmp06/tmp06_pyramide6.png');
|
||
this['load']['image']('tmp06_pyramide7', 'images/animations/tmp/tmp06/tmp06_pyramide7.png');
|
||
this['load']['image']('tmp06_pyramide8', 'images/animations/tmp/tmp06/tmp06_pyramide8.png');
|
||
this['load']['image']('tmp06_pyramide9', 'images/animations/tmp/tmp06/tmp06_pyramide9.png');
|
||
this['load']['image']('tmp06_signs_flashed', 'images/animations/tmp/tmp06/tmp06_signs_flashed.png');
|
||
this['load']['image']('tmp07', 'images/bg/tmp07.jpg');
|
||
this['load']['image']('pr02', 'images/bg/pri02.jpg');
|
||
this['load']['image']('pr02_door', 'images/animations/pr/pr02/skeleton-opened_0.png');
|
||
this['load']['image']('pr03', 'images/bg/pri03.jpg');
|
||
this['load']['image']('pr03_glass', 'images/animations/pr/pr03/tile/pr03_glass.png');
|
||
this['load']['image']('pr03_glass_bg', 'images/animations/pr/pr03/tile/pr03_glass_bg.png');
|
||
this['load']['image']('pr03_glass_tile', 'images/animations/pr/pr03/tile/pr03_glass_tile.png');
|
||
this['load']['image']('pr03_lock_bg', 'images/animations/pr/pr03/lock/pr03_lock_bg.png');
|
||
this['load']['image']('pr03_lock_small', 'images/animations/pr/pr03/lock/pr03_lock_small.png');
|
||
this['load']['image']('pr03_lock_line', 'images/animations/pr/pr03/lock/pr03_lock_line.png');
|
||
this['load']['image']('pr03_lock_symb1', 'images/animations/pr/pr03/lock/symb1.jpg');
|
||
this['load']['image']('pr03_lock_symb2', 'images/animations/pr/pr03/lock/symb2.jpg');
|
||
this['load']['image']('pr03_lock_symb3', 'images/animations/pr/pr03/lock/symb3.jpg');
|
||
this['load']['image']('pr03_lock_symb4', 'images/animations/pr/pr03/lock/symb4.jpg');
|
||
this['load']['image']('pr03_lock_big_frame', 'images/animations/pr/pr03/lock/pr03_lock_big_frame.png');
|
||
this['load']['image']('pr04', 'images/bg/pri04.jpg');
|
||
this['load']['image']('pr04_code', 'images/animations/pr/pr04/pr04_code.png');
|
||
this['load']['image']('pr04_cylinder', 'images/animations/pr/pr04/pr04_cylinder.png');
|
||
this['load']['image']('pr04_device_on', 'images/animations/pr/pr04/pr04_device_on.png');
|
||
this['load']['image']('pr04_sign_off', 'images/animations/pr/pr04/pr04_sign_off.png');
|
||
this['load']['image']('pr04_sign_on', 'images/animations/pr/pr04/pr04_sign_on.png');
|
||
this['load']['image']('pr04_tile_closed', 'images/animations/pr/pr04/pr04_tile_closed.png');
|
||
this['load']['image']('pr04_tile_opened', 'images/animations/pr/pr04/pr04_tile_opened.png');
|
||
this['load']['image']('flp01', 'images/bg/flp01.jpg');
|
||
this['load']['image']('flp02', 'images/bg/flp02.jpg');
|
||
this['load']['image']('flp02_battery', 'images/animations/flp/flp02/flp02_battery.png');
|
||
this['load']['image']('flp02_lens', 'images/animations/flp/flp02/flp02_lens.png');
|
||
this['load']['image']('flp02_light', 'images/animations/flp/flp02/flp02_light.png');
|
||
this['load']['image']('flp02_laser_device', 'images/animations/flp/flp02/flp02_laser_device.png');
|
||
this['load']['image']('flp03', 'images/bg/flp03.jpg');
|
||
this['load']['image']('flp03_light', 'images/animations/flp/flp03/flp03_light.png');
|
||
this['load']['image']('flp04', 'images/bg/flp04.jpg');
|
||
this['load']['image']('flp04_creen_device', 'images/animations/flp/flp04/screen/flp04_creen_device.png');
|
||
this['load']['image']('flp04_screen_battery_on', 'images/animations/flp/flp04/screen/flp04_screen_battery_on.png');
|
||
this['load']['image']('flp04_screen_battery', 'images/animations/flp/flp04/screen/flp04_screen_battery.png');
|
||
this['load']['image']('flp04_screen_bolt', 'images/animations/flp/flp04/screen/flp04_screen_bolt.png');
|
||
this['load']['image']('flp04_screen_lens_on', 'images/animations/flp/flp04/screen/flp04_screen_lens_on.png');
|
||
this['load']['image']('flp04_screen_lens', 'images/animations/flp/flp04/screen/flp04_screen_lens.png');
|
||
this['load']['image']('flp04_screen_scheme', 'images/animations/flp/flp04/screen/flp04_screen_scheme.png');
|
||
this['load']['image']('flp04_screens', 'images/animations/flp/flp04/screen/flp04_screens.png');
|
||
this['load']['image']('flp04_shelf_door_locked', 'images/animations/flp/flp04/shelf_door_locked/skeleton-locked_0.png');
|
||
this['load']['image']('flp05', 'images/bg/flp05.jpg');
|
||
this['load']['image']('flp05_door', 'images/animations/flp/flp05/door/flp05_door.png');
|
||
this['load']['image']('flp05_mask', 'images/animations/flp/flp05/door/mask.png');
|
||
this['load']['image']('flp05_safe_bg', 'images/animations/flp/flp05/lock/flp05_safe_bg.png');
|
||
this['load']['image']('flp05_safe_line0', 'images/animations/flp/flp05/lock/flp05_safe_line0.png');
|
||
this['load']['image']('flp05_safe_line1', 'images/animations/flp/flp05/lock/flp05_safe_line1.png');
|
||
this['load']['image']('flp05_safe_line2', 'images/animations/flp/flp05/lock/flp05_safe_line2.png');
|
||
this['load']['image']('flp05_safe_line3', 'images/animations/flp/flp05/lock/flp05_safe_line3.png');
|
||
this['load']['image']('flp05_safe_line4', 'images/animations/flp/flp05/lock/flp05_safe_line4.png');
|
||
this['load']['image']('flp05_arrow', 'images/animations/flp/flp05/lock/arrow2.png');
|
||
this['load']['image']('flp05_box_closed', 'images/animations/flp/flp05/flp05_box_cover_closed.png');
|
||
this['load']['image']('flp05_box_opened', 'images/animations/flp/flp05/flp05_box_cover_opened.png');
|
||
this['load']['image']('dep02', 'images/bg/dep02.jpg');
|
||
this['load']['image']('dep02_hatch1', 'images/animations/dep/dep02/dep02hatch1.png');
|
||
this['load']['image']('dep02_hatch2', 'images/animations/dep/dep02/dep02hatch2.png');
|
||
this['load']['image']('dep02_hatchshadow', 'images/animations/dep/dep02/dep02hatchshadow.png');
|
||
this['load']['image']('dep02_mask', 'images/animations/dep/dep02/mask.png');
|
||
this['load']['image']('dep02_cylinder', 'images/animations/dep/dep02/dep02cylinder.png');
|
||
this['load']['image']('dep04', 'images/bg/dep04.jpg');
|
||
this['load']['image']('dep06', 'images/bg/dep06.jpg');
|
||
this['load']['image']('dep06_btnoff', 'images/animations/dep/dep06/dep06btnoff.png');
|
||
this['load']['image']('dep06_btnon', 'images/animations/dep/dep06/dep06btnon.png');
|
||
this['load']['image']('dep06_iconoff', 'images/animations/dep/dep06/dep06iconoff.png');
|
||
this['load']['image']('dep06_iconon', 'images/animations/dep/dep06/dep06iconon.png');
|
||
this['load']['image']('dep06_pipka', 'images/animations/dep/dep06/dep06pipka.png');
|
||
this['load']['image']('dep06_skullfill', 'images/animations/dep/dep06/dep06skullfill.png');
|
||
this['load']['image']('dep06_skull', 'images/animations/dep/dep06/dep06skull.png');
|
||
this['load']['image']('dep06_mask', 'images/animations/dep/dep06/mask.png');
|
||
this['load']['image']('htf01', 'images/bg/htf01.jpg');
|
||
this['load']['image']('htf010', 'images/bg/htf010.jpg');
|
||
this['load']['image']('htf01_tile', 'images/animations/htf/htf01/tile/hthf01_tile11.png');
|
||
this['load']['image']('htf01_lamp', 'images/animations/htf/htf01/signs/hthf01_lamp1.png');
|
||
this['load']['image']('htf01_sign1', 'images/animations/htf/htf01/signs/hthf01_sign1.png');
|
||
this['load']['image']('htf01_sign2', 'images/animations/htf/htf01/signs/hthf01_sign2.png');
|
||
this['load']['image']('htf01_sign3', 'images/animations/htf/htf01/signs/hthf01_sign3.png');
|
||
this['load']['image']('htf01_sign4', 'images/animations/htf/htf01/signs/hthf01_sign4.png');
|
||
this['load']['image']('htf02', 'images/bg/htf02.jpg');
|
||
this['load']['image']('htf02_shadow', 'images/animations/htf/htf02/hthf02_shadow.png');
|
||
this['load']['image']('htf03', 'images/bg/htf03.jpg');
|
||
this['load']['image']('htf03_box_scheme', 'images/animations/htf/htf03/box/htf_box_scheme.png');
|
||
this['load']['image']('htf03_box_indicator_black', 'images/animations/htf/htf03/box/htf_box_indicator_black.png');
|
||
this['load']['image']('htf03_box_indicator_green', 'images/animations/htf/htf03/box/htf_box_indicator_green.png');
|
||
this['load']['image']('htf03_box_sign_green2', 'images/animations/htf/htf03/box/htf_box_sign_green2.png');
|
||
this['load']['image']('htf03_box_sign_green2_', 'images/animations/htf/htf03/box/htf_box_sign_green2_.png');
|
||
this['load']['image']('htf03_box_sign_green3', 'images/animations/htf/htf03/box/htf_box_sign_green3.png');
|
||
this['load']['image']('htf03_box_sign_green3_', 'images/animations/htf/htf03/box/htf_box_sign_green3_.png');
|
||
this['load']['image']('htf03_box_sign_green4', 'images/animations/htf/htf03/box/htf_box_sign_green4.png');
|
||
this['load']['image']('htf03_box_sign_green4_', 'images/animations/htf/htf03/box/htf_box_sign_green4_.png');
|
||
this['load']['image']('htf03_box_sign_green5', 'images/animations/htf/htf03/box/htf_box_sign_green5.png');
|
||
this['load']['image']('htf03_box_sign_green5_', 'images/animations/htf/htf03/box/htf_box_sign_green5_.png');
|
||
this['load']['image']('htf03_box_switch_on', 'images/animations/htf/htf03/box/htf_box_switch_on.png');
|
||
this['load']['image']('htf03_box_switch_off', 'images/animations/htf/htf03/box/htf_box_switch_off.png');
|
||
this['load']['image']('htf03_box_cover_opened', 'images/animations/htf/htf03/htf_box_cover_opened.png');
|
||
this['load']['image']('htf03_box_cover_closed2', 'images/animations/htf/htf03/htf_box_cover_closed2.png');
|
||
this['load']['image']('htf03_box_bottom', 'images/animations/htf/htf03/htf_box_bottom.png');
|
||
this['load']['image']('htf03_switch_off', 'images/animations/htf/htf03/hthf03_switch_off.png');
|
||
this['load']['image']('htf03_switch_on', 'images/animations/htf/htf03/hthf03_switch_on.png');
|
||
this['load']['image']('htf03_shadow', 'images/animations/htf/htf03/hthf03_shadow.png');
|
||
this['load']['image']('htf03_box_closed', 'images/animations/htf/htf03/hthf03_box_closed.png');
|
||
this['load']['image']('htf03_box_opened', 'images/animations/htf/htf03/hthf03_box_opened.png');
|
||
this['load']['image']('sp01', 'images/bg/sp01.png');
|
||
this['load']['image']('sp01_hatch_covered', 'images/animations/sp/sp01/hatch/sp01_hatch_covered.png');
|
||
this['load']['image']('sp01_el', 'images/animations/sp/sp01/el/skeleton-up_0.png');
|
||
this['load']['image']('sp02', 'images/bg/sp02.jpg');
|
||
this['load']['image']('sp02_laser1', 'images/animations/sp/sp02/laser_parts/sp02_laser1.png');
|
||
this['load']['image']('sp02_laser2', 'images/animations/sp/sp02/laser_parts/sp02_laser2.png');
|
||
this['load']['image']('sp02_laser3', 'images/animations/sp/sp02/laser_parts/sp02_laser3.png');
|
||
this['load']['image']('sp02_laser4', 'images/animations/sp/sp02/laser_parts/sp02_laser4.png');
|
||
this['load']['image']('sp02_laser5', 'images/animations/sp/sp02/laser_parts/sp02_laser5.png');
|
||
this['load']['image']('sp02_laser6', 'images/animations/sp/sp02/laser_parts/sp02_laser6.png');
|
||
this['load']['image']('sp02_laser7', 'images/animations/sp/sp02/laser_parts/sp02_laser7.png');
|
||
this['load']['image']('sp02_sand', 'images/animations/sp/sp02/laser_parts/sp02_sand.png');
|
||
this['load']['image']('sp02_mask', 'images/animations/sp/sp02/mask.jpg');
|
||
this['load']['image']('sp02_laser_ray', 'images/animations/sp/sp02/laser_ray.png');
|
||
this['load']['image']('sp03', 'images/bg/sp03.jpg');
|
||
this['load']['image']('sp03_door', 'images/animations/sp/sp03/sp03_door.png');
|
||
this['load']['image']('sp03_platband', 'images/animations/sp/sp03/sp03_platband.png');
|
||
this['load']['image']('sp04', 'images/bg/sp04.jpg');
|
||
this['load']['image']('sp04_elevator_indicator', 'images/animations/sp/sp04/elevator/sp04_elevator_indicator.png');
|
||
this['load']['image']('sp04_elevator_screen', 'images/animations/sp/sp04/elevator/sp04_elevator_screen.png');
|
||
this['load']['image']('sp04_laser_detail_2', 'images/animations/sp/sp04/laser1/sp04_laser_detail_2.png');
|
||
this['load']['image']('sp04_laser_screen', 'images/animations/sp/sp04/laser1/sp04_laser_screen.png');
|
||
this['load']['image']('sp04_laser_detail_scheme', 'images/animations/sp/sp04/laser1/sp04_laser_detail_scheme.png');
|
||
this['load']['image']('sp04_laser_detail_4', 'images/animations/sp/sp04/laser1/sp04_laser_detail_4.png');
|
||
this['load']['image']('sp04_fuse_indicator', 'images/animations/sp/sp04/laser1/sp04_fuse_indicator.png');
|
||
this['load']['image']('sp04_laser_detail_3', 'images/animations/sp/sp04/laser1/sp04_laser_detail_3.png');
|
||
this['load']['image']('sp04_laser_detail_1', 'images/animations/sp/sp04/laser1/sp04_laser_detail_1.png');
|
||
this['load']['image']('sp04_laser_ind', 'images/animations/sp/sp04/laser2/sp04_laser_ind.png');
|
||
this['load']['image']('sp04_ray_screen', 'images/animations/sp/sp04/laser2/sp04_ray_screen.png');
|
||
this['load']['image']('sp04_lever_on', 'images/animations/sp/sp04/lever/skeleton-on_0.png');
|
||
this['load']['image']('sp04_btn', 'images/animations/sp/sp04/sp04_btn.png');
|
||
this['load']['image']('sp04_fuse_indicator', 'images/animations/sp/sp04/sp04_fuse_indicator.png');
|
||
this['load']['image']('sp04_ind2_off', 'images/animations/sp/sp04/sp04_ind2_off.png');
|
||
this['load']['image']('sp04_ind2_on', 'images/animations/sp/sp04/sp04_ind2_on.png');
|
||
this['load']['image']('sp04_ind3_off', 'images/animations/sp/sp04/sp04_ind3_off.png');
|
||
this['load']['image']('sp04_ind3_on', 'images/animations/sp/sp04/sp04_ind3_on.png');
|
||
this['load']['image']('sp04_ind', 'images/animations/sp/sp04/sp04_ind.png');
|
||
this['load']['image']('sp_r', 'images/bg/sp_r.jpg');
|
||
this['load']['image']('sp_l', 'images/bg/sp_l.jpg');
|
||
this['load']['image']('os01', 'images/bg/os01.png');
|
||
this['load']['image']('os01_btn', 'images/animations/os/os01/os01_btn.png');
|
||
this['load']['image']('os01_wires', 'images/animations/os/os01/os01_wires.png');
|
||
this['load']['image']('os01_secret_bg', 'images/animations/os/os01/os01_secret_bg.png');
|
||
this['load']['image']('os01_secret', 'images/animations/os/os01/os01_secret.png');
|
||
this['load']['image']('os02', 'images/bg/os02.jpg');
|
||
this['load']['image']('os02_btn_start_off', 'images/animations/os/os02/os02_btn_start_off.png');
|
||
this['load']['image']('os02_btn_start_on', 'images/animations/os/os02/os02_btn_start_on.png');
|
||
this['load']['image']('os02_btn_r', 'images/animations/os/os02/os02_btn_r2.png');
|
||
this['load']['image']('os02_btn_r_unpressed', 'images/animations/os/os02/os02_btn_r_unpressed2.png');
|
||
this['load']['image']('os02_btn_l', 'images/animations/os/os02/os02_btn_l2.png');
|
||
this['load']['image']('os02_btn_l_unpressed', 'images/animations/os/os02/os02_btn_l_unpressed2.png');
|
||
this['load']['image']('os02_ind_1_off', 'images/animations/os/os02/os02_ind_1_off.png');
|
||
this['load']['image']('os02_ind_1_on', 'images/animations/os/os02/os02_ind_1_on.png');
|
||
this['load']['image']('os02_ind_3_off', 'images/animations/os/os02/os02_ind_3_off.png');
|
||
this['load']['image']('os02_ind_3_on', 'images/animations/os/os02/os02_ind_3_on.png');
|
||
this['load']['image']('os02_ind_7_off', 'images/animations/os/os02/os02_ind_7_off.png');
|
||
this['load']['image']('os02_ind_7_on', 'images/animations/os/os02/os02_ind_7_on.png');
|
||
this['load']['image']('os02_system', 'images/animations/os/os02/os02_system.png');
|
||
this['load']['image']('os02_light', 'images/animations/os/os02/os02_light.png');
|
||
this['load']['image']('os02_closed_door', 'images/animations/os/os02/os02_closed_door.png');
|
||
this['load']['image']('os03', 'images/bg/os03.jpg');
|
||
this['load']['image']('os03_platband', 'images/animations/os/os03/os03_platband.png');
|
||
this['load']['image']('os03_door', 'images/animations/os/os03/os03_door.png');
|
||
this['load']['image']('os04', 'images/bg/os04.jpg');
|
||
this['load']['image']('os04_indicator_off', 'images/animations/os/os04/indicator_off.png');
|
||
this['load']['image']('os04_indicator_plus', 'images/animations/os/os04/indicator_plus.png');
|
||
this['load']['image']('os04_indicator_minus', 'images/animations/os/os04/indicator_minus.png');
|
||
this['load']['image']('os04_mixer_left', 'images/animations/os/os04/os04_mixer_left.png');
|
||
this['load']['image']('os04_mixer_left_minus', 'images/animations/os/os04/os04_mixer_left_minus.png');
|
||
this['load']['image']('os04_mixer_right', 'images/animations/os/os04/os04_mixer_right.png');
|
||
this['load']['image']('os04_mixer_right_minus', 'images/animations/os/os04/os04_mixer_right_minus.png');
|
||
this['load']['image']('os04_mixer_bottom', 'images/animations/os/os04/os04_mixer_bottom.png');
|
||
this['load']['image']('os04_mixer_bottom_minus', 'images/animations/os/os04/os04_mixer_bottom__minus.png');
|
||
this['load']['image']('os04_mixer_top', 'images/animations/os/os04/os04_mixer_top.png');
|
||
this['load']['image']('os04_mixer_top_minus', 'images/animations/os/os04/os04_mixer_top__minus.png');
|
||
this['load']['image']('os04_switch', 'images/animations/os/os04/os04_switch.png');
|
||
this['load']['image']('os04_switch_switch', 'images/animations/os/os04/os04_switch_switch.png');
|
||
this['load']['image']('os04_power_bottom_minus', 'images/animations/os/os04/os04_power_bottom_minus.png');
|
||
this['load']['image']('os04_power_bottom_plus', 'images/animations/os/os04/os04_power_bottom_plus.png');
|
||
this['load']['image']('os04_power_right_minus', 'images/animations/os/os04/os04_power_right_minus.png');
|
||
this['load']['image']('os04_power_right_plus', 'images/animations/os/os04/os04_power_right_plus.png');
|
||
this['load']['image']('os04_power_left_minus', 'images/animations/os/os04/os04_power_left_minus.png');
|
||
this['load']['image']('os04_power_left_plus', 'images/animations/os/os04/os04_power_left_plus.png');
|
||
this['load']['image']('os04_laser_activated', 'images/animations/os/os04/os04_laser_activated.png');
|
||
this['load']['image']('os04_btn_off', 'images/animations/os/os04/os04_btn_off.png');
|
||
this['load']['image']('os04_btn_on', 'images/animations/os/os04/os04_btn_on.png');
|
||
this['load']['image']('el', 'images/bg/el_sp.png');
|
||
this['load']['image']('elsp_btn_broken', 'images/animations/el/el_btn_broken.png');
|
||
this['load']['image']('elsp_btn', 'images/animations/el/el_btn.png');
|
||
this['load']['image']('elsp_btn_pressed', 'images/animations/el/el_btn_pressed.png');
|
||
this['load']['image']('el_bg1', 'images/animations/el/bg1.png');
|
||
this['load']['image']('el_bg2', 'images/animations/el/bg2.png');
|
||
this['load']['image']('el_bg3', 'images/animations/el/bg3.png');
|
||
this['load']['image']('el_bg4', 'images/animations/el/bg4.png');
|
||
this['load']['image']('el_door', 'images/animations/el/door/el_door.png');
|
||
this['load']['image']('el_door_mask', 'images/animations/el/door/mask.png');
|
||
this['load']['image']('el_indicator_1', 'images/animations/el/indicator/el_indicator_1.png');
|
||
this['load']['image']('el_indicator_1to2', 'images/animations/el/indicator/el_indicator_1to2.png');
|
||
this['load']['image']('el_indicator_2', 'images/animations/el/indicator/el_indicator_2.png');
|
||
this['load']['image']('el_indicator_2to3', 'images/animations/el/indicator/el_indicator_2to3.png');
|
||
this['load']['image']('el_indicator_3', 'images/animations/el/indicator/el_indicator_3.png');
|
||
this['load']['image']('el_indicator_off', 'images/animations/el/indicator/el_indicator_off.png');
|
||
this['load']['image']('lch01', 'images/bg/lch01.png');
|
||
this['load']['image']('lch01_panel_bg', 'images/animations/lch/lch01/panel/lch01_panel_bg.png');
|
||
this['load']['image']('lch01_hatch_opened', 'images/animations/lch/lch01/hatch/lch01_hatch_opened.png');
|
||
this['load']['image']('lch01_hatch_closed', 'images/animations/lch/lch01/hatch/lch01_hatch_closed.png');
|
||
this['load']['image']('lch01_secret_sign', 'images/animations/lch/lch01/lch01_secret_sign.png');
|
||
this['load']['image']('lch01_secret_sign_on', 'images/animations/lch/lch01/lch01_secret_sign_on.png');
|
||
this['load']['image']('lch02_lamp_green', 'images/animations/lch/lch02/lch02_lamp_green.png');
|
||
this['load']['image']('lch02_lamp_red', 'images/animations/lch/lch02/lch02_lamp_red.png');
|
||
this['load']['image']('lch02_switch', 'images/animations/lch/lch02/lch02_switch.png');
|
||
this['load']['image']('lch02_switch_on', 'images/animations/lch/lch02/lch02_switch_on.png');
|
||
this['load']['image']('intr0003', 'images/bg/intr0003.jpg');
|
||
this['load']['image']('intr0004', 'images/bg/intr0004.jpg');
|
||
this['load']['image']('intr0004_sign', 'images/animations/intr/intr0004/intr0004_sign.png');
|
||
this['load']['image']('intr0004_sign_on', 'images/animations/intr/intr0004/intr0004_sign_on.png');
|
||
this['load']['image']('intr0006', 'images/bg/intr0006.jpg');
|
||
this['load']['image']('intr0006_rotator', 'images/animations/intr/intr0006/intr0006_rotator.png');
|
||
this['load']['image']('intr0006_rotator_on', 'images/animations/intr/intr0006/intr0006_rotator_on.png');
|
||
this['load']['image']('intr0007_pipe1', 'images/animations/intr/intr0007/intr0007_pipe1.png');
|
||
this['load']['image']('intr0007_hatch', 'images/animations/intr/intr0007/intr0007_hatch.png');
|
||
this['load']['image']('intr0007_rotator', 'images/animations/intr/intr0007/intr0007_rotator.png');
|
||
this['load']['image']('intr0007_rotator_on', 'images/animations/intr/intr0007/intr0007_rotator_on.png');
|
||
this['load']['image']('intr0007', 'images/bg/intr0007.jpg');
|
||
this['load']['image']('intr0009', 'images/bg/intr0009.jpg');
|
||
this['load']['image']('intr0010', 'images/bg/intr0010.jpg');
|
||
this['load']['image']('intr0101', 'images/bg/intr0101.jpg');
|
||
this['load']['image']('intr0102', 'images/bg/intr0102.jpg');
|
||
this['load']['image']('intr0201', 'images/bg/intr0201.jpg');
|
||
this['load']['image']('intr0302', 'images/bg/intr0302.jpg');
|
||
this['load']['image']('intr0303', 'images/bg/intr0303.jpg');
|
||
this['load']['image']('intr0401', 'images/bg/intr0401.jpg');
|
||
this['load']['image']('intr0503', 'images/bg/intr0503.jpg');
|
||
this['load']['image']('lch02', 'images/bg/lch02.jpg');
|
||
this['load']['image']('lch03', 'images/bg/lch03.jpg');
|
||
this['load']['image']('lch03_door_thing', 'images/animations/lch/lch03/lch03_door_thing.png');
|
||
this['load']['image']('cr02', 'images/bg/cr2.jpg');
|
||
this['load']['image']('cr03', 'images/bg/cr3.jpg');
|
||
this['load']['image']('cr03_glass', 'images/animations/cr3/glass.png');
|
||
this['load']['image']('cr03_light', 'images/animations/cr3/cr3_light.png');
|
||
this['load']['image']('7ka', 'images/bg/7kA.jpg');
|
||
this['load']['image']('7kb', 'images/bg/7kB.jpg');
|
||
this['load']['image']('7ka_keyplace', 'images/animations/k7/box/7kA_keyplace.png');
|
||
this['load']['image']('7ka_keyplace_2', 'images/animations/k7/box/7kA_keyplace_2.png');
|
||
this['load']['image']('7ka_box_mask', 'images/animations/k7/box/mask.png');
|
||
this['load']['image']('7ka_box_mask2', 'images/animations/k7/box/mask2.png');
|
||
this['load']['image']('7ka_box_indicator7', 'images/animations/k7/box/7kA_indicator7.png');
|
||
this['load']['image']('7ka_box', 'images/animations/k7/box/7kA_box.png');
|
||
this['load']['image']('7ka_door', 'images/animations/k7/door/7kA_door.png');
|
||
this['load']['image']('7ka_mask', 'images/animations/k7/door/mask.png');
|
||
this['load']['image']('7ka_cube', 'images/animations/k7/cube/7kA_cube.png');
|
||
this['load']['image']('7kb_mask', 'images/animations/k7/door/mask2.png');
|
||
this['load']['image']('7kb_door', 'images/animations/k7/door/7kB_door.png');
|
||
this['load']['image']('7kb_cube', 'images/animations/k7/cube/7kB_cube.png');
|
||
this['load']['image']('device_arrow', 'images/device/arrow.png');
|
||
this['load']['image']('device_tmp07_1', 'images/device/tmp07/tmp07_device_1.png');
|
||
this['load']['image']('device_tmp07_2', 'images/device/tmp07/tmp07_device_2.png');
|
||
this['load']['image']('device_os01_2', 'images/device/os01/os01_device_2.png');
|
||
this['load']['image']('device_os01_1', 'images/device/os01/os01_device_1.png');
|
||
this['load']['image']('device_tr0003_1', 'images/device/tr0003/tr0003_device_1.png');
|
||
this['load']['image']('device_tr0003_2', 'images/device/tr0003/tr0003_device_2.png');
|
||
this['load']['image']('device_tr0302_1', 'images/device/tr0302/tr0302_device_1.png');
|
||
this['load']['image']('device_tr0302_2', 'images/device/tr0302/tr0302_device_2.png');
|
||
this['load']['image']('device_cr02_2', 'images/device/cr/cr_device_2.png');
|
||
this['load']['image']('device_cr02_1', 'images/device/cr/cr_device_1.png');
|
||
this['load']['image']('device_tb04b_1', 'images/device/tbt03-1B/tbt03-1b_device_1.png');
|
||
this['load']['image']('device_tb04b_2', 'images/device/tbt03-1B/tbt03-1b_device_2.png');
|
||
this['load']['image']('device_flp03_2', 'images/device/flp03/flp03_device_2.png');
|
||
this['load']['image']('device_flp03_1', 'images/device/flp03/flp03_device_1.png');
|
||
this['load']['image']('device_tr0004_2', 'images/device/tr0004/tr0004_device_2.png');
|
||
this['load']['image']('device_tr0004_1', 'images/device/tr0004/tr0004_device_1.png');
|
||
this['load']['image']('device_pr02_1', 'images/device/pr02/pr02_device_1.png');
|
||
this['load']['image']('device_pr02_2', 'images/device/pr02/pr02_device_2.png');
|
||
this['load']['image']('device_intr0102_1', 'images/device/intr0102/intr0102_device_1.png');
|
||
this['load']['image']('device_intr0102_2', 'images/device/intr0102/intr0102_device_2.png');
|
||
this['load']['image']('device_htf02_2', 'images/device/htf02/hthf02_device_2.png');
|
||
this['load']['image']('device_htf02_1', 'images/device/htf02/hthf02_device_1.png');
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
this['load']['image']('k7_indicator_' + _0x5a8aa6, 'images/animations/k7/box/7kA_indicator7_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xd; _0x5a8aa6++) {
|
||
this['load']['image']('tb03_door_' + _0x5a8aa6, 'images/animations/tbt/tb03/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x4; _0x5a8aa6++) {
|
||
this['load']['image']('tr0010_door_' + _0x5a8aa6, 'images/animations/tr/tr0010/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x6; _0x5a8aa6++) {
|
||
this['load']['image']('tr0101_door_' + _0x5a8aa6, 'images/animations/tr/tr0101/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x6; _0x5a8aa6++) {
|
||
this['load']['image']('tr0301_door_' + _0x5a8aa6, 'images/animations/tr/tr0101/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
this['load']['image']('portal_' + _0x5a8aa6, 'images/animations/portal/' + _0x5a8aa6 + '.jpg');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x21; _0x5a8aa6++) {
|
||
this['load']['image']('tr0011_ladder_' + _0x5a8aa6, 'images/animations/tr/tr0011/skeleton-ladder_opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('tr0401_door_' + _0x5a8aa6, 'images/animations/tr/tr0401/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('pr02_door_' + _0x5a8aa6, 'images/animations/pr/pr02/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
this['load']['image']('pr03_door_' + _0x5a8aa6, 'images/animations/pr/pr03/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
this['load']['image']('htf01_door_' + _0x5a8aa6, 'images/animations/htf/htf01/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('sp01_hatch_' + _0x5a8aa6, 'images/animations/sp/sp01/hatch/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
this['load']['image']('sp01_el_' + _0x5a8aa6, 'images/animations/sp/sp01/el/skeleton-to_down_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xd; _0x5a8aa6++) {
|
||
this['load']['image']('sp04_lever_' + _0x5a8aa6, 'images/animations/sp/sp04/lever/skeleton-to_on_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('flp04_shelf_door_' + _0x5a8aa6, 'images/animations/flp/flp04/shelf_door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
this['load']['image']('flp04_lever_' + _0x5a8aa6, 'images/animations/flp/flp04/lever/to_on/skeleton-to_on_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('os01_door_' + _0x5a8aa6, 'images/animations/os/os01/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
this['load']['image']('os02_door_' + _0x5a8aa6, 'images/animations/os/os02/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('os04_laser_' + _0x5a8aa6, 'images/animations/os/os04/laser/skeleton-animation_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
this['load']['image']('os04_lever_' + _0x5a8aa6, 'images/animations/os/os04/lever/skeleton-down_up_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('lch01_hatch_' + _0x5a8aa6, 'images/animations/lch/lch01/hatch/frames/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x10; _0x5a8aa6++) {
|
||
this['load']['image']('lch01_lever_' + _0x5a8aa6, 'images/animations/lch/lch01/lever/skeleton-on_off_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xa; _0x5a8aa6++) {
|
||
this['load']['image']('lch01_panel_btn_' + _0x5a8aa6, 'images/animations/lch/lch01/panel/lch01_panel_btn_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('lch01_door_' + _0x5a8aa6, 'images/animations/lch/lch01/door/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
this['load']['image']('el_door_' + _0x5a8aa6, 'images/animations/el/opening/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x1a; _0x5a8aa6++) {
|
||
this['load']['image']('intr0010_door_' + _0x5a8aa6, 'images/animations/intr/intr0010/skeleton-closing_' + (0x19 - _0x5a8aa6) + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('intr0101_door_' + _0x5a8aa6, 'images/animations/intr/intr0101/skeleton-closing_' + (0x8 - _0x5a8aa6) + '.png');
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
this['load']['image']('intr0401_door_' + _0x5a8aa6, 'images/animations/intr/intr0401/skeleton-opening_' + _0x5a8aa6 + '.png');
|
||
}
|
||
this['load']['image']('splash_logo', 'images/splash/splash.png');
|
||
},
|
||
'create': function() {
|
||
this['scene']['start']('splashLogoScene');
|
||
}
|
||
});
|
||
var _0x3825b2 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function _0x6acfe0() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'splashLogoScene'
|
||
});
|
||
},
|
||
'create': function() {
|
||
var _0x270654 = document['getElementById']('url');
|
||
_0x270654['style']['display'] = 'block';
|
||
var _0x528158 = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'splash_logo');
|
||
this['tweens']['add']({
|
||
'targets': _0x528158,
|
||
'alpha': 0x1,
|
||
'duration': 0x7d0,
|
||
'onComplete': function() {
|
||
_0x270654['style']['display'] = 'none';
|
||
this['scene']['start']('menuScene');
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x17c664 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'menuScene'
|
||
});
|
||
},
|
||
'create': function() {
|
||
_0x5d99ff(this, 'music_menu');
|
||
this['add']['sprite'](_0x2aacf1, _0x25d46a, 'bg_mainmenu');
|
||
this['add']['sprite'](0x50, _0x25d46a - 0xaa, 'logo_through_small')['setOrigin'](0x0, 0.5);
|
||
this['music'] = this['add']['sprite'](0x32, _0x3eaf37 - 0x32, _0x280656['music'] ? 'btn_music_on' : 'btn_music_off')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('music');
|
||
this['soundIcon'] = this['add']['sprite'](0x82, _0x3eaf37 - 0x32, _0x280656['sound'] ? 'btn_sound_on' : 'btn_sound_off')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('sound');
|
||
this['credits'] = this['add']['sprite'](_0x4a8abc - 0x32, _0x3eaf37 - 0x32, 'btn_credits')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('credits');
|
||
this['play'] = this['add']['sprite'](0xbf, _0x25d46a - 0x28, 'btn_green_small')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('play')['setOrigin'](0.5, 0.5);
|
||
this['playText'] = this['add']['text'](0xbf, _0x25d46a - 0x28, 'CONTINUE', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x1e
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['deleteSave'] = this['add']['sprite'](0xbf, _0x25d46a + 0x1e, 'btn_play')['setName']('delete_save')['setScale'](1.3, 0x1)['setOrigin'](0.5, 0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['deleteSaveText'] = this['add']['text'](0xbf, _0x25d46a + 0x1e, 'DELETE\x20SAVES', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x1e
|
||
})['setOrigin'](0.5, 0.5);
|
||
if (_0x280656['lastScene'] === '') {
|
||
this['deleteSave']['disableInteractive']()['setTexture']('btn_navy_small')['setAlpha'](0.5);
|
||
this['deleteSaveText']['setAlpha'](0.5);
|
||
this['playText']['setText']('PLAY');
|
||
}
|
||
var _0x1a6ee2 = this['add']['image'](0x0, 0x0, 'black')['setAlpha'](0.7)['setInteractive']()['setName']('bg');
|
||
var _0x1eda02 = this['add']['image'](0x0, 0x0, 'window_small');
|
||
var _0x44900c = this['add']['text'](0x0, -0x28, 'DELETE\x20SAVES?', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x23
|
||
})['setOrigin'](0.5, 0.5);
|
||
var _0x52f9f = this['add']['sprite'](-0x82, 0x1e, 'btn_play')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('confirm_delete_save');
|
||
var _0x256314 = this['add']['text'](-0x82, 0x1e, 'YES', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x1e
|
||
})['setOrigin'](0.5, 0.5);
|
||
var _0x57d39d = this['add']['sprite'](0x82, 0x1e, 'btn_play')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('cancel_delete_save');
|
||
var _0x30755e = this['add']['text'](0x82, 0x1e, 'NO', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x1e
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['confirmReset'] = this['add']['container'](_0x2aacf1, _0x25d46a, [_0x1a6ee2, _0x1eda02, _0x44900c, _0x52f9f, _0x256314, _0x57d39d, _0x30755e])['setVisible'](![]);
|
||
this['input']['on']('gameobjectdown', function(_0x138025, _0x54f0fb) {
|
||
if (_0x54f0fb['name'] === 'music') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['toggleMusic']();
|
||
} else if (_0x54f0fb['name'] === 'sound') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['toggleSound']();
|
||
} else if (_0x54f0fb['name'] === 'credits') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['showCredits']();
|
||
} else if (_0x54f0fb['name'] === 'play') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['startGame']();
|
||
} else if (_0x54f0fb['name'] === 'delete_save') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['confirmReset']['setVisible'](!![]);
|
||
} else if (_0x54f0fb['name'] === 'confirm_delete_save') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['resetGame']();
|
||
this['confirmReset']['setVisible'](![]);
|
||
} else if (_0x54f0fb['name'] === 'cancel_delete_save') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['confirmReset']['setVisible'](![]);
|
||
}
|
||
}, this);
|
||
},
|
||
'toggleMusic': function() {
|
||
_0x280656['music'] = !_0x280656['music'];
|
||
_0x4937e6();
|
||
this['music']['setTexture'](_0x280656['music'] ? 'btn_music_on' : 'btn_music_off');
|
||
_0x11c867('music_menu');
|
||
_0x5d99ff(this, 'music_menu');
|
||
},
|
||
'toggleSound': function() {
|
||
_0x280656['sound'] = !_0x280656['sound'];
|
||
_0x4937e6();
|
||
this['soundIcon']['setTexture'](_0x280656['sound'] ? 'btn_sound_on' : 'btn_sound_off');
|
||
},
|
||
'showCredits': function() {
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
this['scene']['start']('creditsScene');
|
||
},
|
||
'resetGame': function() {
|
||
_0x280656 = _0x5cf1c6();
|
||
_0x4937e6();
|
||
this['deleteSave']['setTexture']('btn_navy_small')['disableInteractive']()['setAlpha'](0.5);
|
||
this['deleteSaveText']['setAlpha'](0.5);
|
||
this['music']['setTexture']('btn_music_on');
|
||
this['soundIcon']['setTexture']('btn_sound_on');
|
||
this['playText']['setText']('PLAY');
|
||
_0x11c867('music_menu');
|
||
_0x5d99ff(this, 'music_menu');
|
||
},
|
||
'startGame': function() {
|
||
_0xb43598['canvas']['removeEventListener']('click', this['canvasClick']);
|
||
_0xb43598['canvas']['removeEventListener']('touchend', this['canvasClick']);
|
||
_0x11c867('music_menu');
|
||
this['scene']['start']('portalScene');
|
||
this['scene']['start']('inventoryScene');
|
||
this['scene']['start'](_0x280656['scene']);
|
||
}
|
||
});
|
||
var _0x3dca12 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'creditsScene'
|
||
});
|
||
},
|
||
'create': function() {
|
||
this['add']['sprite'](_0x2aacf1, _0x25d46a, 'credits_bg');
|
||
this['add']['sprite'](_0x2aacf1, 0x50, 'logo_through_small');
|
||
var _0x44e75a = this['scene']['settings']['data']['noBack'];
|
||
if (!_0x44e75a) {
|
||
this['add']['sprite'](0x64, 0x64, 'btn_back')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('back');
|
||
}
|
||
this['add']['text'](_0x2aacf1 - 0x5, _0x25d46a - 0x64, 'A\x20game\x20by', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0x1, 0.5);
|
||
this['add']['text'](_0x2aacf1 + 0x5, _0x25d46a - 0x64, 'Igor\x20Krutov', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontStyle': 'bold',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0x0, 0.5);
|
||
this['add']['text'](_0x2aacf1 - 0x7d, _0x25d46a + 0x1e, 'Evgeniy\x20Smolkin', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontStyle': 'bold',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['add']['text'](_0x2aacf1 - 0x7d, _0x25d46a + 0x46, 'Art', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['add']['text'](_0x2aacf1 + 0x73, _0x25d46a + 0x1e, 'Mikhail\x20Zhbankov', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontStyle': 'bold',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['add']['text'](_0x2aacf1 + 0x73, _0x25d46a + 0x46, 'Code', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['add']['text'](_0x2aacf1, _0x25d46a + 0xa0, 'Igor\x20Krutov', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontStyle': 'bold',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['add']['text'](_0x2aacf1, _0x25d46a + 0xc8, 'Game\x20design,\x20animations', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'menuFont',
|
||
'fontSize': 0x18
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['input']['on']('gameobjectdown', function(_0x540d0b, _0x2ca21e) {
|
||
if (_0x2ca21e['name'] === 'back') {
|
||
_0x5619f8(this, 'menu_click');
|
||
this['scene']['start']('menuScene');
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x196537 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'initialize': function() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'portalScene'
|
||
});
|
||
},
|
||
'create': function() {
|
||
this['layer'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'black')['setVisible'](![])['setAlpha'](0x0);
|
||
},
|
||
'portalTo': function(_0x422692, _0xb30500) {
|
||
_0xb43598['scene']['bringToTop']('portalScene');
|
||
this['input']['stopPropagation']();
|
||
_0x1967e9();
|
||
this['layer']['setAlpha'](0x0)['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['layer'],
|
||
'alpha': 0x1,
|
||
'duration': _0xecb5a1 * 0.5,
|
||
'onComplete': function() {
|
||
_0x280656['lastScene'] = _0x422692['scene']['key'];
|
||
_0x280656['scene'] = _0xb30500;
|
||
_0x4937e6();
|
||
_0x422692['scene']['transition']({
|
||
'target': _0xb30500,
|
||
'duration': 0x1,
|
||
'moveAbove': !![],
|
||
'data': {
|
||
'scene': _0x422692['scene']['key']
|
||
}
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['layer'],
|
||
'alpha': 0x0,
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['layer']['setVisible'](![]);
|
||
this['input']['setDefaultCursor']('default');
|
||
_0xb43598['scene']['sendToBack']('portalScene');
|
||
_0xb43598['scene']['bringToTop']('inventoryScene');
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x19fd9d = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'inProgress': null,
|
||
'initialize': function() {
|
||
Phaser['Scene']['call'](this, {
|
||
'key': 'inventoryScene'
|
||
});
|
||
},
|
||
'create': function() {
|
||
this['items'] = {};
|
||
this['texts'] = {};
|
||
this['inProgress'] = {};
|
||
this['activeItem'] = null;
|
||
this['add']['sprite'](_0x4a8abc - 0x32, 0x32, 'btn_settings')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('gotoMenu');
|
||
this['inventoryArrow'] = this['add']['sprite'](_0x2aacf1 - 0x28, -0x19, 'inventory_arrow')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('inventory_arrow')['setScale'](0.8)['setAngle'](0xb4);
|
||
this['inventoryLine'] = this['add']['sprite'](0x0, 0x0, 'inventory_line')['setOrigin'](0.5, 0x0)['setInteractive']()['setName']('inventory_line');
|
||
var _0x2f6fd8 = [this['inventoryArrow'], this['inventoryLine']];
|
||
this['inventory'] = this['add']['container'](_0x2aacf1, _0x3eaf37 - 0x3c, _0x2f6fd8);
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x280656['inventory']['items']['length']; _0x5a8aa6++) {
|
||
var _0x11ea0c = _0x280656['inventory']['items'][_0x5a8aa6];
|
||
var _0x5627e8 = this['add']['sprite'](_0x5a8aa6 * 0x32 - _0x2aacf1 + 0x14, 0x19, 'inv_items', _0x11ea0c)['setScale'](0.2)['setOrigin'](0.5, 0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName'](_0x11ea0c);
|
||
_0x5627e8['setData']('inventory_item', !![]);
|
||
this['putItem'](_0x11ea0c, _0x5627e8, !![]);
|
||
}
|
||
this['setInventoryState'](_0x280656['inventory']['open'], !![]);
|
||
this['input']['on']('gameobjectdown', function(_0x3739c8, _0x496234) {
|
||
if (_0x496234['name'] === 'gotoMenu') {
|
||
_0x5619f8(this, 'menu_click');
|
||
_0x11c867(_0xb43598['bgMusic']['name']);
|
||
_0xb43598['bgMusic']['name'] = null;
|
||
this['input']['stopPropagation']();
|
||
this['scene']['stop']('portalScene');
|
||
this['scene']['stop']('inventoryScene');
|
||
this['scene']['stop'](_0x280656['scene']);
|
||
this['scene']['start']('menuScene');
|
||
return;
|
||
}
|
||
if (_0x496234['name'] === 'inventory_arrow') {
|
||
_0x5619f8(this, _0x280656['inventory']['open'] ? 'ui_inventory_close' : 'ui_inventory_open');
|
||
this['setInventoryState'](!_0x280656['inventory']['open']);
|
||
this['input']['stopPropagation']();
|
||
return;
|
||
}
|
||
if (_0x496234['getData']('inventory_item')) {
|
||
this['activateItem'](_0x496234['name']);
|
||
return;
|
||
}
|
||
}, this);
|
||
this['scene']['moveUp']();
|
||
},
|
||
'setInventoryState': function(_0x4abfdb, _0x12fe9c) {
|
||
this['resetActiveItem']();
|
||
if (_0x12fe9c) {
|
||
this['inventory']['y'] = _0x4abfdb ? _0x3eaf37 - 0x3c : _0x3eaf37;
|
||
this['inventoryArrow']['setAngle'](_0x4abfdb ? 0xb4 : 0x0);
|
||
_0x280656['inventory']['open'] = _0x4abfdb;
|
||
return;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': this['inventory'],
|
||
'y': _0x4abfdb ? _0x3eaf37 - 0x3c : _0x3eaf37,
|
||
'duration': _0xecb5a1 / 0x2
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['inventoryArrow'],
|
||
'angle': _0x4abfdb ? -0xb4 : 0x0,
|
||
'duration': _0xecb5a1 / 0x2
|
||
});
|
||
_0x280656['inventory']['open'] = _0x4abfdb;
|
||
_0x4937e6();
|
||
},
|
||
'activateItem': function(_0x10f42d) {
|
||
if (_0x280656['inventory']['active'] == _0x10f42d) {
|
||
_0x5619f8(this, 'ui_back_item');
|
||
this['resetActiveItem']();
|
||
return;
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x280656['inventory']['items']['length']; _0x5a8aa6++) {
|
||
var _0x5f302b = _0x280656['inventory']['items'][_0x5a8aa6];
|
||
this['items'][_0x5f302b]['setScale'](0.2);
|
||
this['items'][_0x5f302b]['y'] = 0x19;
|
||
}
|
||
this['items'][_0x10f42d]['setScale'](0.3);
|
||
this['items'][_0x10f42d]['y'] = 0x0;
|
||
_0x280656['inventory']['active'] = _0x10f42d;
|
||
_0x5619f8(this, 'ui_select_item');
|
||
},
|
||
'resetActiveItem': function() {
|
||
if (typeof this['items'][_0x280656['inventory']['active']] !== 'undefined') {
|
||
this['items'][_0x280656['inventory']['active']]['setScale'](0.2);
|
||
this['items'][_0x280656['inventory']['active']]['y'] = 0x19;
|
||
}
|
||
_0x280656['inventory']['active'] = null;
|
||
},
|
||
'putItem': function(_0x547260, _0x554bba, _0x4bb61a) {
|
||
if (typeof _0x280656['inventory']['counter'][_0x547260] === 'undefined') {
|
||
_0x280656['inventory']['counter'][_0x547260] = 0x0;
|
||
}
|
||
if (!_0x4bb61a) {
|
||
_0x280656['inventory']['counter'][_0x547260]++;
|
||
if (_0x280656['inventory']['counter'][_0x547260] == 0x1 && _0x280656['inventory']['items']['indexOf'](_0x547260) === -0x1) {
|
||
_0x280656['inventory']['items']['push'](_0x547260);
|
||
}
|
||
}
|
||
if (typeof this['items'][_0x547260] === 'undefined') {
|
||
this['items'][_0x547260] = _0x554bba;
|
||
}
|
||
this['inventory']['add'](_0x554bba);
|
||
if (typeof this['texts'][_0x547260] === 'undefined') {
|
||
var _0x2c12f0 = _0x554bba['pos'] ? _0x554bba['pos']['x'] : _0x554bba['x'];
|
||
this['texts'][_0x547260] = this['add']['text'](_0x2c12f0 + 0x19, 0x32, '', {
|
||
'color': '#ffffff',
|
||
'align': 'center',
|
||
'fontFamily': 'Arial',
|
||
'fontSize': 0xc
|
||
})['setOrigin'](0.5, 0.5);
|
||
this['inventory']['add'](this['texts'][_0x547260]);
|
||
}
|
||
this['texts'][_0x547260]['setText']('' + (_0x280656['inventory']['counter'][_0x547260] > 0x1 ? _0x280656['inventory']['counter'][_0x547260] : ''));
|
||
this['children']['bringToTop'](this['texts'][_0x547260]);
|
||
},
|
||
'addItem': function(_0x1c9ddd, _0x1822f4, _0xb4a5dc) {
|
||
if (this['inProgress'][_0x1822f4]) return ![];
|
||
this['inProgress'][_0x1822f4] = !![];
|
||
_0x1c9ddd['disableInteractive']();
|
||
_0x5619f8(this, 'ui_pickup_item');
|
||
var _0x2494f6 = this['add']['sprite'](_0x1c9ddd['x'] - _0x2aacf1, _0x1c9ddd['y'] - _0x3eaf37, 'inv_items', _0x1822f4)['setScale'](0.2)['setOrigin'](0.5, 0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName'](_0x1822f4)['setData']('inventory_item', !![]);
|
||
var _0x3e307b = {
|
||
'x': 0x0,
|
||
'y': 0x19
|
||
};
|
||
if (!_0x280656['inventory']['counter'][_0x1822f4]) {
|
||
var _0x5a8aa6 = _0x280656['inventory']['items']['length'];
|
||
_0x3e307b['x'] = _0x5a8aa6 * 0x32 - _0x2aacf1 + 0x14;
|
||
} else {
|
||
_0x3e307b['x'] = this['items'][_0x1822f4]['x'];
|
||
}
|
||
_0x2494f6['pos'] = _0x3e307b;
|
||
this['tweens']['add']({
|
||
'targets': _0x2494f6,
|
||
'x': _0x3e307b['x'],
|
||
'y': _0x3e307b['y'],
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['inProgress'][_0x1822f4] = ![];
|
||
if (_0x280656['inventory']['counter'][_0x1822f4] > 0x1) {
|
||
this['inventory']['remove'](_0x2494f6);
|
||
}
|
||
} ['bind'](this)
|
||
});
|
||
this['putItem'](_0x1822f4, _0x2494f6);
|
||
_0x4937e6();
|
||
return !![];
|
||
},
|
||
'removeItem': function(_0x29f7d0, _0x2b424d) {
|
||
if (!this['items'][_0x29f7d0] || _0x280656['inventory']['items']['indexOf'](_0x29f7d0) < 0x0) {
|
||
return;
|
||
}
|
||
_0x2b424d = typeof _0x2b424d === 'undefined' ? 'use' : _0x2b424d;
|
||
if (_0x2b424d) {
|
||
_0x5619f8(this, _0x2b424d);
|
||
}
|
||
var _0x8e604b = this['items'][_0x29f7d0];
|
||
_0x280656['inventory']['counter'][_0x29f7d0]--;
|
||
if (!_0x280656['inventory']['counter'][_0x29f7d0]) {
|
||
this['inventory']['remove'](_0x8e604b);
|
||
delete this['items'][_0x29f7d0];
|
||
var _0x49a51c = _0x280656['inventory']['items']['indexOf'](_0x29f7d0);
|
||
_0x280656['inventory']['items']['splice'](_0x49a51c, 0x1);
|
||
if (_0x280656['inventory']['active'] == _0x29f7d0) {
|
||
_0x280656['inventory']['active'] = null;
|
||
}
|
||
for (var _0x5a8aa6 = _0x49a51c; _0x5a8aa6 < _0x280656['inventory']['items']['length']; _0x5a8aa6++) {
|
||
var _0x29f7d0 = _0x280656['inventory']['items'][_0x5a8aa6];
|
||
var _0x8e604b = this['items'][_0x29f7d0];
|
||
if (!_0x8e604b) continue;
|
||
var _0x744be2 = [_0x8e604b];
|
||
if (typeof this['texts'][_0x29f7d0] !== 'undefined') {
|
||
_0x744be2['push'](this['texts'][_0x29f7d0]);
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': _0x744be2,
|
||
'x': '-=50',
|
||
'duration': _0xecb5a1
|
||
});
|
||
}
|
||
}
|
||
this['texts'][_0x29f7d0]['setText']('' + (_0x280656['inventory']['counter'][_0x29f7d0] > 0x1 ? _0x280656['inventory']['counter'][_0x29f7d0] : ''));
|
||
_0x4937e6();
|
||
}
|
||
});
|
||
var _0x1db0d7 = new Phaser['Class']({
|
||
'Extends': Phaser['Scene'],
|
||
'name': null,
|
||
'bgSprite': null,
|
||
'transitions': null,
|
||
'showing': null,
|
||
'zones': null,
|
||
'portals': null,
|
||
'noZones': null,
|
||
'puzzleBox': null,
|
||
'initialize': function(_0x3c9437, _0x571c06, _0x14963b, _0x408e31, _0x38376f) {
|
||
this['name'] = _0x3c9437;
|
||
if (!this['bgSprite']) {
|
||
this['bgSprite'] = _0x3c9437;
|
||
}
|
||
this['originTransitions'] = _0x5f0b2a(_0x571c06);
|
||
this['transitions'] = _0x5f0b2a(_0x571c06);
|
||
this['showing'] = _0x14963b;
|
||
this['zones'] = _0x408e31;
|
||
this['portals'] = _0x38376f;
|
||
this['noZones'] = {};
|
||
Phaser['Scene']['call'](this, {
|
||
'key': this['name']
|
||
});
|
||
},
|
||
'runMusicLoop': function() {
|
||
if (!_0x280656['music']) return;
|
||
var _0x325cd7 = this['name']['substring'](0x0, 0x2);
|
||
var _0xaf19c6 = 'music_' + _0x325cd7;
|
||
if (typeof _0x56a351[_0xaf19c6] !== 'undefined') {
|
||
_0xaf19c6 = _0x56a351[_0xaf19c6];
|
||
}
|
||
if (_0xb43598['bgMusic']['name'] === _0xaf19c6) {
|
||
return;
|
||
}
|
||
_0x11c867(_0xb43598['bgMusic']['name']);
|
||
_0xb43598['bgMusic']['name'] = _0xaf19c6;
|
||
_0x5d99ff(this, _0xaf19c6);
|
||
},
|
||
'create': function() {
|
||
this['transitions'] = _0x5f0b2a(this['originTransitions']);
|
||
this['before_bg_create']();
|
||
this['bg'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, this['bgSprite']);
|
||
this['runMusicLoop']();
|
||
if (this['showing']) {
|
||
this['events']['on']('transitionstart', function(_0x2c1303, _0x56510d) {
|
||
_0xb43598['setActiveScene'](this['scene']['key']);
|
||
this['input']['setDefaultCursor']('default');
|
||
this['extra_transition'](_0x2c1303, _0x56510d);
|
||
if (this['portals'] && typeof this['portals'][_0x2c1303['scene']['key']] !== 'undefined') {
|
||
return;
|
||
}
|
||
var _0x38243b = this['showing'][_0x2c1303['scene']['key']];
|
||
_0x45daa9(this, _0x38243b);
|
||
}, this);
|
||
this['events']['on']('transitioncomplete', function(_0x3f9c12, _0x38d108) {
|
||
_0x5178ad();
|
||
}, this);
|
||
}
|
||
if (this['transitions']) {
|
||
this['input']['on']('gameobjectdown', function(_0x438fae, _0x7c48cf) {
|
||
if (_0x7c48cf['type'] === 'Zone') {
|
||
for (var _0x359ef4 in this['portals']) {
|
||
if (!this['portals']['hasOwnProperty'](_0x359ef4)) continue;
|
||
if (this['portals'][_0x359ef4] == _0x7c48cf['name']) {
|
||
this['before_portal']();
|
||
_0x36f2e8(this, _0x359ef4);
|
||
_0x5619f8(this, 'transition_to');
|
||
return;
|
||
}
|
||
}
|
||
if (typeof this['transitions'][_0x7c48cf['name']] !== 'undefined') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'footsteps');
|
||
this['before_transition'](_0x7c48cf['name'], this['transitions'][_0x7c48cf['name']]);
|
||
_0x3d4394(this, _0x7c48cf['name'], this['transitions']);
|
||
}
|
||
}
|
||
}, this);
|
||
this['input']['on']('gameobjectover', function(_0x2aaed6, _0x396c31) {
|
||
if (_0x396c31['type'] === 'Zone' && (_0x2aaed6['position']['x'] != 0x0 || _0x2aaed6['position']['y'] != 0x0)) {
|
||
this['input']['manager']['setDefaultCursor']('pointer');
|
||
}
|
||
}, this);
|
||
this['input']['on']('gameobjectout', function(_0x39d4ed, _0x4fc0e0) {
|
||
if (_0x4fc0e0['type'] === 'Zone') {
|
||
this['input']['manager']['setDefaultCursor']('default');
|
||
}
|
||
}, this);
|
||
for (key in this['transitions']) {
|
||
if (typeof _0x130e52[key] !== 'undefined' && !this['noZones'][key]) {
|
||
var _0x2849ff = _0x130e52[key];
|
||
this['add']['zone'](_0x2849ff['x'], _0x2849ff['y'], _0x2849ff['width'], _0x2849ff['height'])['setName'](key)['setInteractive']();
|
||
}
|
||
}
|
||
if (this['zones']) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['zones']['length']; _0x5a8aa6++) {
|
||
this['addZone'](this['zones'][_0x5a8aa6]);
|
||
}
|
||
}
|
||
}
|
||
this['extra_create']();
|
||
this['portalLayer'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'black')['setVisible'](![])['setInteractive']()['setName']('portalLayer');
|
||
},
|
||
'createDevice': function(_0x13c745, _0x27ae23, _0x4badbb, _0x8e983a, _0x3d233c, _0x26332f) {
|
||
_0x4badbb = _0x4badbb || this['name'];
|
||
if (typeof _0x3d0774[_0x4badbb] === 'undefined') return;
|
||
_0x26332f = _0x26332f || 0x0;
|
||
_0x8e983a = _0x8e983a || 'device_' + _0x4badbb;
|
||
_0x3d233c = _0x3d233c || 0x1;
|
||
var _0x2bb5f0 = this['add']['sprite'](_0x13c745, _0x27ae23, _0x8e983a + '_2')['setName'](_0x4badbb)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setScale'](_0x3d233c);
|
||
if (!_0xb43598['getEvent'](_0x3d0774[_0x4badbb]['event'])) {
|
||
_0x2bb5f0['setTexture'](_0x8e983a + '_1');
|
||
}
|
||
this['createShadowLayer'](_0x8e983a, !![], function() {
|
||
_0x5619f8(this, 'interface_exit');
|
||
} ['bind'](this));
|
||
var _0x2dca41 = this['deviceText' + _0x4badbb] = this['add']['bitmapText'](_0x2aacf1, 0x64 - _0x26332f, 'rough_draft', _0x2a4c4e(_0x4badbb)['text'], 0x10)['setOrigin'](0.5, 0x0);
|
||
var _0x26b0c6 = this['arrowLeft' + _0x4badbb] = this['add']['sprite'](_0x2aacf1 - 0x12c, _0x25d46a + 0xe6, 'device_arrow')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('arrow_left')['setVisible'](!!_0x2a4c4e(_0x4badbb, !![]));
|
||
var _0x18c353 = this['arrowRight' + _0x4badbb] = this['add']['sprite'](_0x2aacf1 + 0x12c, _0x25d46a + 0xe6, 'device_arrow')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('arrow_right')['setVisible'](!!_0x2a4c4e(_0x4badbb, ![]));
|
||
var _0x3b1358 = this['add']['container'](0x0, 0x0, [_0x2dca41, _0x26b0c6, _0x18c353])['setData']('startX', _0x2aacf1)['setData']('deltaX', 0x0)['setVisible'](![]);
|
||
this['currentDevice'] = '';
|
||
this['currentDeviceText'] = '';
|
||
this['input']['on']('gameobjectdown', function(_0x464739, _0x28bf6e) {
|
||
if (_0x28bf6e['name'] === _0x4badbb) {
|
||
this['showShadowLayer'](_0x3b1358, !![]);
|
||
if (!_0xb43598['getEvent'](_0x3d0774[_0x4badbb]['event'])) {
|
||
_0x5619f8(this, 'interface_use');
|
||
} else {
|
||
_0x5619f8(this, 'interface_enter');
|
||
}
|
||
_0x2bb5f0['setTexture'](_0x8e983a + '_2');
|
||
_0xb43598['setEvent'](_0x3d0774[_0x4badbb]['event'], !![]);
|
||
this['currentDevice'] = _0x4badbb;
|
||
this['loadDeviceText'](_0x4badbb, _0x4badbb);
|
||
} else if (this['currentDevice'] == _0x4badbb && (_0x28bf6e['name'] == 'arrow_left' || _0x28bf6e['name'] == 'arrow_right')) {
|
||
var _0x1b89fa = _0x2a4c4e(this['currentDeviceText'], _0x28bf6e['name'] == 'arrow_right');
|
||
if (!_0x1b89fa) return;
|
||
_0x5619f8(this, 'interface_turn_page');
|
||
this['loadDeviceText'](_0x4badbb, _0x1b89fa);
|
||
}
|
||
}, this);
|
||
},
|
||
'loadDeviceText': function(_0x475ea3, _0x38c527) {
|
||
if (!_0x38c527) return;
|
||
this['currentDeviceText'] = _0x38c527;
|
||
this['deviceText' + _0x475ea3]['setText'](_0x3d0774[_0x38c527]['text']);
|
||
var _0x274f68 = _0x2a4c4e(_0x38c527, !![]);
|
||
var _0x607e4e = _0x2a4c4e(_0x38c527, ![]);
|
||
this['arrowLeft' + _0x475ea3]['setVisible'](!!_0x607e4e);
|
||
this['arrowRight' + _0x475ea3]['setVisible'](!!_0x274f68);
|
||
},
|
||
'createShadowLayer': function(_0xaa37b3, _0x673503, _0x4f1695) {
|
||
_0xaa37b3 = _0xaa37b3 || 'layer';
|
||
this['bgLayer'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'black')['setVisible'](![])['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName'](_0xaa37b3);
|
||
this['input']['on']('gameobjectdown', function(_0x449bf, _0x2dd3ab) {
|
||
if (_0x2dd3ab['name'] == _0xaa37b3) {
|
||
this['hideShadowLayer'](_0x673503, _0x4f1695);
|
||
}
|
||
}, this);
|
||
},
|
||
'showShadowLayer': function(_0x1ce9a3, _0x4d683a) {
|
||
var _0x3a8e41 = _0x1ce9a3['getData']('opacity') || 0.7;
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
if (_0x4d683a) {
|
||
this['bgLayer']['setVisible'](!![])['setAlpha'](_0x3a8e41);
|
||
this['puzzleBox'] = _0x1ce9a3;
|
||
this['children']['bringToTop'](this['puzzleBox']);
|
||
this['showPuzzleBox'](_0x1ce9a3, _0x4d683a);
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'puzzle_in');
|
||
_0x1967e9();
|
||
this['bgLayer']['setVisible'](!![])['setAlpha'](0x0);
|
||
this['puzzleBox'] = _0x1ce9a3;
|
||
this['tweens']['add']({
|
||
'targets': this['bgLayer'],
|
||
'alpha': _0x3a8e41,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
this['showPuzzleBox'](_0x1ce9a3);
|
||
},
|
||
'hideShadowLayer': function(_0xa0d3e1, _0x25d4c6) {
|
||
this['input']['stopPropagation']();
|
||
if (_0xa0d3e1) {
|
||
this['bgLayer']['setVisible'](![]);
|
||
this['closePuzzleBox'](_0xa0d3e1);
|
||
if (typeof _0x25d4c6 === 'function') {
|
||
_0x25d4c6();
|
||
}
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'puzzle_out');
|
||
this['tweens']['add']({
|
||
'targets': this['bgLayer'],
|
||
'alpha': 0x0,
|
||
'duration': _0xecb5a1 * 0x3,
|
||
'onComplete': function() {
|
||
this['closeShadowLayer']();
|
||
this['bgLayer']['setVisible'](![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
this['closePuzzleBox']();
|
||
},
|
||
'closeShadowLayer': function() {},
|
||
'showPuzzleBox': function(_0x31271d, _0x15ced9) {
|
||
this['puzzleBox'] = _0x31271d || this['puzzleBox'];
|
||
if (!this['puzzleBox']) return;
|
||
if (_0x15ced9) {
|
||
this['puzzleBox']['setVisible'](!![]);
|
||
return;
|
||
}
|
||
var _0x24afc0 = this['puzzleBox']['getData']('startX');
|
||
var _0xb40928 = this['puzzleBox']['getData']('deltaX');
|
||
if (typeof _0xb40928 === 'undefined') {
|
||
_0xb40928 = _0x4a8abc;
|
||
}
|
||
this['puzzleBox']['x'] = _0x24afc0;
|
||
this['puzzleBox']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['puzzleBox'],
|
||
'x': '-=' + _0xb40928,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Cubic.easeIn',
|
||
'onComplete': function() {} ['bind'](this)
|
||
});
|
||
},
|
||
'closePuzzleBox': function(_0x4546d2) {
|
||
if (!this['puzzleBox']) return;
|
||
if (_0x4546d2) {
|
||
this['puzzleBox']['setVisible'](![]);
|
||
return;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': this['puzzleBox'],
|
||
'x': '-=' + _0x4a8abc,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Cubic.easeIn',
|
||
'onComplete': function() {
|
||
this['puzzleBox']['setVisible'](![]);
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'zonesToTop': function() {
|
||
var _0x1ee0d4 = [];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['children']['list']['length']; _0x5a8aa6++) {
|
||
if (this['children']['list'][_0x5a8aa6]['type'] === 'Zone') {
|
||
_0x1ee0d4['push'](this['children']['list'][_0x5a8aa6]);
|
||
}
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x1ee0d4['length']; _0x5a8aa6++) {
|
||
this['children']['bringToTop'](_0x1ee0d4[_0x5a8aa6]);
|
||
}
|
||
},
|
||
'addZone': function(_0x39ee27) {
|
||
if (typeof _0x39ee27['event'] !== 'undefined' && !_0xb43598['getEvent'](_0x39ee27['event'])) {
|
||
return;
|
||
}
|
||
var _0x1e00c2 = _0x39ee27;
|
||
if (_0x39ee27['default'] && typeof _0x130e52[_0x39ee27['default']] !== 'undefined') {
|
||
_0x1e00c2 = _0x130e52[_0x39ee27['default']];
|
||
}
|
||
var _0x2b5fd0 = _0x39ee27['cursor'] || 'pointer';
|
||
return this['add']['zone'](_0x1e00c2['x'], _0x1e00c2['y'], _0x1e00c2['width'], _0x1e00c2['height'])['setName'](_0x39ee27['name'])['setInteractive']({
|
||
'cursor': _0x2b5fd0
|
||
});
|
||
},
|
||
'addTransition': function(_0x212d8a, _0x3c2684, _0x5dd9c3) {
|
||
this['transitions'][_0x212d8a] = _0x3c2684;
|
||
if (_0x5dd9c3) {
|
||
this['noZones'][_0x212d8a] = !![];
|
||
return;
|
||
}
|
||
if (typeof _0x130e52[_0x212d8a] !== 'undefined') {
|
||
var _0x369933 = _0x130e52[_0x212d8a];
|
||
this['add']['zone'](_0x369933['x'], _0x369933['y'], _0x369933['width'], _0x369933['height'])['setName'](_0x212d8a)['setInteractive']();
|
||
}
|
||
},
|
||
'removeTransition': function(_0x5f2cc1) {
|
||
if (typeof this['transitions'][_0x5f2cc1] === 'undefined') {
|
||
return;
|
||
}
|
||
delete this['transitions'][_0x5f2cc1];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['children']['list']['length']; _0x5a8aa6++) {
|
||
if (this['children']['list'][_0x5a8aa6]['type'] == 'Zone' && this['children']['list'][_0x5a8aa6]['name'] == _0x5f2cc1) {
|
||
this['children']['list'][_0x5a8aa6]['disableInteractive']();
|
||
this['children']['remove'](this['children']['list'][_0x5a8aa6]);
|
||
break;
|
||
}
|
||
}
|
||
},
|
||
'createAnimation': function(_0x3ac029) {
|
||
if (this['anims']['get'](_0x3ac029)) {
|
||
return this['anims']['get'](_0x3ac029);
|
||
}
|
||
var _0x234f29 = [];
|
||
var _0x4a4f5b = 0x0;
|
||
var _0x38d0de = 0x0;
|
||
var _0xad9e83 = 0x14;
|
||
switch (_0x3ac029) {
|
||
case 'tb03_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xd; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tb03_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tb03_close_door':
|
||
for (var _0x5a8aa6 = 0xc; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'tb03_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tr0010_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x4; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0010_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tr0010_close_door':
|
||
for (var _0x5a8aa6 = 0x3; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0010_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x38d0de = 0x320;
|
||
break;
|
||
case 'tr0101_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x6; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0101_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tr0101_close_door':
|
||
for (var _0x5a8aa6 = 0x5; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0101_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x38d0de = 0x320;
|
||
break;
|
||
case 'tr0301_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x6; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0301_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tr0301_close_door':
|
||
for (var _0x5a8aa6 = 0x5; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0301_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x38d0de = 0x320;
|
||
break;
|
||
case 'portal':
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'portal_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x4a4f5b = -0x1;
|
||
_0xad9e83 = 0xc;
|
||
break;
|
||
case 'tr0011_ladder':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x21; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0011_ladder_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'pr02_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'pr02_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'pr03_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'pr03_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'tr0401_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'tr0401_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'htf01_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'htf01_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'sp01_hatch':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'sp01_hatch_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'sp01_elevator':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'sp01_el_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x38d0de = _0xecb5a1 * 0x2;
|
||
break;
|
||
case 'sp04_lever':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xd; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'sp04_lever_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0xad9e83 = 0x1e;
|
||
break;
|
||
case 'flp04_lever':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'flp04_lever_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0xad9e83 = 0x1e;
|
||
break;
|
||
case 'flp04_shelf_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'flp04_shelf_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'os01_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'os01_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0xad9e83 = 0x1e;
|
||
break;
|
||
case 'os02_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xe; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'os02_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0xad9e83 = 0x1e;
|
||
break;
|
||
case 'os04_laser':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'os04_laser_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0x4a4f5b = -0x1;
|
||
break;
|
||
case 'os04_lever':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'os04_lever_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'lch01_hatch':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'lch01_hatch_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'lch01_lever':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x10; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'lch01_lever_' + _0x5a8aa6
|
||
});
|
||
}
|
||
_0xad9e83 = 0x28;
|
||
break;
|
||
case 'lch01_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'lch01_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'lch01_door_close':
|
||
for (var _0x5a8aa6 = 0x8; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'lch01_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'el_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xb; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'el_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'el_door_close':
|
||
for (var _0x5a8aa6 = 0xa; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
_0x234f29['push']({
|
||
'key': 'el_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'intr0010_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x1a; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'intr0010_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'intr0101_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'intr0101_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
case 'intr0401_door':
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x9; _0x5a8aa6++) {
|
||
_0x234f29['push']({
|
||
'key': 'intr0401_door_' + _0x5a8aa6
|
||
});
|
||
}
|
||
break;
|
||
}
|
||
return this['anims']['create']({
|
||
'key': _0x3ac029,
|
||
'frames': _0x234f29,
|
||
'frameRate': _0xad9e83,
|
||
'repeat': _0x4a4f5b,
|
||
'delay': _0x38d0de
|
||
});
|
||
},
|
||
'createDoor': function(_0x4182f0, _0x3e6c49, _0x381a17, _0x559c55, _0x13f126, _0x3727cf) {
|
||
this['doorObjState'] = 'closed';
|
||
this['pointerLocked'] = ![];
|
||
this['createAnimation'](_0x381a17['name']);
|
||
this['createAnimation'](_0x381a17['name'] + '_close');
|
||
this['createAnimation']('portal');
|
||
if (!_0x559c55['scale']['x']) _0x559c55['scale'] = {
|
||
'x': _0x559c55['scale'],
|
||
'y': _0x559c55['scale']
|
||
};
|
||
if (!_0x559c55['x']) _0x559c55['x'] = _0x4182f0;
|
||
if (!_0x559c55['y']) _0x559c55['y'] = _0x3e6c49;
|
||
this['portal'] = this['add']['sprite'](_0x559c55['x'], _0x559c55['y'], 'portal_1')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setScale'](_0x559c55['scale']['x'], _0x559c55['scale']['y'])['setName']('portal');
|
||
var _0x323e81 = _0x381a17['key'] && !_0xb43598['getEvent'](_0x381a17['name'] + '_' + _0x381a17['key']) ? 'default' : 'pointer';
|
||
this['doorObj'] = this['add']['sprite'](_0x4182f0, _0x3e6c49, _0x381a17['name'] + '_0')['setInteractive']({
|
||
'cursor': _0x323e81
|
||
})['setScale'](_0x381a17['scale'])['setName'](_0x381a17['name']);
|
||
this['doorObj']['on']('animationcomplete', function(_0x2aea85, _0x1393d8) {
|
||
if (_0x2aea85['key'] != _0x381a17['name']) {
|
||
return;
|
||
}
|
||
this['doorObjState'] = 'open';
|
||
_0x5178ad();
|
||
}, this);
|
||
var _0x564872 = function(_0x36ddfe) {
|
||
if (typeof _0x3727cf === 'function') {
|
||
_0x3727cf()['setTexture'](_0x36ddfe);
|
||
} else {
|
||
_0x3727cf['setTexture'](_0x36ddfe);
|
||
}
|
||
};
|
||
if (_0x3727cf && _0x381a17['key'] && _0xb43598['getEvent'](_0x381a17['name'] + '_' + _0x381a17['key'])) {
|
||
_0x564872('tr0010_indicator_green');
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x243026, _0x4c8a3d) {
|
||
if (_0x4c8a3d['type'] != 'Sprite' || _0x4c8a3d['name'] != _0x381a17['name']) {
|
||
return;
|
||
}
|
||
if (_0x381a17['key'] && !_0xb43598['getEvent'](_0x381a17['name'] + '_' + _0x381a17['key'])) {
|
||
if (_0xb43598['isInventoryActive'](_0x381a17['key'])) {
|
||
_0x5619f8(this, 'unlock_door');
|
||
var _0x16fd11 = this['scene']['get']('inventoryScene');
|
||
_0xb43598['setEvent'](_0x381a17['name'] + '_' + _0x381a17['key'], !![]);
|
||
_0x564872('tr0010_indicator_green');
|
||
_0x16fd11['resetActiveItem']();
|
||
this['doorObj']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
return;
|
||
}
|
||
if (this['doorObjState'] == 'open') {
|
||
_0x36f2e8(this, _0x13f126, 'transition_portal');
|
||
} else if (this['doorObjState'] == 'closed') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'open_door');
|
||
this['doorObj']['play'](_0x381a17['name']);
|
||
this['portal']['play']('portal');
|
||
this['doorObjState'] = 'opening';
|
||
}
|
||
}, this);
|
||
},
|
||
'before_bg_create': function() {},
|
||
'before_portal': function() {},
|
||
'before_transition': function() {},
|
||
'extra_create': function() {},
|
||
'extra_transition': function() {}
|
||
});
|
||
var _0x56463f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb01', {
|
||
'right': 'tb02'
|
||
}, {
|
||
'tb02': 'left'
|
||
});
|
||
}
|
||
});
|
||
var _0x46b0d0 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb02', {
|
||
'left': 'tb01',
|
||
'right': 'tb03'
|
||
}, {
|
||
'tb01': 'right',
|
||
'tb03': 'left'
|
||
});
|
||
}
|
||
});
|
||
var _0x270c31 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb02b', {
|
||
'left': 'tb03b'
|
||
}, {
|
||
'tb03b': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x3f40a8 = this['add']['sprite'](_0x2aacf1 - 0xa0, _0x25d46a, 'tb02b_sign_1')['setName']('sign1');
|
||
this['sign1_on'] = this['add']['sprite'](_0x2aacf1 - 0x9a, _0x25d46a + 0x32, 'tb02b_sign_1_on')['setVisible'](![]);
|
||
this['enableDevice'](_0x3f40a8, 'lch01_sign', 0x46);
|
||
var _0x1bb72 = this['add']['sprite'](_0x2aacf1 - 0x1e, _0x25d46a - 0x32, 'tb02b_sign_2')['setName']('sign2');
|
||
this['sign2_on'] = this['add']['sprite'](_0x2aacf1 - 0x1e, _0x25d46a + 0x2, 'tb02b_sign_2_on')['setVisible'](![]);
|
||
this['enableDevice'](_0x1bb72, 'os01_sign', 0x46);
|
||
var _0xd05958 = this['add']['sprite'](_0x2aacf1 + 0x64, _0x25d46a, 'tb02b_sign_3')['setName']('sign3');
|
||
this['sign3_on'] = this['add']['sprite'](_0x2aacf1 + 0x62, _0x25d46a + 0x34, 'tb02b_sign_3_on')['setVisible'](![]);
|
||
this['enableDevice'](_0xd05958, 'pr03_sign');
|
||
var _0x7784a = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a - 0x32, 'tb02b_sign_4')['setName']('sign4');
|
||
this['sign4_on'] = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a + 0x3, 'tb02b_sign_4_on')['setVisible'](![]);
|
||
this['enableDevice'](_0x7784a, 'intr0004_sign');
|
||
},
|
||
'enableDevice': function(_0x2feff0, _0x3eca51, _0x3a6a19) {
|
||
if (_0xb43598['getEvent'](_0x3eca51)) {
|
||
this[_0x2feff0['name'] + '_on']['setVisible'](!![]);
|
||
_0xb43598['setEvent'](_0x3d0774[_0x2feff0['name']]['event'], !![]);
|
||
this['createDevice'](_0x2feff0['x'], _0x2feff0['y'] - 0x28, _0x2feff0['name'], 'device_os01', 0.7, _0x3a6a19);
|
||
} else {
|
||
this['add']['sprite'](_0x2feff0['x'], _0x2feff0['y'] - 0x28, 'device_os01_1')['setScale'](0.7);
|
||
}
|
||
}
|
||
});
|
||
var _0x39bbc7 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb03', {
|
||
'left': 'tb02'
|
||
}, {
|
||
'tb02': 'right'
|
||
}, null, {
|
||
'tr0010': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1, _0x25d46a, {
|
||
'name': 'tb03_door',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': 0.9
|
||
}, 'tr0010');
|
||
},
|
||
'extra_transition': function(_0x2c9c6c) {
|
||
this['createAnimation']('tb03_close_door');
|
||
if (_0x2c9c6c['scene']['key'] === 'tr0010') {
|
||
_0x5619f8(this, 'close_door');
|
||
this['doorObj']['play']('tb03_close_door');
|
||
}
|
||
}
|
||
});
|
||
var _0x3cd001 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb03b', {
|
||
'right': 'tb02b',
|
||
'top': 'tb04b'
|
||
}, {
|
||
'tb04b': 'bottom',
|
||
'tb02b': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1, _0x25d46a, {
|
||
'name': 'tb03_door',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': 0.9
|
||
}, 'intr0010');
|
||
}
|
||
});
|
||
var _0x2e8211 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb04b', {
|
||
'right': 'tb06',
|
||
'bottom': 'tb03b'
|
||
}, {
|
||
'tb03b': 'top',
|
||
'tb06': 'left'
|
||
}, [{
|
||
'x': _0x2aacf1 - 0xaf,
|
||
'y': _0x25d46a - 0xaf,
|
||
'width': 0x15e,
|
||
'height': 0x12c,
|
||
'name': 'portal'
|
||
}], {
|
||
'tb05b': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 + 0xd2, _0x25d46a - 0x64);
|
||
}
|
||
});
|
||
var _0x5c2176 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb05b', {}, {}, [{
|
||
'name': 'portal',
|
||
'default': 'bottom'
|
||
}], {
|
||
'tb04b': 'portal'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
this['add']['sprite'](_0x2aacf1, _0x25d46a, 'white');
|
||
this['inner'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a + 0x3, 'tb05b_inner');
|
||
this['outer'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a + 0x3, 'tb05b_outer');
|
||
this['lock'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a + 0x3, 'tb05b_lock')['setInteractive']()['setName']('lock');
|
||
this['interface'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a + 0x3, 'inv_items', 'inv_interface')['setScale'](0.28)['setVisible'](![]);
|
||
},
|
||
'extra_create': function() {
|
||
this['messageNumber'] = 0x0;
|
||
this['shadowLayer'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'black')['setAlpha'](0.7)['setVisible'](![])['setName']('layer')['setInteractive']();
|
||
this['messages'] = [];
|
||
this['dialogMessages'] = this['add']['bitmapText'](0xa, _0x3eaf37 - 0x32, 'rough_draft', '', 0x10)['setOrigin'](0x0, 0x1);
|
||
this['whiteLayer'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'white')['setAlpha'](0x0)['setVisible'](![])['setInteractive']()['setName']('white');
|
||
var _0x1b0a82 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x6dfa32, _0x4ab1a9) {
|
||
if (_0x4ab1a9['name'] === 'lock' && _0xb43598['isInventoryActive']('inv_interface')) {
|
||
_0x1b0a82['setInventoryState'](![]);
|
||
this['unlockDoor']();
|
||
} else if (_0x4ab1a9['name'] === 'layer') {
|
||
this['nextPhrase']();
|
||
} else if (_0x4ab1a9['name'] === 'white') {
|
||
this['input']['stopPropagation']();
|
||
}
|
||
}, this);
|
||
},
|
||
'unlockDoor': function() {
|
||
_0x1967e9();
|
||
this['interface']['setVisible'](!![]);
|
||
this['lock']['setVisible'](![]);
|
||
_0x5619f8(this, 'tbt_exit_door_key');
|
||
this['tweens']['add']({
|
||
'targets': this['interface'],
|
||
'angle': '+=90',
|
||
'duration': _0xecb5a1 * 0x4,
|
||
'delay': _0xecb5a1,
|
||
'ease': 'Quart.easeIn',
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
this['startDialog']();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'startDialog': function() {
|
||
this['input']['setDefaultCursor']('pointer');
|
||
this['shadowLayer']['setVisible'](!![]);
|
||
this['dialogMessages']['setText'](_0x368ce2[this['messageNumber']]);
|
||
},
|
||
'nextPhrase': function() {
|
||
_0x1967e9();
|
||
this['messageNumber']++;
|
||
if (this['messageNumber'] >= _0x368ce2['length']) {
|
||
this['tweens']['add']({
|
||
'targets': [this['shadowLayer'], this['dialogMessages']],
|
||
'alpha': 0x0,
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['shadowLayer']['setVisible'](![]);
|
||
this['openDoor']();
|
||
} ['bind'](this)
|
||
});
|
||
} else {
|
||
var _0x1d8daf = [];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 <= this['messageNumber']; _0x5a8aa6++) {
|
||
_0x1d8daf = _0x1d8daf['concat'](_0x368ce2[_0x5a8aa6]);
|
||
_0x1d8daf['push']('');
|
||
}
|
||
var _0x2cce73 = Math['max'](0x0, _0x368ce2[this['messageNumber']]['length'] - 0x2) * 0x10 + 0x28;
|
||
this['tweens']['add']({
|
||
'targets': this['dialogMessages'],
|
||
'y': '-=' + _0x2cce73,
|
||
'duration': _0xecb5a1 * Math['max']((_0x368ce2[this['messageNumber']]['length'] - 0x2) / 0x2, 0x1) / 0x2,
|
||
'onComplete': function() {
|
||
this['dialogMessages']['setText'](_0x1d8daf);
|
||
this['dialogMessages']['y'] = _0x3eaf37 - 0x32;
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
},
|
||
'openDoor': function() {
|
||
_0x1967e9();
|
||
this['input']['setDefaultCursor']('default');
|
||
_0x5619f8(this, 'tbt_exit_door_open');
|
||
this['tweens']['add']({
|
||
'targets': this['inner'],
|
||
'angle': '-=90',
|
||
'duration': _0xecb5a1 * 0x8
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['outer'],
|
||
'angle': '+=90',
|
||
'duration': _0xecb5a1 * 0x8,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': [this['inner'], this['outer'], this['lock'], this['interface']],
|
||
'x': '+=200',
|
||
'delay': _0xecb5a1 * 0x8,
|
||
'duration': _0xecb5a1 * 0xa,
|
||
'completeDelay': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['endGame']();
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'endGame': function() {
|
||
this['whiteLayer']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['whiteLayer'],
|
||
'alpha': 0x1,
|
||
'duration': _0xecb5a1 * 0x4,
|
||
'onComplete': function() {
|
||
_0x11c867(_0xb43598['bgMusic']['name']);
|
||
_0xb43598['bgMusic']['name'] = null;
|
||
this['scene']['stop']('portalScene');
|
||
this['scene']['stop']('inventoryScene');
|
||
this['scene']['stop'](_0x280656['scene']);
|
||
this['scene']['start']('menuScene');
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x2c24bb = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tb06', {
|
||
'left': 'tb04b'
|
||
}, {
|
||
'tb04b': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {}
|
||
});
|
||
var _0x5b913b = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0001', {
|
||
'right': 'tr0002'
|
||
}, {
|
||
'tr0002': 'left',
|
||
'dep02': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 - 0xb9, _0x25d46a + 0x19, 'tr0001_door');
|
||
this['add']['sprite'](_0x2aacf1 - 0xc8, 0x0, 'tr0001_mask')['setOrigin'](0.5, 0x0);
|
||
var _0x23df84 = [];
|
||
var _0xf18085 = _0xb43598['getEvent']('tr0001_angles') || [0x0, 0x0, 0x0, 0x0, 0x0];
|
||
this['small_button_0'] = this['add']['sprite'](_0x2aacf1 - 0x113, _0x25d46a - 0x5f, 'tr0001_btn_zoomed')['setAngle'](_0xf18085[0x0])['setScale'](0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('small_button');
|
||
this['small_button_1'] = this['add']['sprite'](_0x2aacf1 - 0x10f, _0x25d46a - 0x21, 'tr0001_btn_zoomed')['setAngle'](_0xf18085[0x1])['setScale'](0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('small_button');
|
||
this['small_button_2'] = this['add']['sprite'](_0x2aacf1 - 0x10a, _0x25d46a + 0x1d, 'tr0001_btn_zoomed')['setAngle'](_0xf18085[0x2])['setScale'](0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('small_button');
|
||
this['small_button_3'] = this['add']['sprite'](_0x2aacf1 - 0x13e, _0x25d46a - 0x39, 'tr0001_btn_zoomed')['setAngle'](_0xf18085[0x3])['setScale'](0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('small_button');
|
||
this['small_button_4'] = this['add']['sprite'](_0x2aacf1 - 0x137, _0x25d46a + 0x7, 'tr0001_btn_zoomed')['setAngle'](_0xf18085[0x4])['setScale'](0.5)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('small_button');
|
||
if (_0xb43598['getEvent']('tr0001_open')) {
|
||
this['openDoor']();
|
||
}
|
||
this['addZone']({
|
||
'x': 0x3c,
|
||
'y': 0xb4,
|
||
'width': 0x64,
|
||
'height': 0xaa,
|
||
'name': 'puzzle'
|
||
});
|
||
this['createShadowLayer']();
|
||
var _0x1a7096 = this['add']['sprite'](0x14, 0x37, 'tr0001_lock')['setVisible'](!![])['setOrigin'](0x1, 0.5)['setInteractive']()['setName']('lock');
|
||
var _0x21c0d2 = this['add']['sprite'](-0x7a, -0x44, 'tr0001_btn_zoomed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button_big')['setData']('num', 0x0)['setAngle'](_0xf18085[0x0]);
|
||
var _0x3a1d47 = this['add']['sprite'](-0x77, 0x28, 'tr0001_btn_zoomed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button_big')['setData']('num', 0x1)['setAngle'](_0xf18085[0x1]);
|
||
var _0x153a60 = this['add']['sprite'](-0x6a, 0x96, 'tr0001_btn_zoomed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button_big')['setData']('num', 0x2)['setAngle'](_0xf18085[0x2]);
|
||
var _0x48065b = this['add']['sprite'](-0xcf, -0x2, 'tr0001_btn_zoomed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button_big')['setData']('num', 0x3)['setAngle'](_0xf18085[0x3]);
|
||
var _0x4f7f04 = this['add']['sprite'](-0xbe, 0x72, 'tr0001_btn_zoomed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button_big')['setData']('num', 0x4)['setAngle'](_0xf18085[0x4]);
|
||
var _0x23df84 = [_0x21c0d2, _0x3a1d47, _0x153a60, _0x48065b, _0x4f7f04];
|
||
this['container'] = this['add']['container'](_0x4a8abc - 0x96, _0x25d46a - 0x64, [_0x1a7096]['concat'](_0x23df84))['setVisible'](![])['setData']('startX', _0x4a8abc + 0x12c)['setData']('deltaX', 0x1c2);
|
||
if (_0xb43598['getEvent']('tr0001_open')) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x23df84['length']; _0x5a8aa6++) {
|
||
_0x23df84[_0x5a8aa6]['disableInteractive']();
|
||
}
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x1a5ae3, _0x4c1632) {
|
||
if (!_0xb43598['getEvent']('tr0001_open') && this['container']['visible'] == ![] && _0x4c1632['name'] == 'puzzle') {
|
||
this['showShadowLayer'](this['container']);
|
||
} else if (_0x4c1632['name'] == 'button_big') {
|
||
_0x1967e9();
|
||
var _0x479728 = _0x4c1632['getData']('num');
|
||
var _0x35f7cc = _0x4c1632['angle'];
|
||
_0x5619f8(this, 'tr0001_rotator');
|
||
this['tweens']['add']({
|
||
'targets': [_0x4c1632, this['small_button_' + _0x479728]],
|
||
'angle': _0x35f7cc + 0x5a,
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
_0xf18085[_0x479728] += 0x5a;
|
||
if (_0xf18085[_0x479728] == 0x168) {
|
||
_0xf18085[_0x479728] = 0x0;
|
||
}
|
||
_0xb43598['setEvent']('tr0001_angles', _0xf18085);
|
||
if (_0xf18085[0x0] === 0x5a && _0xf18085[0x1] === 0xb4 && _0xf18085[0x2] === 0x0 && _0xf18085[0x3] === 0x0 && _0xf18085[0x4] === 0x10e) {
|
||
_0x5619f8(this, 'tr0001_solve_lock_0001');
|
||
_0xb43598['setEvent']('tr0001_open', !![]);
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x23df84['length']; _0x5a8aa6++) {
|
||
_0x23df84[_0x5a8aa6]['disableInteractive']();
|
||
}
|
||
this['hideShadowLayer']();
|
||
_0x5619f8(this, 'tr0001_open_dep_door');
|
||
this['tweens']['add']({
|
||
'targets': this['door'],
|
||
'x': '-=30',
|
||
'y': '-=300',
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['openDoor']();
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
} else {
|
||
_0x5178ad();
|
||
}
|
||
} ['bind'](this)
|
||
});
|
||
this['input']['stopPropagation']();
|
||
} else if (_0x4c1632['name'] == 'lock') {
|
||
this['input']['stopPropagation']();
|
||
}
|
||
}, this);
|
||
},
|
||
'openDoor': function() {
|
||
this['door']['setVisible'](![]);
|
||
this['addZone']({
|
||
'x': 0xb4,
|
||
'y': 0x96,
|
||
'width': 0x64,
|
||
'height': 0x15e,
|
||
'name': 'left'
|
||
});
|
||
this['addTransition']('left', 'dep02', !![]);
|
||
}
|
||
});
|
||
var _0x4ffa0c = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0002', {
|
||
'left': 'tr0001',
|
||
'right': 'tr0003'
|
||
}, {
|
||
'tr0003': 'left',
|
||
'tr0001': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (_0xb43598['getEvent']('tr0002_saw')) {
|
||
return;
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 + 0x5a, _0x25d46a - 0x8, 'tr0002_saw')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('tr0002_saw');
|
||
this['input']['on']('gameobjectdown', function(_0x24b1b0, _0x2f67db) {
|
||
if (_0x2f67db['name'] === 'tr0002_saw') {
|
||
var _0x1842fe = this['scene']['get']('inventoryScene');
|
||
_0x1842fe['addItem'](_0x2f67db, 'inv_saw');
|
||
_0xb43598['setEvent']('tr0002_saw', !![]);
|
||
this['children']['remove'](_0x2f67db);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0xa91134 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0003', {
|
||
'top': 'tr0006',
|
||
'left': 'tr0002'
|
||
}, {
|
||
'tr0006': 'bottom',
|
||
'tr0002': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1, _0x25d46a - 0x64);
|
||
}
|
||
});
|
||
var _0x20046a = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0004', {
|
||
'top': 'tr0007',
|
||
'right': 'tr0005'
|
||
}, {
|
||
'tr0005': 'left',
|
||
'tr0007': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 - 0x96, _0x25d46a - 0x64);
|
||
}
|
||
});
|
||
var _0x17823f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0005', {
|
||
'top': 'tr0008',
|
||
'left': 'tr0004',
|
||
'right': 'tmp01'
|
||
}, {
|
||
'tr0004': 'right',
|
||
'tmp01': 'left',
|
||
'tr0008': 'bottom'
|
||
});
|
||
}
|
||
});
|
||
var _0xf75bed = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0006', {
|
||
'top': 'tr0009',
|
||
'bottom': 'tr0003'
|
||
}, {
|
||
'tr0003': 'top',
|
||
'tr0009': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (typeof _0xb43598['getEvent']('tr0006_rele_angle') === 'undefined') {
|
||
_0xb43598['setEvent']('tr0006_rele_angle', 0x0);
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 + 0x2d, _0x25d46a - 0x10, 'tr0006_switch')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('rele')['setAngle'](_0xb43598['getEvent']('tr0006_rele_angle'));
|
||
this['input']['on']('gameobjectdown', function(_0x3f7194, _0x5841e6) {
|
||
if (_0x5841e6['name'] === 'rele') {
|
||
_0x5619f8(this, 'tr0006_rotator');
|
||
_0xb43598['setEvent']('tr0006_rele_angle', (_0xb43598['getEvent']('tr0006_rele_angle') + 0x2d) % 0x168);
|
||
_0x5841e6['setAngle'](_0xb43598['getEvent']('tr0006_rele_angle'));
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x33f178 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0007', {
|
||
'bottom': 'tr0004'
|
||
}, {
|
||
'tr0004': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (typeof _0xb43598['getEvent']('tr0007_rele_angle') === 'undefined') {
|
||
_0xb43598['setEvent']('tr0007_rele_angle', 0x5a);
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 - 0x48, _0x25d46a - 0xa, 'tr0006_switch')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('rele')['setAngle'](_0xb43598['getEvent']('tr0007_rele_angle'));
|
||
if (!_0xb43598['getEvent']('inv_shovel')) {
|
||
this['add']['sprite'](_0x2aacf1 - 0x104, _0x25d46a, 'tr0005_shovel')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('shovel');
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x5b74b7, _0x27f9c2) {
|
||
if (_0x27f9c2['name'] === 'shovel') {
|
||
var _0x31ef1b = this['scene']['get']('inventoryScene');
|
||
_0x31ef1b['addItem'](_0x27f9c2, 'inv_shovel');
|
||
_0xb43598['setEvent']('inv_shovel', !![]);
|
||
this['children']['remove'](_0x27f9c2);
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
} else if (_0x27f9c2['name'] === 'rele') {
|
||
_0x5619f8(this, 'tr0006_rotator');
|
||
_0xb43598['setEvent']('tr0007_rele_angle', (_0xb43598['getEvent']('tr0007_rele_angle') + 0x2d) % 0x168);
|
||
_0x27f9c2['setAngle'](_0xb43598['getEvent']('tr0007_rele_angle'));
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0xd9f8ad = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0008', {
|
||
'top': 'tr0011',
|
||
'bottom': 'tr0005'
|
||
}, {
|
||
'tr0005': 'top',
|
||
'tr0011': 'bottom'
|
||
});
|
||
}
|
||
});
|
||
var _0x86619a = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0009', {
|
||
'right': 'tr0010',
|
||
'bottom': 'tr0006'
|
||
}, {
|
||
'tr0006': 'top',
|
||
'tr0010': 'left'
|
||
}, null, {
|
||
'intr0009': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x5a1de3 = !!_0xb43598['getEvent']('tr0703_skull_complete');
|
||
this['add']['sprite'](_0x2aacf1 + 0x69, _0x25d46a, 'tr0009_door_burnt')['setVisible'](_0x5a1de3);
|
||
this['add']['sprite'](_0x2aacf1 + 0x69, _0x25d46a, 'tr0009_door')['setVisible'](!_0x5a1de3);
|
||
if (_0x5a1de3) {
|
||
this['addZone']({
|
||
'x': _0x2aacf1 + 0x23,
|
||
'y': _0x25d46a - 0xbe,
|
||
'width': 0x8c,
|
||
'height': 0x12c,
|
||
'name': 'portal'
|
||
});
|
||
}
|
||
}
|
||
});
|
||
var _0x451616 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0010', {
|
||
'left': 'tr0009',
|
||
'right': 'tr0011'
|
||
}, {
|
||
'tr0009': 'right',
|
||
'tr0011': 'left',
|
||
'tr0102': 'bottom'
|
||
}, {}, {
|
||
'tb03': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 - 0x79, _0x25d46a - 0x24, {
|
||
'name': 'tr0010_door',
|
||
'scale': 1.01
|
||
}, {
|
||
'scale': 0.6
|
||
}, 'tb03');
|
||
if (_0xb43598['getEvent']('tmp05_win')) {
|
||
this['ladder'] = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a - 0x55, 'tr0102_ladder');
|
||
if (_0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
this['ladder']['y'] = _0x25d46a - 0x168;
|
||
this['removeTransition']('top');
|
||
} else {
|
||
this['addTransition']('top', 'tr0102');
|
||
}
|
||
}
|
||
},
|
||
'extra_transition': function(_0x53f038) {
|
||
this['createAnimation']('tr0010_close_door');
|
||
if (_0x53f038['scene']['key'] === 'tb03') {
|
||
_0x5619f8(this, 'close_door');
|
||
this['doorObj']['play']('tr0010_close_door');
|
||
}
|
||
}
|
||
});
|
||
var _0x21f62d = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0011', {
|
||
'left': 'tr0010',
|
||
'right': 'tr0012'
|
||
}, {
|
||
'tr0010': 'right',
|
||
'tr0012': 'left',
|
||
'tr0008': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0xe8ef46 = -0x50;
|
||
var _0x2e657f = this['scene']['get']('inventoryScene');
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0x73, _0x25d46a + 0x91, 'tr0011_lever')['setOrigin'](0.79, 0.9)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever')['setVisible'](![]);
|
||
this['slot'] = this['add']['sprite'](_0x2aacf1 - 0x73, _0x25d46a + 0x91, 'tr0011_slot')['setName']('ladder_slot');
|
||
this['ladder'] = this['add']['sprite'](_0x2aacf1 + 0x1c, _0x25d46a + 0x41, 'tr0011_ladder_0')['setOrigin'](0.5, 0x0)['setScale'](0.8);
|
||
if (_0xb43598['getEvent']('tr0011_ladder_complete')) {
|
||
this['slot']['setAngle'](_0xe8ef46);
|
||
if (!_0xb43598['getEvent']('tr0011_stick_remove')) {
|
||
this['lever']['setAngle'](_0xe8ef46)['setVisible'](!![]);
|
||
}
|
||
this['ladder']['setTexture']('tr0011_ladder_32');
|
||
this['addTransition']('bottom', 'tr0008');
|
||
} else {
|
||
this['ladder']['on']('animationcomplete', function(_0x29ae37, _0xe01061) {
|
||
_0xb43598['setEvent']('tr0011_ladder_complete', !![]);
|
||
this['addTransition']('bottom', 'tr0008');
|
||
_0x5178ad();
|
||
} ['bind'](this));
|
||
if (_0xb43598['getEvent']('tr0011_lever_ready')) {
|
||
this['lever']['setVisible'](!![]);
|
||
} else {
|
||
this['slot']['setInteractive']();
|
||
}
|
||
this['createAnimation']('tr0011_ladder');
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x610829, _0x44ae23) {
|
||
if (_0xb43598['getEvent']('tr0011_stick_remove')) {
|
||
return;
|
||
}
|
||
if (_0x44ae23['name'] == 'ladder_slot') {
|
||
if (!_0xb43598['getEvent']('tr0011_lever_ready') && _0xb43598['isInventoryActive']('inv_stick')) {
|
||
this['lever']['setVisible'](!![]);
|
||
this['slot']['disableInteractive']();
|
||
_0x2e657f['removeItem']('inv_stick', 'tr0011_wood_stick_connect');
|
||
_0xb43598['setEvent']('tr0011_lever_ready', !![]);
|
||
}
|
||
} else if (_0x44ae23['name'] == 'lever') {
|
||
if (!_0xb43598['getEvent']('tr0011_ladder_complete') && _0xb43598['getEvent']('tr0011_lever_ready')) {
|
||
_0x5619f8(this, 'tr0011_wood_stick_use');
|
||
this['tweens']['add']({
|
||
'targets': [this['lever'], this['slot']],
|
||
'angle': _0xe8ef46,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Expo.easeIn',
|
||
'onComplete': function() {
|
||
this['ladder']['play']('tr0011_ladder');
|
||
} ['bind'](this)
|
||
});
|
||
_0x1967e9();
|
||
this['input']['setDefaultCursor']('default');
|
||
} else if (_0xb43598['getEvent']('tr0011_ladder_complete')) {
|
||
_0x2e657f['addItem'](_0x44ae23, 'inv_stick');
|
||
this['lever']['setVisible'](![]);
|
||
_0xb43598['setEvent']('tr0011_stick_remove', !![]);
|
||
}
|
||
}
|
||
} ['bind'](this));
|
||
}
|
||
});
|
||
var _0x2e8ac0 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0012', {
|
||
'left': 'tr0011',
|
||
'right': 'tr0013'
|
||
}, {
|
||
'tr0011': 'right',
|
||
'tr0013': 'left'
|
||
});
|
||
}
|
||
});
|
||
var _0x448542 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0013', {
|
||
'left': 'tr0012'
|
||
}, {
|
||
'tr0012': 'right',
|
||
'tr0103': 'bottom',
|
||
'tmp07': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['liana'] = this['add']['sprite'](_0x2aacf1, -0x3c, 'tr0013_liana')['setOrigin'](0.5, 0x0)['setName']('liana');
|
||
this['lianas'] = this['add']['sprite'](_0x2aacf1, 0x0, 'tr0013_lianas')['setOrigin'](0.5, 0x0)['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('tr0013_liana')) {
|
||
this['lianas']['setVisible'](!![]);
|
||
this['lianas']['y'] = 0x0;;
|
||
if (typeof this['transitions']['top'] === 'undefined') {
|
||
this['addTransition']('top', 'tr0103');
|
||
}
|
||
} else {
|
||
this['lianas']['y'] = -_0x3eaf37;
|
||
this['liana']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x254002, _0x438733) {
|
||
if (_0xb43598['getEvent']('tr0013_liana')) {
|
||
return;
|
||
}
|
||
if (_0x438733['name'] == 'liana') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'tr0013_liana');
|
||
this['tweens']['add']({
|
||
'targets': _0x438733,
|
||
'y': _0x438733['y'] + 0x1e,
|
||
'duration': 0xc8,
|
||
'ease': 'Expo.easeIn',
|
||
'yoyo': !![],
|
||
'repeat': 0x0,
|
||
'onComplete': function() {
|
||
this['lianas']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['lianas'],
|
||
'y': 0x0,
|
||
'duration': 0x12c,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
this['addTransition']('top', 'tr0103');
|
||
this['liana']['disableInteractive']();
|
||
_0xb43598['setEvent']('tr0013_liana', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x2bf10f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0101', {
|
||
'right': 'tr0102'
|
||
}, {
|
||
'tr0102': 'left'
|
||
}, null, {
|
||
'pr02': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['lamp'] = this['add']['sprite'](_0x2aacf1 + 0xb1, _0x25d46a - 0xba, 'tr0101_indicator_red');
|
||
this['createDoor'](_0x2aacf1 + 0x48, _0x25d46a - 0x20, {
|
||
'name': 'tr0101_door',
|
||
'key': 'inv_key2',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': {
|
||
'x': 0.5,
|
||
'y': 0.8
|
||
}
|
||
}, 'pr02', this['lamp']);
|
||
}
|
||
});
|
||
var _0x3b270f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0102', {
|
||
'left': 'tr0101',
|
||
'top': 'tr0201'
|
||
}, {
|
||
'tr0010': 'top',
|
||
'tr0201': 'bottom',
|
||
'tr0101': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['gear'] = this['add']['sprite'](_0x2aacf1 + 0x6e, _0x25d46a + 0x74, 'tr0102_gear');
|
||
this['ladder'] = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a + 0x10, 'tr0102_ladder');
|
||
this['add']['sprite'](_0x2aacf1 + 0xe9, _0x25d46a + 0xc4, 'tr0102_cover');
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x64, 'tr0102_lever')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever');
|
||
this['lever2'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x78, 'tr0102_lever2')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever');
|
||
this['smallGear'] = this['add']['sprite'](_0x2aacf1 + 0x86, _0x25d46a + 0xf1, 'tr0102_small_gear');
|
||
this['add']['sprite'](_0x2aacf1 + 0x76, _0x25d46a + 0xf4, 'tr0102_small_gear_cover');
|
||
if (!_0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
this['ladder']['y'] = 0x210;
|
||
this['gear']['setAngle'](0xaf);
|
||
this['smallGear']['setAngle'](0x352);
|
||
this['addTransition']('bottom', 'tr0010');
|
||
} else {
|
||
this['removeTransition']('bottom');
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x1a8cd8, _0x4b6f64) {
|
||
if (_0x4b6f64['name'] != 'lever') {
|
||
return;
|
||
}
|
||
this['moveLadder']();
|
||
}, this);
|
||
},
|
||
'moveLadder': function() {
|
||
var _0x4dde6d = 0xaf;
|
||
var _0x693843 = 0x352;
|
||
var _0x812667 = 0x210;
|
||
if (!_0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
_0x4dde6d = 0x0;
|
||
_0x693843 = -_0x693843;
|
||
_0x812667 = _0x25d46a + 0x10;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': this['gear'],
|
||
'angle': _0x4dde6d,
|
||
'duration': _0xecb5a1 * 0x3
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['ladder'],
|
||
'y': _0x812667,
|
||
'duration': _0xecb5a1 * 0x3
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['smallGear'],
|
||
'angle': _0x693843,
|
||
'duration': _0xecb5a1 * 0x3
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['lever'],
|
||
'yoyo': !![],
|
||
'repeat': 0x0,
|
||
'y': 0xf5,
|
||
'duration': _0xecb5a1,
|
||
'scaleY': -0x1
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['lever2'],
|
||
'y': 0x10e,
|
||
'yoyo': !![],
|
||
'repeat': 0x0,
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
_0x1967e9();
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
_0xb43598['setEvent']('tr0102_ladder_up', !_0xb43598['getEvent']('tr0102_ladder_up'));
|
||
if (!_0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
_0x5619f8(this, 'tr0102_ladder_down_0102');
|
||
this['addTransition']('bottom', 'tr0010');
|
||
} else {
|
||
_0x5619f8(this, 'tr0102_ladder_up_0102');
|
||
this['removeTransition']('bottom');
|
||
}
|
||
}
|
||
});
|
||
var _0x10c95a = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0103', {
|
||
'top': 'tr0204',
|
||
'bottom': 'tr0013'
|
||
}, {
|
||
'tr0013': 'top',
|
||
'tr0204': 'bottom'
|
||
});
|
||
}
|
||
});
|
||
var _0x2c58db = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0201', {
|
||
'right': 'tr0202',
|
||
'top': 'tr0302',
|
||
'bottom': 'tr0102'
|
||
}, {
|
||
'tr0102': 'top',
|
||
'tr0202': 'left',
|
||
'tr0302': 'bottom'
|
||
}, null, {
|
||
'tr0201b': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['zone'](0x1a4, 0xdc, 0x64, 0xfa)['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['input']['on']('gameobjectdown', function(_0x435c3f, _0x5e9271) {
|
||
if (_0x5e9271['name'] == 'portal') {
|
||
_0x36f2e8(this, 'tr0201b', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0xd60327 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0201b', {}, {}, null, {
|
||
'tr0201': 'portal',
|
||
'flp05': 'portal_c',
|
||
'sp03': 'portal_l',
|
||
'os03': 'portal_r'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
this['portal_l'] = this['add']['sprite'](_0x2aacf1 - 0xcd, _0x25d46a - 0x5, 'portal_1')['setName']('portal_l');
|
||
this['door_l'] = this['add']['sprite'](_0x2aacf1 - 0xcd, _0x25d46a - 0x5, 'tr0201b_door_l')['setInteractive']()['setName']('door_l');
|
||
this['portal_c'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a - 0x28, 'portal_1')['setName']('portal_c');
|
||
this['door_c'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a - 0x28, 'tr0201b_door_c')['setInteractive']()['setName']('door_c');
|
||
this['portal_r'] = this['add']['sprite'](_0x2aacf1 + 0xeb, _0x25d46a, 'portal_1')['setName']('portal_r');
|
||
this['door_r'] = this['add']['sprite'](_0x2aacf1 + 0xeb, _0x25d46a, 'tr0201b_door_r')['setInteractive']()['setName']('door_r');
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
var _0x339f9d = _0x130e52['bottom'];
|
||
this['add']['zone'](_0x339f9d['x'], _0x339f9d['y'], _0x339f9d['width'], _0x339f9d['height'])['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
var _0x4b79e7 = this['add']['sprite'](_0x2aacf1 - 0x78, _0x25d46a - 0xaa, 'tr0010_indicator_green')['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('tr0201b_door_l_unlocked')) {
|
||
this['door_l']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x4b79e7['setVisible'](!![]);
|
||
}
|
||
if (_0xb43598['getEvent']('tr0201b_door_l_open')) {
|
||
this['door_l']['setVisible'](![])['disableInteractive']();
|
||
this['portal_l']['play']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
var _0x2b0d07 = this['add']['sprite'](_0x2aacf1 + 0x82, _0x25d46a - 0xa8, 'tr0010_indicator_green')['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('tr0201b_door_c_unlocked')) {
|
||
this['door_c']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x2b0d07['setVisible'](!![]);
|
||
}
|
||
if (_0xb43598['getEvent']('tr0201b_door_c_open')) {
|
||
this['door_c']['setVisible'](![])['disableInteractive']();
|
||
this['portal_c']['play']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
var _0x5ef40d = this['add']['sprite'](_0x2aacf1 + 0x146, _0x25d46a - 0x88, 'tr0010_indicator_green')['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('tr0201b_door_r_unlocked')) {
|
||
this['door_r']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5ef40d['setVisible'](!![]);
|
||
}
|
||
if (_0xb43598['getEvent']('tr0201b_door_r_open')) {
|
||
this['door_r']['setVisible'](![])['disableInteractive']();
|
||
this['portal_r']['play']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
if (!_0xb43598['getEvent']('tr0201b_scheme')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x64, _0x25d46a + 0xc8, 'tr0201b_scheme')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('scheme');
|
||
}
|
||
var _0x243911 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x5bb6aa, _0xfb12ba) {
|
||
if (_0xfb12ba['name'] == 'door_l') {
|
||
if (!_0xb43598['getEvent']('tr0201b_door_l_unlocked')) {
|
||
if (_0xb43598['isInventoryActive']('inv_key3')) {
|
||
_0x5619f8(this, 'unlock_door');
|
||
_0x4b79e7['setVisible'](!![]);
|
||
_0xb43598['setEvent']('tr0201b_door_l_unlocked', !![]);
|
||
_0x243911['resetActiveItem']();
|
||
}
|
||
} else {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['portal_l']['play']('portal');
|
||
this['tweens']['add']({
|
||
'targets': this['door_l'],
|
||
'x': '+=150',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['portal_l']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5178ad();
|
||
_0xfb12ba['setVisible'](![]);
|
||
_0xb43598['setEvent']('tr0201b_door_l_open', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
} else if (_0xfb12ba['name'] == 'door_c') {
|
||
if (!_0xb43598['getEvent']('tr0201b_door_c_unlocked')) {
|
||
if (_0xb43598['isInventoryActive']('inv_key4')) {
|
||
_0x5619f8(this, 'unlock_door');
|
||
_0x2b0d07['setVisible'](!![]);
|
||
_0xb43598['setEvent']('tr0201b_door_c_unlocked', !![]);
|
||
_0x243911['resetActiveItem']();
|
||
}
|
||
} else {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['portal_c']['play']('portal');
|
||
this['tweens']['add']({
|
||
'targets': this['door_c'],
|
||
'x': '+=150',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['portal_c']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5178ad();
|
||
_0xfb12ba['setVisible'](![]);
|
||
_0xb43598['setEvent']('tr0201b_door_c_open', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
} else if (_0xfb12ba['name'] == 'door_r') {
|
||
if (!_0xb43598['getEvent']('tr0201b_door_r_unlocked')) {
|
||
if (_0xb43598['isInventoryActive']('inv_key5')) {
|
||
_0x5619f8(this, 'unlock_door');
|
||
_0x5ef40d['setVisible'](!![]);
|
||
_0xb43598['setEvent']('tr0201b_door_r_unlocked', !![]);
|
||
_0x243911['resetActiveItem']();
|
||
}
|
||
} else {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['portal_r']['play']('portal');
|
||
this['tweens']['add']({
|
||
'targets': this['door_r'],
|
||
'x': '+=150',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['portal_r']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5178ad();
|
||
_0xfb12ba['setVisible'](![]);
|
||
_0xb43598['setEvent']('tr0201b_door_r_open', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
} else if (_0xfb12ba['name'] == 'portal_l') {
|
||
_0x36f2e8(this, 'sp03', 'transition_portal');
|
||
} else if (_0xfb12ba['name'] == 'portal_c') {
|
||
_0x36f2e8(this, 'flp05', 'transition_portal');
|
||
} else if (_0xfb12ba['name'] == 'portal_r') {
|
||
_0x36f2e8(this, 'os03', 'transition_portal');
|
||
} else if (_0xfb12ba['name'] == 'portal') {
|
||
_0x36f2e8(this, 'tr0201', !![]);
|
||
} else if (_0xfb12ba['name'] == 'scheme') {
|
||
if (!_0x243911['addItem'](_0xfb12ba, 'inv_code')) return;
|
||
_0xb43598['setEvent']('tr0201b_scheme', !![]);
|
||
this['children']['remove'](_0xfb12ba);
|
||
this['input']['stopPropagation']();
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x23a504 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0202', {
|
||
'left': 'tr0201'
|
||
}, {
|
||
'tr0203': 'left',
|
||
'tr0201': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x414df6 = this['scene']['get']('inventoryScene');
|
||
var _0x5bba0a = -0x51;
|
||
this['bridge'] = this['add']['sprite'](_0x2aacf1 - 0x37, _0x25d46a + 0xc8, 'tr0202_bridge')['setOrigin'](0x0, 0.5)['setAngle'](-0x4b);
|
||
this['gear1'] = this['add']['sprite'](_0x2aacf1 - 0x3c, _0x25d46a + 0xca, 'tr0202_gear1');
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a + 0x9b, 'tr0202_lever')['setName']('lever')['setOrigin'](0.8, 0.9)['setVisible'](![])['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['slot'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a + 0x9b, 'tr0202_gear2')['setName']('slot')['setInteractive']();
|
||
this['gear3'] = this['add']['sprite'](_0x2aacf1 - 0x5a, _0x25d46a + 0xf0, 'tr0202_gear3');
|
||
if (_0xb43598['getEvent']('tr0202_bridge')) {
|
||
this['lever']['setVisible'](!![])['setAngle'](_0x5bba0a)['disableInteractive']();
|
||
this['slot']['setAngle'](_0x5bba0a)['disableInteractive']();
|
||
this['bridge']['setAngle'](0x0);
|
||
if (typeof this['transitions']['right'] === 'undefined') {
|
||
this['addTransition']('right', 'tr0203');
|
||
}
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0xada36d, _0x14c785) {
|
||
if (_0x14c785['name'] == 'slot') {
|
||
if (_0xb43598['isInventoryActive']('inv_stick')) {
|
||
_0x5619f8(this, 'tr0011_wood_stick_connect');
|
||
this['lever']['setVisible'](!![]);
|
||
this['slot']['disableInteractive']();
|
||
_0x414df6['removeItem']('inv_stick');
|
||
_0xb43598['setEvent']('tr0202_lever_ready', !![]);
|
||
return;
|
||
}
|
||
} else if (_0x14c785['name'] == 'lever') {
|
||
_0x5619f8(this, 'tr0202_bridge_0202');
|
||
this['tweens']['add']({
|
||
'targets': [this['gear1'], this['gear3']],
|
||
'angle': 0xb4,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Expo.easeIn'
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['lever'], this['slot']],
|
||
'angle': _0x5bba0a,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Expo.easeIn'
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['bridge'],
|
||
'angle': 0x0,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Expo.easeIn',
|
||
'onComplete': function() {
|
||
_0xb43598['setEvent']('tr0202_bridge', !![]);
|
||
_0x5178ad();
|
||
this['lever']['disableInteractive']();
|
||
this['addTransition']('right', 'tr0203');
|
||
} ['bind'](this)
|
||
});
|
||
_0x1967e9();
|
||
this['input']['setDefaultCursor']('default');
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x1f1a7c = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0203', {
|
||
'right': 'tr0204'
|
||
}, {
|
||
'tr0204': 'left',
|
||
'tr0202': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (_0xb43598['getEvent']('tr0202_bridge')) {
|
||
this['addTransition']('left', 'tr0202');
|
||
this['add']['sprite'](-0x66, _0x25d46a + 0xc6, 'tr0202_bridge');
|
||
}
|
||
if (_0xb43598['getEvent']('inv_stick')) {
|
||
return;
|
||
}
|
||
var _0x37113b = this['scene']['get']('inventoryScene');
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0x4b, _0x25d46a + 0xc0, 'tr0203_lever')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever')['setOrigin'](0.7, 0x1);
|
||
this['lever_ready'] = this['add']['sprite'](_0x2aacf1 - 0x96, _0x25d46a + 0xb4, 'tr0203_bridge')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever_ready')['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('inv_lever_ready')) {
|
||
this['lever_ready']['setVisible'](!![]);
|
||
this['lever']['setVisible'](![]);
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x44c482, _0x29cb07) {
|
||
if (_0x29cb07['name'] == 'lever_ready') {
|
||
this['lever_ready']['disableInteractive']();
|
||
_0x37113b['addItem'](_0x29cb07, 'inv_stick');
|
||
this['children']['remove'](this['lever_ready']);
|
||
_0xb43598['setEvent']('inv_stick', !![]);
|
||
} else if (_0x29cb07['name'] == 'lever') {
|
||
if (this['lever']['getData']('in_progress')) {} else if (_0xb43598['isInventoryActive']('inv_saw')) {
|
||
var _0x25f34b = {
|
||
'x': _0x2aacf1 - 0x1e,
|
||
'y': _0x3eaf37 - 0xb4
|
||
};
|
||
_0x37113b['removeItem']('inv_saw');
|
||
var _0x5b5cec = this['add']['sprite'](_0x25f34b['x'], _0x25f34b['y'], 'inv_items', 'inv_saw')['setScale'](0.35)['setAngle'](-0x5a);
|
||
_0x5619f8(this, 'tr0203_saw_working');
|
||
this['tweens']['add']({
|
||
'targets': _0x5b5cec,
|
||
'x': _0x25f34b['x'] - 0x3c,
|
||
'y': _0x25f34b['y'] + 0x3c,
|
||
'duration': _0xecb5a1,
|
||
'yoyo': !![],
|
||
'repeat': 0x2,
|
||
'onYoyo': function() {
|
||
this['lever']['angle'] -= 0x3;
|
||
} ['bind'](this),
|
||
'onComplete': function() {
|
||
this['children']['remove'](_0x5b5cec);
|
||
this['lever_ready']['setVisible'](!![]);
|
||
this['children']['remove'](this['lever']);
|
||
_0x5178ad();
|
||
_0xb43598['setEvent']('inv_lever_ready', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
this['lever']['setData']('in_progress', !![]);
|
||
_0x1967e9();
|
||
} else if (!_0xb43598['getInventoryActive']()) {
|
||
_0x5619f8(this, 'tr0203_wood_stick_sway');
|
||
this['tweens']['add']({
|
||
'targets': this['lever'],
|
||
'angle': -0x5,
|
||
'duration': _0xecb5a1 / 0x2,
|
||
'yoyo': !![]
|
||
});
|
||
}
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x300eff = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0204', {
|
||
'left': 'tr0203',
|
||
'bottom': 'tr0103'
|
||
}, {
|
||
'tr0103': 'top',
|
||
'tr0203': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x2731ee = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0300', {
|
||
'top': 'tr0400'
|
||
}, {
|
||
'tr0400': 'bottom'
|
||
}, null, {
|
||
'tr0301': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['zone'](_0x2aacf1 + 0x87, _0x25d46a - 0x82, 0x91, 0x12c)['setName']('portal_tr0300')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['input']['on']('gameobjectdown', function(_0x1aa55f, _0x4ba58c) {
|
||
if (_0x4ba58c['name'] == 'portal_tr0300') {
|
||
_0x36f2e8(this, 'tr0301', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0xfea27f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0301', {
|
||
'right': 'tr0302'
|
||
}, {
|
||
'tr0302': 'left'
|
||
}, [{
|
||
'x': _0x2aacf1 - 0x86,
|
||
'y': _0x25d46a - 0x104,
|
||
'width': 0x8c,
|
||
'height': 0x12c,
|
||
'name': 'portal'
|
||
}], {
|
||
'tr0300': 'portal',
|
||
'htf01': 'portal_2'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x4cc024 = this['add']['sprite'](_0x2aacf1 + 0x157, _0x25d46a - 0xab, 'tr0101_indicator_red');
|
||
this['createDoor'](_0x2aacf1 + 0xeb, _0x25d46a - 0x11, {
|
||
'name': 'tr0301_door',
|
||
'key': 'inv_key1',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': {
|
||
'x': 0.5,
|
||
'y': 0.8
|
||
}
|
||
}, 'htf01', _0x4cc024);
|
||
}
|
||
});
|
||
var _0xe57b7a = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0302', {
|
||
'left': 'tr0301',
|
||
'bottom': 'tr0201'
|
||
}, {
|
||
'tr0201': 'top',
|
||
'tr0301': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 - 0x82, _0x25d46a - 0x5e);
|
||
}
|
||
});
|
||
var _0x30e738 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0400', {
|
||
'top': 'tr0500',
|
||
'bottom': 'tr0300'
|
||
}, {
|
||
'tr0500': 'bottom',
|
||
'tr0300': 'top'
|
||
});
|
||
}
|
||
});
|
||
var _0x31d425 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0401', {
|
||
'top': 'tr0503'
|
||
}, {
|
||
'tr0503': 'bottom'
|
||
}, null, {
|
||
'7ka': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x58f1c5 = this['add']['sprite'](_0x2aacf1 + 0x30, _0x25d46a - 0xb7, 'tr0010_indicator_green');
|
||
this['createDoor'](_0x2aacf1 - 0x34, _0x25d46a - 0x26, {
|
||
'name': 'tr0401_door',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': {
|
||
'x': 0.75,
|
||
'y': 0.85
|
||
},
|
||
'y': _0x25d46a - 0x1e
|
||
}, '7ka');
|
||
this['children']['bringToTop'](_0x58f1c5);
|
||
}
|
||
});
|
||
var _0x5575da = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0500', {
|
||
'bottom': 'tr0400'
|
||
}, {
|
||
'tr0400': 'top'
|
||
}, null, {
|
||
'tr0502': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['zone'](_0x2aacf1 + 0x55, _0x25d46a - 0xa8, 0x8c, 0x12c)['setName']('portal_tr0502')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['input']['on']('gameobjectdown', function(_0x147fde, _0x91b06b) {
|
||
if (_0x91b06b['name'] == 'portal_tr0502') {
|
||
_0x36f2e8(this, 'tr0502', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x333a49 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0501', {
|
||
'right': 'tr0502'
|
||
}, {
|
||
'tr0502': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (!_0xb43598['getEvent']('tr0701_key') || _0xb43598['getEvent']('tr0501_key')) {
|
||
return;
|
||
}
|
||
this['key'] = this['add']['sprite'](_0x2aacf1 - 0x26, _0x25d46a + 0x70, 'tr0501_key')['setName']('key')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
var _0x26571e = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x1aa1e5, _0x1efef8) {
|
||
if (_0x1efef8['name'] == 'key') {
|
||
_0x26571e['addItem'](_0x1efef8, 'inv_key3');
|
||
_0xb43598['setEvent']('tr0501_key', !![]);
|
||
this['children']['remove'](_0x1efef8);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x583b89 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0502', {
|
||
'left': 'tr0501',
|
||
'right': 'tr0503'
|
||
}, {
|
||
'tr0703': 'bottom',
|
||
'tr0501': 'right',
|
||
'tr0503': 'left'
|
||
}, null, {
|
||
'tr0500': 'portal',
|
||
'lch01': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
var _0x432615 = _0xb43598['getEvent']('tr0502_door_unlock');
|
||
var _0x5e102b = _0xb43598['getEvent']('tr0502_door_open');
|
||
var _0x423b9b = this['add']['sprite'](_0x2aacf1 - 0xa8, _0x25d46a - 0x84, 'tr0101_indicator_red');
|
||
var _0x4d5942 = this['add']['sprite'](_0x2aacf1 - 0x3a, _0x25d46a + 0x17, 'portal_1')['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setScale'](0.71, 0.84);
|
||
var _0x1fae29 = this['add']['sprite'](_0x2aacf1 - 0x3a, _0x25d46a + 0x17, 'tr0502_door')['setName']('door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setScale'](1.05, 0x1);
|
||
if (_0x432615) {
|
||
_0x423b9b['setTexture']('tr0010_indicator_green');
|
||
}
|
||
if (_0x5e102b) {
|
||
_0x1fae29['setVisible'](![]);
|
||
_0x4d5942['play']('portal');
|
||
} else {
|
||
this['createMask'](_0x1fae29);
|
||
}
|
||
this['add']['zone'](_0x2aacf1 + 0x73, _0x25d46a - 0x69, 0x8c, 0x136)['setName']('portal_tr0500')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
var _0x4ad69e = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x212eaf, _0x49dc32) {
|
||
if (_0x49dc32['name'] == 'portal_tr0500') {
|
||
_0x36f2e8(this, 'tr0500', !![]);
|
||
} else if (_0x49dc32['name'] === 'portal') {
|
||
_0x36f2e8(this, 'lch01', 'transition_portal');
|
||
} else if (_0x49dc32['name'] === 'door') {
|
||
if (!_0x432615 && _0xb43598['isInventoryActive']('inv_key6')) {
|
||
_0x5619f8(this, 'unlock_door');
|
||
_0x423b9b['setTexture']('tr0010_indicator_green');
|
||
_0x4ad69e['resetActiveItem']();
|
||
_0xb43598['setEvent']('tr0502_door_unlock', !![]);
|
||
_0x432615 = !![];
|
||
} else if (_0x432615) {
|
||
_0x1967e9();
|
||
_0x4d5942['play']('portal');
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['tweens']['add']({
|
||
'targets': _0x1fae29,
|
||
'duration': _0xecb5a1,
|
||
'y': '-=350',
|
||
'onComplete': function() {
|
||
_0xb43598['setEvent']('tr0502_door_open', !![]);
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'createMask': function(_0x1bb5a1) {
|
||
var _0x59d6f6 = {
|
||
'topLeftX': -0x50,
|
||
'topLeftY': -0xac,
|
||
'topRightX': 0x46,
|
||
'topRightY': -0xac,
|
||
'bottomLeftX': -0x50,
|
||
'bottomLeftY': 0xaf,
|
||
'bottomRightX': 0x46,
|
||
'bottomRightY': 0xaf
|
||
};
|
||
var _0x1a839d = this['make']['mesh']({
|
||
'key': 'phaser2',
|
||
'x': _0x1bb5a1['x'],
|
||
'y': _0x1bb5a1['y'],
|
||
'vertices': [_0x59d6f6['topLeftX'], _0x59d6f6['topLeftY'], _0x59d6f6['bottomLeftX'], _0x59d6f6['bottomLeftY'], _0x59d6f6['bottomRightX'], _0x59d6f6['bottomRightY'], _0x59d6f6['topLeftX'], _0x59d6f6['topLeftY'], _0x59d6f6['bottomRightX'], _0x59d6f6['bottomRightY'], _0x59d6f6['topRightX'], _0x59d6f6['topRightY']],
|
||
'uv': [0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0],
|
||
'add': ![]
|
||
});
|
||
_0x1bb5a1['mask'] = new Phaser['Display']['Masks']['GeometryMask'](this, _0x1a839d);
|
||
}
|
||
});
|
||
var _0x3f551d = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0503', {
|
||
'bottom': 'tr0401',
|
||
'top': 'tr0703',
|
||
'left': 'tr0502'
|
||
}, {
|
||
'tr0502': 'right',
|
||
'tr0703': 'bottom',
|
||
'tr0401': 'top'
|
||
}, null, {
|
||
'intr0503': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x1f943e = !!_0xb43598['getEvent']('tr0703_skull_complete');
|
||
this['add']['sprite'](_0x2aacf1 - 0x4b, _0x25d46a - 0x32, 'tr0503_door_burnt')['setVisible'](_0x1f943e);
|
||
this['add']['sprite'](_0x2aacf1 - 0x4b, _0x25d46a - 0x32, 'tr0503_door')['setVisible'](!_0x1f943e);
|
||
if (_0x1f943e) {
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x96,
|
||
'y': _0x25d46a - 0xc8,
|
||
'width': 0xa0,
|
||
'height': 0x12c,
|
||
'name': 'portal'
|
||
});
|
||
}
|
||
}
|
||
});
|
||
var _0x5ec77 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0701', {
|
||
'right': 'tr0702'
|
||
}, {
|
||
'tr0702': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (!_0xb43598['getEvent']('tr0701_key')) {
|
||
this['key'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a - 0x96, 'tr0701_key')['setName']('key')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x3679ce, _0x22d5e4) {
|
||
if (_0x22d5e4['name'] == 'key') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'tr0701_key_fall_0701');
|
||
this['tweens']['add']({
|
||
'targets': this['key'],
|
||
'y': _0x3eaf37 * 1.1,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Cubic.easeIn',
|
||
'onComplete': function() {
|
||
this['key']['setVisible'](![]);
|
||
_0xb43598['setEvent']('tr0701_key', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x5a09dd = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0702', {
|
||
'left': 'tr0701',
|
||
'right': 'tr0703'
|
||
}, {
|
||
'tr0703': 'left',
|
||
'tr0701': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x2fabe2 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tr0703', {
|
||
'bottom': 'tr0503',
|
||
'left': 'tr0702'
|
||
}, {
|
||
'tr0702': 'right',
|
||
'tr0503': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x19b946 = !!_0xb43598['getEvent']('tr0703_skull_complete');
|
||
this['liquid'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a - 0x5b, 'tr0703_liquid')['setVisible'](_0x19b946);
|
||
this['liquidstroke'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a - 0x56, 'tr0703_liquid_stroke')['setVisible'](_0x19b946);
|
||
this['skullfill'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a - 0x47, 'dep06_skullfill')['setVisible'](![]);
|
||
this['skull'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a - 0x47, 'dep06_skull')['setInteractive']()['setName']('skull')['setAlpha'](0.001);
|
||
this['pipka'] = this['add']['sprite'](_0x2aacf1 + 0x1d, _0x25d46a - 0x71, 'dep06_pipka');
|
||
this['add']['sprite'](_0x2aacf1 + 0x1d, _0x25d46a - 0x7c, 'tr0703_mask');
|
||
this['add']['sprite'](_0x2aacf1 + 0x6c, _0x25d46a - 0x34, 'tr0703_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button')['setAlpha'](0.01);
|
||
var _0x2acb19 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x1d2e94, _0x503842) {
|
||
if (_0x503842['name'] == 'skull' && !_0x19b946) {
|
||
if (_0xb43598['isInventoryActive']('inv_skull_filled')) {
|
||
_0x2acb19['removeItem']('inv_skull_filled');
|
||
_0xb43598['setEvent']('tr0703_skull_ready', !![]);
|
||
this['skull']['setAlpha'](0x1);
|
||
this['skullfill']['setVisible'](!![]);
|
||
}
|
||
} else if (_0x503842['name'] === 'button' && !_0x19b946) {
|
||
if (!_0xb43598['getEvent']('tr0703_skull_ready')) return;
|
||
this['skullAnimation']();
|
||
}
|
||
}, this);
|
||
},
|
||
'skullAnimation': function() {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'tr0703_unfill_skull');
|
||
this['tweens']['add']({
|
||
'targets': this['pipka'],
|
||
'y': '+=\x205',
|
||
'duration': _0xecb5a1 / 0x3
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['skull'], this['skullfill']],
|
||
'y': '-=10',
|
||
'duration': _0xecb5a1 / 0x2,
|
||
'delay': _0xecb5a1 / 0x2,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': this['skullfill'],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'alpha': 0x1,
|
||
'onUpdate': function(_0x29b312, _0x177d76) {
|
||
_0x39f1a0(this, this['skullfill'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -this['skullfill']['height'] / 0x2 + _0x29b312['progress'] * this['skullfill']['height'],
|
||
'topRightX': 0x64,
|
||
'topRightY': -this['skullfill']['height'] / 0x2 + _0x29b312['progress'] * this['skullfill']['height'],
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['skullfill']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['skullfill']['height'] / 0x2
|
||
});
|
||
} ['bind'](this),
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': this['pipka'],
|
||
'y': '-=5',
|
||
'duration': _0xecb5a1 / 0x3,
|
||
'completeDelay': _0xecb5a1 / 0x2,
|
||
'onComplete': function() {
|
||
this['skull']['setVisible'](![]);
|
||
this['skullfill']['setVisible'](![]);
|
||
this['liquid']['setVisible'](!![]);
|
||
this['liquidstroke']['setVisible'](!![]);
|
||
_0x5178ad();
|
||
_0xb43598['setEvent']('tr0703_skull_complete', !![]);
|
||
_0xb43598['setEvent']('tr0401_door_inv_key', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x5c5033 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp01', {
|
||
'left': 'tr0005',
|
||
'right': 'tmp02'
|
||
}, {
|
||
'tmp02': 'left',
|
||
'tr0005': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x2f0131 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp02', {
|
||
'left': 'tmp01',
|
||
'right': 'tmp03',
|
||
'bottom': 'tmp06'
|
||
}, {
|
||
'tmp06': 'top',
|
||
'tmp03': 'left',
|
||
'tmp01': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x4100f7 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp03', {
|
||
'left': 'tmp02'
|
||
}, {
|
||
'tmp02': 'right'
|
||
}, null, {
|
||
'tmp04': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['zone'](0x154, 0xa7, 0x93, 0x12c)['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['input']['on']('gameobjectdown', function(_0x555350, _0x5b210c) {
|
||
if (_0x5b210c['name'] == 'portal') {
|
||
_0x36f2e8(this, 'tmp04', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x332739 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp04', {
|
||
'top': 'tmp05'
|
||
}, {
|
||
'tmp05': 'bottom'
|
||
}, null, {
|
||
'tmp03': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (!_0xb43598['getEvent']('tmp04_key')) {
|
||
this['key'] = this['add']['sprite'](_0x2aacf1 + 0x32, _0x25d46a - 0x14, 'tmp04_key')['setName']('key')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
var _0x1cce7f = _0x130e52['bottom'];
|
||
var _0x46d6ec = this['scene']['get']('inventoryScene');
|
||
this['add']['zone'](_0x1cce7f['x'], _0x1cce7f['y'], _0x1cce7f['width'], _0x1cce7f['height'])['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['input']['on']('gameobjectdown', function(_0x5d794b, _0x2d32a6) {
|
||
if (_0x2d32a6['name'] == 'portal') {
|
||
_0x36f2e8(this, 'tmp03', !![]);
|
||
} else if (_0x2d32a6['name'] == 'key') {
|
||
if (!_0x46d6ec['addItem'](_0x2d32a6, 'inv_key2')) return;
|
||
_0xb43598['setEvent']('tmp04_key', !![]);
|
||
this['children']['remove'](_0x2d32a6);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x4a3564 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'lightMap': [![],
|
||
[!![],
|
||
[![],
|
||
[![], !![], 0x1, ![], !![]], !![], ![], ![]
|
||
], ![], ![], !![]
|
||
], ![],
|
||
[!![], !![],
|
||
[![], ![], !![],
|
||
[!![], ![], !![], !![], ![]], ![]
|
||
], ![], ![]
|
||
],
|
||
[!![], ![], ![], !![], ![]]
|
||
],
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp05', {
|
||
'bottom': 'tmp04'
|
||
}, {
|
||
'tmp04': 'top',
|
||
'tmp07': 'bottom'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
this['stairs'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x64, 'tmp05_stairs')['setScale'](0x1);
|
||
if (_0xb43598['getEvent']('tmp05_win') && _0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
return;
|
||
}
|
||
this['line1'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0xd4, 'tmp05_puzzle1');
|
||
this['line1_light2'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0xd4, 'tmp05_puzzle1_light2')['setVisible'](![]);
|
||
this['line1_light4'] = this['add']['sprite'](_0x2aacf1 - 0x29, _0x25d46a - 0xd5, 'tmp05_puzzle1_light3')['setVisible'](![]);
|
||
this['line1_light5'] = this['add']['sprite'](_0x2aacf1 + 0x8, _0x25d46a - 0xd5, 'tmp05_puzzle1_light4')['setVisible'](![]);
|
||
this['line2'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x8c, 'tmp05_puzzle2');
|
||
this['line2_light11'] = this['add']['sprite'](_0x2aacf1 - 0x28, _0x25d46a - 0xb2, 'tmp05_puzzle2_light1')['setVisible'](![]);
|
||
this['line2_light31'] = this['add']['sprite'](_0x2aacf1 - 0x29, _0x25d46a - 0xb3, 'tmp05_puzzle2_light1')['setVisible'](![]);
|
||
this['line2_light32'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a - 0xb2, 'tmp05_puzzle2_light1')['setVisible'](![]);
|
||
this['line2_light12'] = this['add']['sprite'](_0x2aacf1 + 0x14, _0x25d46a - 0x8c, 'tmp05_puzzle2_light2')['setVisible'](![]);
|
||
this['line2_light33'] = this['add']['sprite'](_0x2aacf1 - 0x28, _0x25d46a - 0x8c, 'tmp05_puzzle2_light2')['setVisible'](![]);
|
||
this['line2_light41'] = this['add']['sprite'](_0x2aacf1 + 0x50, _0x25d46a - 0x8c, 'tmp05_puzzle2_light2')['setVisible'](![]);
|
||
this['line2_light15'] = this['add']['sprite'](_0x2aacf1 - 0x35, _0x25d46a - 0x9b, 'tmp05_puzzle2_light3')['setVisible'](![]);
|
||
this['line2_light44'] = this['add']['sprite'](_0x2aacf1 + 0x7, _0x25d46a - 0x9a, 'tmp05_puzzle2_light3')['setVisible'](![]);
|
||
this['line3'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x42, 'tmp05_puzzle3');
|
||
this['line3_light12'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a - 0x42, 'tmp05_puzzle3_light2')['setVisible'](![]);
|
||
this['line3_light23'] = this['add']['sprite'](_0x2aacf1 - 0x46, _0x25d46a - 0x42, 'tmp05_puzzle3_light2')['setVisible'](![]);
|
||
this['line3_light13'] = this['add']['sprite'](_0x2aacf1 + 0x50, _0x25d46a - 0x44, 'tmp05_puzzle3_light3')['setVisible'](![]);
|
||
this['line3_light24'] = this['add']['sprite'](_0x2aacf1 + 0x14, _0x25d46a - 0x44, 'tmp05_puzzle3_light3')['setVisible'](![]);
|
||
this['line4'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0x6, 'tmp05_puzzle4');
|
||
this['line4_light12'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a + 0x6, 'tmp05_puzzle4_light1')['setVisible'](![]);
|
||
this['line4_light13'] = this['add']['sprite'](_0x2aacf1 - 0x28, _0x25d46a + 0x6, 'tmp05_puzzle4_light2')['setVisible'](![]);
|
||
this['line4_light31'] = this['add']['sprite'](_0x2aacf1 + 0x50, _0x25d46a + 0x6, 'tmp05_puzzle4_light2')['setVisible'](![]);
|
||
this['line4_light15'] = this['add']['sprite'](_0x2aacf1 - 0x33, _0x25d46a - 0x7, 'tmp05_puzzle4_light3')['setVisible'](![]);
|
||
this['line4_light33'] = this['add']['sprite'](_0x2aacf1 + 0x46, _0x25d46a - 0x7, 'tmp05_puzzle4_light3')['setVisible'](![]);
|
||
this['line4_light34'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a - 0x7, 'tmp05_puzzle4_light3')['setVisible'](![]);
|
||
this['lights'] = [this['line1_light2'], this['line1_light4'], this['line1_light5'], this['line2_light11'], this['line2_light12'], this['line2_light15'], this['line2_light31'], this['line2_light32'], this['line2_light33'], this['line2_light44'], this['line2_light41'], this['line3_light12'], this['line3_light13'], this['line3_light23'], this['line3_light24'], this['line4_light12'], this['line4_light13'], this['line4_light15'], this['line4_light33'], this['line4_light34'], this['line4_light31']];
|
||
if (!_0xb43598['getEvent']('tmp05_win')) {
|
||
this['mapState'] = [0x2, 0x2, 0x2, 0x2];
|
||
} else {
|
||
this['mapState'] = [0x1, 0x1, 0x1, 0x2];
|
||
this['line1']['x'] += 0x3c;
|
||
this['line2']['x'] += 0x3c;
|
||
this['line3']['x'] += 0x3c;
|
||
}
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['sprite'](_0x2aacf1 - 0xbc, _0x25d46a - 0x41, 'tmp05_ropes');
|
||
this['gear_lines'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0x5a, 'tmp05_gear_lines');
|
||
this['gear2'] = this['add']['sprite'](_0x2aacf1 - 0xb6, _0x25d46a - 0xe6, 'tmp05_gear2');
|
||
this['gear1'] = this['add']['sprite'](_0x2aacf1 - 0xa8, _0x25d46a + 0x55, 'tmp05_gear1');
|
||
this['gear3'] = this['add']['sprite'](_0x2aacf1 - 0x47, _0x25d46a + 0x74, 'tmp05_gear3');
|
||
this['light'] = this['add']['sprite'](_0x2aacf1 - 0x7, _0x25d46a + 0x2d, 'tmp05_light')['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('tr0102_ladder_up')) {
|
||
this['light']['setVisible'](!![]);
|
||
this['addTransition']('top', 'tmp07');
|
||
return;
|
||
} else if (_0xb43598['getEvent']('tmp05_win')) {
|
||
this['removeTransition']('top');
|
||
}
|
||
var _0x32b1e0 = this['add']['sprite'](_0x2aacf1 - 0x7a, _0x25d46a - 0xd2, 'tmp05_btn_l')['setData']('line', 0x1)['setData']('direction', 0x1);
|
||
var _0xd035b1 = this['add']['sprite'](_0x2aacf1 + 0x62, _0x25d46a - 0xd2, 'tmp05_btn_l')['setData']('line', 0x1)['setData']('direction', -0x1)['setAngle'](0xb4);
|
||
var _0x2d4456 = this['add']['sprite'](_0x2aacf1 - 0x7a, _0x25d46a - 0x8a, 'tmp05_btn_l')['setData']('line', 0x2)['setData']('direction', 0x1);
|
||
var _0x94e267 = this['add']['sprite'](_0x2aacf1 + 0x62, _0x25d46a - 0x8a, 'tmp05_btn_l')['setData']('line', 0x2)['setData']('direction', -0x1)['setAngle'](0xb4);
|
||
var _0x2796eb = this['add']['sprite'](_0x2aacf1 - 0x7a, _0x25d46a - 0x47, 'tmp05_btn_l')['setData']('line', 0x3)['setData']('direction', 0x1);
|
||
var _0x2e7184 = this['add']['sprite'](_0x2aacf1 + 0x62, _0x25d46a - 0x47, 'tmp05_btn_l')['setData']('line', 0x3)['setData']('direction', -0x1)['setAngle'](0xb4);
|
||
var _0x58bd8a = this['add']['sprite'](_0x2aacf1 - 0x7a, _0x25d46a - 0x5, 'tmp05_btn_l')['setData']('line', 0x4)['setData']('direction', 0x1);
|
||
var _0x4324ac = this['add']['sprite'](_0x2aacf1 + 0x62, _0x25d46a - 0x5, 'tmp05_btn_l')['setData']('line', 0x4)['setData']('direction', -0x1)['setAngle'](0xb4);
|
||
this['buttons'] = [_0x32b1e0, _0xd035b1, _0x2d4456, _0x94e267, _0x2796eb, _0x2e7184, _0x58bd8a, _0x4324ac];
|
||
if (!_0xb43598['getEvent']('tmp05_win')) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['buttons']['length']; _0x5a8aa6++) {
|
||
this['buttons'][_0x5a8aa6]['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
} else {
|
||
this['light']['setVisible'](!![]);
|
||
this['checkLight']();
|
||
}
|
||
this['mouseUpListener'] = function(_0x1bccac) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['buttons']['length']; _0x5a8aa6++) {
|
||
this['buttons'][_0x5a8aa6]['setTexture']('tmp05_btn_l');
|
||
}
|
||
} ['bind'](this);
|
||
_0xb43598['canvas']['addEventListener']('mouseup', this['mouseUpListener']);
|
||
this['mouseDownListener'] = function(_0x133ea3) {
|
||
var _0x24092c = {
|
||
'x': _0x133ea3['offsetX'],
|
||
'y': _0x133ea3['offsetY']
|
||
};
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['buttons']['length']; _0x5a8aa6++) {
|
||
if (_0x3e179a(this['buttons'][_0x5a8aa6], _0x24092c)) {
|
||
this['buttons'][_0x5a8aa6]['setTexture']('tmp05_btn_l_pressed');
|
||
}
|
||
}
|
||
} ['bind'](this);
|
||
_0xb43598['canvas']['addEventListener']('mousedown', this['mouseDownListener']);
|
||
this['input']['on']('gameobjectdown', function(_0x13d44f, _0x53aaf2) {
|
||
if (_0xb43598['getEvent']('tmp05_win')) {
|
||
return;
|
||
}
|
||
var _0x34c124 = _0x53aaf2['getData']('line');
|
||
var _0x166a44 = _0x53aaf2['getData']('direction');
|
||
if (!_0x34c124 || !_0x166a44 || !this['line' + _0x34c124]) {
|
||
return;
|
||
}
|
||
var _0xbaf2fb = this['line' + _0x34c124];
|
||
var _0x141f70 = this['mapState'][_0x34c124 - 0x1];
|
||
if (_0x141f70 + _0x166a44 < 0x0 || _0x141f70 + _0x166a44 >= 0x5) {
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'tmp05_puzzle_slide_tmp06');
|
||
this['mapState'][_0x34c124 - 0x1] = _0x141f70 + _0x166a44;
|
||
this['tweens']['add']({
|
||
'targets': _0xbaf2fb,
|
||
'x': _0xbaf2fb['x'] - 0x3c * _0x166a44,
|
||
'duration': _0xecb5a1 / 0x3,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
this['checkLight']();
|
||
} ['bind'](this)
|
||
});
|
||
_0x1967e9();
|
||
} ['bind'](this));
|
||
},
|
||
'checkLight': function() {
|
||
var _0x286267 = this['lightMap'];
|
||
var _0x38a2a6 = '';
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['lights']['length']; _0x5a8aa6++) {
|
||
this['lights'][_0x5a8aa6]['setVisible'](![]);
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['mapState']['length']; _0x5a8aa6++) {
|
||
if (typeof _0x286267 != 'object') {
|
||
break;
|
||
}
|
||
var _0x10d56f = 'line' + (_0x5a8aa6 + 0x1) + '_light' + _0x38a2a6 + (this['mapState'][_0x5a8aa6] + 0x1);
|
||
if (this[_0x10d56f] && _0x286267[this['mapState'][_0x5a8aa6]] != ![]) {
|
||
this[_0x10d56f]['setVisible'](!![]);
|
||
}
|
||
_0x286267 = _0x286267[this['mapState'][_0x5a8aa6]];
|
||
_0x38a2a6 = this['mapState'][_0x5a8aa6];
|
||
if (_0x286267 === 0x1) {
|
||
this['light']['setVisible'](!![]);
|
||
this['runMechanism']();
|
||
_0xb43598['setEvent']('tmp05_win', !![]);
|
||
}
|
||
}
|
||
},
|
||
'runMechanism': function() {
|
||
if (_0xb43598['getEvent']('tmp05_win')) {
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'tmp05_mechanism_tmp06');
|
||
var _0x237c5f = [this['gear1'], this['gear2'], this['gear3']];
|
||
this['tweens']['add']({
|
||
'targets': _0x237c5f,
|
||
'angle': 0x168,
|
||
'duration': _0xecb5a1 * 0x4
|
||
});
|
||
var _0x17f61 = this['gear_lines']['x'] - 0xa;
|
||
this['tweens']['add']({
|
||
'targets': this['gear_lines'],
|
||
'x': _0x17f61,
|
||
'yoyo': !![],
|
||
'repeat': 0x6,
|
||
'duration': _0xecb5a1 / 0x5
|
||
});
|
||
},
|
||
'before_transition': function() {
|
||
_0xb43598['canvas']['removeEventListener']('mouseup', this['mouseUpListener']);
|
||
_0xb43598['canvas']['removeEventListener']('mousedown', this['mouseDownListener']);
|
||
}
|
||
});
|
||
var _0x42a2f2 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp06', {
|
||
'top': 'tmp02'
|
||
}, {
|
||
'tmp02': 'bottom',
|
||
'cr02': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['signs'] = this['add']['sprite'](_0x2aacf1 + 0x19, _0x25d46a + 0x96, 'tmp06_signs_flashed')['setAlpha'](0x0);
|
||
this['topPyr'] = this['add']['sprite'](_0x2aacf1 + 0xb, _0x25d46a - 0x6e, 'tmp06_pyramide0')['setVisible'](![]);
|
||
this['b1'] = this['add']['sprite'](_0x2aacf1 + 0x16, _0x25d46a + 0x5f, 'tmp06_pyramide9');
|
||
this['b4'] = this['add']['sprite'](_0x2aacf1 + 0x69, _0x25d46a + 0x80, 'tmp06_pyramide7');
|
||
this['b2'] = this['add']['sprite'](_0x2aacf1 - 0x49, _0x25d46a + 0x75, 'tmp06_pyramide6');
|
||
this['b3'] = this['add']['sprite'](_0x2aacf1 + 0x8, _0x25d46a + 0x96, 'tmp06_pyramide5');
|
||
this['a1'] = this['add']['sprite'](_0x2aacf1 + 0x14, _0x25d46a + 0x29, 'tmp06_pyramide8');
|
||
this['a2'] = this['add']['sprite'](_0x2aacf1 - 0x28, _0x25d46a + 0x34, 'tmp06_pyramide4');
|
||
this['a4'] = this['add']['sprite'](_0x2aacf1 + 0x3f, _0x25d46a + 0x3a, 'tmp06_pyramide3');
|
||
this['a3'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a + 0x46, 'tmp06_pyramide2');
|
||
this['p1'] = this['add']['sprite'](_0x2aacf1 + 0xc, _0x25d46a - 0x9, 'tmp06_pyramide1')['setInteractive']()['setName']('pyramid_top');
|
||
this['add']['sprite'](_0x2aacf1, _0x25d46a, 'tmp06_mask');
|
||
if (_0xb43598['getEvent']('tmp06_pyramid_open')) {
|
||
this['openPyramid'](!![]);
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x53faa7, _0x2b9f2c) {
|
||
if (_0x2b9f2c['name'] === 'pyramid_top') {
|
||
if (_0xb43598['isInventoryActive']('inv_pyramide')) {
|
||
this['openPyramid']();
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'openPyramid': function(_0x3efd5d) {
|
||
if (_0x3efd5d) {
|
||
this['p1']['y'] -= 0x32;
|
||
this['signs']['setAlpha'](0x1);
|
||
this['a1']['x'] += 0x5d;
|
||
this['a1']['y'] -= 0x1b;
|
||
this['a2']['x'] -= 0x87;
|
||
this['a2']['y'] += 0x30;
|
||
this['a3']['x'] += 0x5d;
|
||
this['a3']['y'] += 0x49;
|
||
this['a4']['x'] += 0x75;
|
||
this['a4']['y'] += 0x3f;
|
||
this['b1']['x'] += 0x50;
|
||
this['b1']['y'] -= 0x19;
|
||
this['b2']['x'] -= 0x5a;
|
||
this['b2']['y'] += 0x1e;
|
||
this['b3']['x'] += 0x3f;
|
||
this['b3']['y'] += 0x3c;
|
||
this['b4']['x'] += 0x57;
|
||
this['b4']['y'] += 0x32;
|
||
this['p1']['disableInteractive']();
|
||
this['openPyramidPortal']();
|
||
this['topPyr']['setVisible'](!![]);
|
||
this['topPyr']['y'] -= 0x32;
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'tmp06_insert_pyramide');
|
||
var _0x141547 = this['scene']['get']('inventoryScene');
|
||
_0x141547['removeItem']('inv_pyramide');
|
||
_0xb43598['setEvent']('tmp06_pyramid_open', !![]);
|
||
this['p1']['disableInteractive']();
|
||
this['topPyr']['setVisible'](!![]);
|
||
this['topPyr']['x'] += 0x14;
|
||
this['tweens']['add']({
|
||
'targets': this['topPyr'],
|
||
'duration': _0xecb5a1 * 0x3,
|
||
'ease': 'Elastic.easeOut',
|
||
'x': '-=20'
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['signs'],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'delay': _0xecb5a1 * 2.5,
|
||
'alpha': 0x1,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': [this['p1'], this['topPyr']],
|
||
'y': '-=50',
|
||
'completeDelay': _0xecb5a1,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': this['a1'],
|
||
'x': '+=13',
|
||
'y': '-=2',
|
||
'duration': _0xecb5a1 * 0x2
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['a2'],
|
||
'x': '-=45',
|
||
'y': '+=18',
|
||
'duration': _0xecb5a1 * 0x2
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['a3'], this['a4']],
|
||
'x': '+=30',
|
||
'y': '+=13',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'completeDelay': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': [this['a1'], this['b1']],
|
||
'x': '+=80',
|
||
'y': '-=25',
|
||
'duration': _0xecb5a1 * 0x6
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['a2'], this['b2']],
|
||
'x': '-=90',
|
||
'y': '+=30',
|
||
'duration': _0xecb5a1 * 0x6
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['a3'], this['b3']],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'x': '-=12',
|
||
'y': '+=10'
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': [this['a4'], this['b4']],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'x': '+=12',
|
||
'y': '-=0',
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': [this['a4'], this['a3'], this['b3'], this['b4']],
|
||
'delay': _0xecb5a1 / 0x2,
|
||
'x': '+=75',
|
||
'y': '+=50',
|
||
'duration': _0xecb5a1 * 0x4,
|
||
'onComplete': function() {
|
||
this['openPyramidPortal']();
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'openPyramidPortal': function() {
|
||
this['addTransition']('bottom', 'cr02', !![]);
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x64,
|
||
'y': _0x25d46a + 0x64,
|
||
'width': 0xc8,
|
||
'height': 0x64,
|
||
'name': 'bottom'
|
||
});
|
||
}
|
||
});
|
||
var _0x544d05 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'tmp07', {
|
||
'left': 'tr0013',
|
||
'bottom': 'tmp05'
|
||
}, {
|
||
'tmp05': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 + 0xfa, _0x25d46a + 0x64);
|
||
if (_0xb43598['getEvent']('tmp07_key')) {
|
||
return;
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 + 0xdc, _0x25d46a + 0xfa, 'tmp07_key')['setScale'](0.9)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('key');
|
||
this['input']['on']('gameobjectdown', function(_0x63a090, _0x2b382f) {
|
||
if (_0x2b382f['name'] == 'key') {
|
||
var _0x3aeec2 = this['scene']['get']('inventoryScene');
|
||
_0x3aeec2['addItem'](_0x2b382f, 'inv_key1');
|
||
_0xb43598['setEvent']('tmp07_key', !![]);
|
||
this['children']['remove'](_0x2b382f);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x1f94f3 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'pr02', {}, {}, null, {
|
||
'pr04': 'portal',
|
||
'tr0101': 'portal_back'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 - 0x105, _0x25d46a + 0x17, {
|
||
'name': 'pr02_door',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': {
|
||
'x': 0.35,
|
||
'y': 1.5
|
||
},
|
||
'x': _0x2aacf1 - 0x138,
|
||
'y': _0x25d46a + 0x32
|
||
}, 'tr0101');
|
||
_0x39f1a0(this, this['portal'], {
|
||
'topLeftX': -0x104,
|
||
'topLeftY': -0xd2,
|
||
'topRightX': 0x104,
|
||
'topRightY': -0x104,
|
||
'bottomLeftX': -0xc8,
|
||
'bottomLeftY': 0xc8,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': 0x64
|
||
});
|
||
this['add']['zone'](_0x2aacf1 - 0x32, _0x25d46a - 0xdc, 0xb4, 0x15e)['setName']('portal_pr04')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['createDevice'](_0x2aacf1 + 0xd2, _0x25d46a - 0x5e);
|
||
this['input']['on']('gameobjectdown', function(_0x59fd85, _0x12928e) {
|
||
if (_0x12928e['name'] == 'portal_pr04') {
|
||
_0x36f2e8(this, 'pr04', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x1465cb = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'pr03', {}, {}, null, {
|
||
'intr0101': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x1ff6e2 = this['add']['sprite'](_0x2aacf1 + 0xa0, _0x25d46a - 0x50, 'pr03_lock_small')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lock');
|
||
this['createDoor'](_0x2aacf1 + 0x122, _0x25d46a - 0x12, {
|
||
'name': 'pr03_door',
|
||
'scale': 0x1
|
||
}, {
|
||
'scale': 0x1
|
||
}, 'intr0101');
|
||
_0x39f1a0(this, this['portal'], {
|
||
'topLeftX': -0x55,
|
||
'topLeftY': -0xde,
|
||
'topRightX': 0x55,
|
||
'topRightY': -0xde,
|
||
'bottomLeftX': -0x55,
|
||
'bottomLeftY': 0x98,
|
||
'bottomRightX': 0x55,
|
||
'bottomRightY': 0xde
|
||
});
|
||
this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a - 0x99, 'pr03_glass_bg');
|
||
this['glassTile'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a - 0x99, 'pr03_glass_tile');
|
||
this['add']['sprite'](_0x2aacf1 - 0x14, _0x25d46a - 0x8c, 'pr03_glass');
|
||
this['createShadowLayer']();
|
||
var _0x34c56c = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'pr03_lock_bg');
|
||
this['line1'] = this['add']['sprite'](_0x2aacf1, _0x25d46a - 0x53, 'pr03_lock_symb1')['setName']('line')['setData']('number', 0x1)['setData']('value', 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['line2'] = this['add']['sprite'](_0x2aacf1, _0x25d46a - 0x22, 'pr03_lock_symb1')['setName']('line')['setData']('number', 0x2)['setData']('value', 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['line3'] = this['add']['sprite'](_0x2aacf1, _0x25d46a + 0xf, 'pr03_lock_symb1')['setName']('line')['setData']('number', 0x3)['setData']('value', 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['line4'] = this['add']['sprite'](_0x2aacf1, _0x25d46a + 0x41, 'pr03_lock_symb1')['setName']('line')['setData']('number', 0x4)['setData']('value', 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
var _0xb4e20e = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'pr03_lock_big_frame');
|
||
var _0x146209 = [_0x34c56c, this['line1'], this['line2'], this['line3'], this['line4'], _0xb4e20e];
|
||
this['lockContainer'] = this['add']['container'](0x0, 0x0, _0x146209)['setData']('startX', _0x4a8abc * 0.7)['setData']('deltaX', _0x4a8abc * 0.8)['setVisible'](![]);
|
||
if (_0xb43598['getEvent']('pr03_lock_complete')) {
|
||
this['openSign'](!![]);
|
||
_0x1ff6e2['disableInteractive']();
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x51ccb5, _0x140daf) {
|
||
if (!_0xb43598['getEvent']('pr03_lock_complete') && _0x140daf['name'] == 'lock') {
|
||
this['showShadowLayer'](this['lockContainer']);
|
||
} else if (_0x140daf['name'] === 'line') {
|
||
_0x5619f8(this, 'pr03_line_press_pr01');
|
||
this['moveLine'](_0x140daf['getData']('number'));
|
||
}
|
||
}, this);
|
||
},
|
||
'moveLine': function(_0x3e8b73) {
|
||
var _0x226685 = this['line' + _0x3e8b73];
|
||
var _0x4813fa = _0x226685['getData']('value') + 0x1;
|
||
if (_0x4813fa == 0x5) {
|
||
_0x4813fa = 0x1;
|
||
}
|
||
_0x226685['setTexture']('pr03_lock_symb' + _0x4813fa);
|
||
_0x226685['setData']('value', _0x4813fa);
|
||
if (this['isValidLock']()) {
|
||
_0x5619f8(this, 'pr03_open_lock_pr02');
|
||
this['openSign']();
|
||
}
|
||
},
|
||
'isValidLock': function() {
|
||
var _0x5a53a5 = [0x0, 0x1, 0x3, 0x4, 0x2];
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 <= 0x4; _0x5a8aa6++) {
|
||
if (this['line' + _0x5a8aa6]['getData']('value') != _0x5a53a5[_0x5a8aa6]) return ![];
|
||
}
|
||
return !![];
|
||
},
|
||
'openSign': function(_0x39136d) {
|
||
if (_0x39136d) {
|
||
this['glassTile']['x'] += 0x46;
|
||
this['glassTile']['y'] -= 0x7;
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
_0xb43598['setEvent']('pr03_lock_complete', !![]);
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
this['hideShadowLayer']();
|
||
this['tweens']['add']({
|
||
'targets': this['glassTile'],
|
||
'x': '+=70',
|
||
'y': '-=7',
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'duration': _0xecb5a1 * 0xa,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
}
|
||
});
|
||
var _0x405da0 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'pr04', {}, {}, [{
|
||
'default': 'bottom',
|
||
'name': 'portal'
|
||
}], {
|
||
'pr02': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x3eefcf = this['add']['sprite'](_0x2aacf1 - 0x96, _0x25d46a - 0x8f, 'pr04_device_on');
|
||
if (!_0xb43598['getEvent']('pr04_cylinder')) {
|
||
this['add']['sprite'](_0x2aacf1 - 0xbf, _0x25d46a - 0xbe, 'pr04_cylinder')['setName']('cylinder')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
var _0x38c84d = _0xb43598['getEvent']('pr03_lock_complete');
|
||
var _0x1cf725 = _0xb43598['getEvent']('pr03_sign');
|
||
if (!_0x38c84d) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x96, _0x25d46a - 0x8b, 'pr04_tile_closed');
|
||
} else {
|
||
this['add']['sprite'](_0x2aacf1 + 0x96, _0x25d46a - 0x95, 'pr04_tile_opened');
|
||
if (!_0x1cf725) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x87, _0x25d46a - 0xa1, 'pr04_sign_off')['setName']('sign')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
} else {
|
||
this['add']['sprite'](_0x2aacf1 + 0x87, _0x25d46a - 0xa1, 'pr04_sign_on');
|
||
}
|
||
}
|
||
var _0x2bfa8b = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x4db0bb, _0x469cfc) {
|
||
if (!_0xb43598['getEvent']('pr04_cylinder') && _0x469cfc['name'] == 'cylinder') {
|
||
_0x2bfa8b['addItem'](_0x469cfc, 'inv_cylinder');
|
||
_0xb43598['setEvent']('pr04_cylinder', !![]);
|
||
this['children']['remove'](_0x469cfc);
|
||
} else if (_0x469cfc['name'] === 'sign') {
|
||
_0x469cfc['setTexture']('pr04_sign_on')['disableInteractive']();
|
||
_0x5619f8(this, 'secret');
|
||
_0xb43598['setEvent']('pr03_sign', !![]);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x2071a0 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'flp01', {
|
||
'right': 'flp02',
|
||
'left_half': 'el'
|
||
}, {
|
||
'el': 'right',
|
||
'flp02': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {}
|
||
});
|
||
var _0x3795b4 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'flp02', {
|
||
'right': 'flp03',
|
||
'left': 'flp01'
|
||
}, {
|
||
'flp01': 'right',
|
||
'flp03': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['ray'] = this['add']['sprite'](_0x2aacf1, 0x0, 'sp02_laser_ray')['setOrigin'](0.5, 0x0)['setVisible'](![]);
|
||
this['ray2'] = this['add']['sprite'](_0x2aacf1, this['ray']['height'], 'sp02_laser_ray')['setOrigin'](0.5, 0x0)['setVisible'](![]);
|
||
this['add']['sprite'](_0x2aacf1 + 0x6, _0x25d46a + 0x2c, 'flp02_laser_device');
|
||
var _0x497d20 = this['add']['sprite'](_0x2aacf1 + 0x6, _0x25d46a - 0x78, 'flp02_lens')['setAlpha'](0.01)['setInteractive']()['setName']('lense');
|
||
var _0x36068a = this['add']['sprite'](_0x2aacf1 + 0x48, _0x25d46a - 0x14, 'flp02_battery')['setAlpha'](0.01)['setInteractive']()['setName']('battery');
|
||
if (_0xb43598['getEvent']('flp02_lense_ready')) {
|
||
_0x497d20['setAlpha'](0x1)['disableInteractive']();
|
||
}
|
||
if (_0xb43598['getEvent']('flp02_battery_ready')) {
|
||
_0x36068a['setAlpha'](0x1)['disableInteractive']();
|
||
}
|
||
if (_0xb43598['getEvent']('sp02_laser_shot_complete')) {
|
||
if (!_0xb43598['getEvent']('sp02_laser_shot_complete_animation')) {
|
||
_0xb43598['setEvent']('sp02_laser_shot_complete_animation', !![]);
|
||
}
|
||
this['playSmallRay']();
|
||
this['add']['sprite'](_0x2aacf1 + 0x97, _0x25d46a + 0x64, 'flp02_light');
|
||
}
|
||
if (_0xb43598['getEvent']('flp02_laser_shot_complete')) {
|
||
this['playBigRay']();
|
||
}
|
||
var _0x47b012 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x22c7e5, _0x145c11) {
|
||
if (!_0xb43598['getEvent']('sp02_laser_shot_complete')) return;
|
||
if (_0x145c11['name'] == 'lense' && _0xb43598['isInventoryActive']('inv_lense')) {
|
||
_0x47b012['removeItem']('inv_lense');
|
||
_0xb43598['setEvent']('flp02_lense_ready', !![]);
|
||
_0x145c11['setAlpha'](0x1);
|
||
} else if (_0x145c11['name'] == 'battery' && _0xb43598['isInventoryActive']('inv_battery')) {
|
||
_0x47b012['removeItem']('inv_battery');
|
||
_0xb43598['setEvent']('flp02_battery_ready', !![]);
|
||
_0x145c11['setAlpha'](0x1);
|
||
}
|
||
}, this);
|
||
},
|
||
'playSmallRay': function() {
|
||
_0x5619f8(this, 'sp02_laser_rays', !![]);
|
||
this['ray']['setVisible'](!![]);
|
||
this['ray2']['setVisible'](!![]);
|
||
var _0x5b034c = {
|
||
'x': this['ray']['x'],
|
||
'y': _0x3eaf37,
|
||
'topLeftX': -0x32,
|
||
'topLeftY': -0x12c,
|
||
'topRightX': 0x32,
|
||
'topRightY': -0x12c,
|
||
'bottomLeftX': -0x32,
|
||
'bottomLeftY': 0x0,
|
||
'bottomRightX': 0x32,
|
||
'bottomRightY': 0x0
|
||
};
|
||
_0x39f1a0(this, this['ray'], _0x5b034c);
|
||
_0x39f1a0(this, this['ray2'], _0x5b034c);
|
||
this['tweens']['add']({
|
||
'targets': [this['ray'], this['ray2']],
|
||
'y': '-=' + this['ray']['height'],
|
||
'repeat': -0x1,
|
||
'duration': _0xecb5a1
|
||
});
|
||
},
|
||
'playBigRay': function() {
|
||
this['ray']['mask'] = null;
|
||
this['ray2']['mask'] = null;
|
||
},
|
||
'before_transition': function() {
|
||
_0x11c867('sp02_laser_rays');
|
||
}
|
||
});
|
||
var _0x298e75 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'flp03', {
|
||
'right_half': 'flp04',
|
||
'left': 'flp02'
|
||
}, {
|
||
'flp02': 'right',
|
||
'flp04': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (_0xb43598['getEvent']('sp02_laser_shot_complete')) {
|
||
this['add']['sprite'](0x8, _0x25d46a + 0x7c, 'flp03_light')['setOrigin'](0x0, 0.5);
|
||
}
|
||
this['createDevice'](_0x2aacf1 + 0xa, _0x25d46a - 0x7c);
|
||
}
|
||
});
|
||
var _0x27b738 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'flp04', {
|
||
'left_30': 'flp03'
|
||
}, {
|
||
'flp03': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x11e6a1;
|
||
this['createAnimation']('flp04_lever');
|
||
if (!_0xb43598['getEvent']('flp04_key')) {
|
||
_0x11e6a1 = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a + 0x23, 'flp04_key')['setName']('key');
|
||
}
|
||
var _0x4cd76c = this['add']['sprite'](_0x2aacf1 - 0x3c, _0x25d46a - 0x23, 'flp04_lever_0');
|
||
if (!_0xb43598['getEvent']('sp02_laser_shot_complete')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0xeb, _0x25d46a + 0x8, 'flp04_shelf_door_locked');
|
||
return;
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 - 0x41, _0x25d46a - 0xa7, 'flp04_screens');
|
||
this['add']['sprite'](_0x2aacf1 - 0x55, _0x25d46a - 0xd5, 'flp04_screen_scheme');
|
||
this['add']['sprite'](_0x2aacf1 - 0x16, _0x25d46a - 0xe3, 'flp04_screen_bolt');
|
||
this['add']['sprite'](_0x2aacf1 - 0x41, _0x25d46a - 0x84, 'flp04_creen_device');
|
||
var _0x3ad685 = this['add']['sprite'](_0x2aacf1 - 0x40, _0x25d46a - 0xa7, 'flp04_screen_lens');
|
||
if (_0xb43598['getEvent']('flp02_lense_ready')) {
|
||
_0x3ad685['setTexture']('flp04_screen_lens_on');
|
||
}
|
||
var _0x6dbaa4 = this['add']['sprite'](_0x2aacf1 - 0x24, _0x25d46a - 0x82, 'flp04_screen_battery');
|
||
if (_0xb43598['getEvent']('flp02_battery_ready')) {
|
||
_0x6dbaa4['setTexture']('flp04_screen_battery_on');
|
||
}
|
||
var _0x3c8e50 = this['add']['sprite'](_0x2aacf1 + 0xc8, _0x25d46a + 0x11, 'flp04_shelf_door_8');
|
||
if (!_0xb43598['getEvent']('flp02_laser_shot_complete')) {
|
||
_0x4cd76c['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever');
|
||
_0x4cd76c['on']('animationcomplete', function() {
|
||
_0xb43598['setEvent']('flp02_laser_shot_complete', !![]);
|
||
}, this);
|
||
} else {
|
||
_0x4cd76c['setTexture']('flp04_lever_13');
|
||
}
|
||
if (!_0xb43598['getEvent']('flp04_shelf_open')) {
|
||
this['createAnimation']('flp04_shelf_door');
|
||
_0x3c8e50['setName']('shelf_door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setTexture']('flp04_shelf_door_0');
|
||
_0x3c8e50['on']('animationcomplete', function() {
|
||
_0x3c8e50['disableInteractive']();
|
||
if (_0x11e6a1) {
|
||
_0x11e6a1['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
_0x5178ad();
|
||
_0xb43598['setEvent']('flp04_shelf_open', !![]);
|
||
}, this);
|
||
}
|
||
var _0x514ade = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x35befd, _0x27d5a3) {
|
||
if (_0x27d5a3['name'] === 'shelf_door') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'flp04_open_door_flp04');
|
||
_0x3c8e50['play']('flp04_shelf_door');
|
||
}
|
||
if (_0x27d5a3['name'] === 'key') {
|
||
_0x514ade['addItem'](_0x27d5a3, 'inv_key5');
|
||
_0xb43598['setEvent']('flp04_key', !![]);
|
||
this['children']['remove'](_0x27d5a3);
|
||
}
|
||
if (_0x27d5a3['name'] === 'lever') {
|
||
if (_0xb43598['getEvent']('flp02_battery_ready') && _0xb43598['getEvent']('flp02_lense_ready')) {
|
||
_0x5619f8(this, 'flp04_lever_on_flp04');
|
||
_0x4cd76c['play']('flp04_lever');
|
||
}
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x402532 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'flp05', {}, {}, null, {
|
||
'tr0201b': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
this['portal'] = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a - 0x12, 'portal_1')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('portal')['setScale'](0.9, 0x1);
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 + 0xe6, _0x25d46a - 0x12, 'flp05_door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
this['add']['sprite'](_0x4a8abc + 0x1, _0x25d46a - 0x14, 'flp05_mask')['setOrigin'](0x1, 0.5);
|
||
_0x39f1a0(this, this['portal'], {
|
||
'topLeftX': -0x4b,
|
||
'topLeftY': -0xbe,
|
||
'topRightX': 0x4b,
|
||
'topRightY': -0xb6,
|
||
'bottomLeftX': -0x4b,
|
||
'bottomLeftY': 0xaa,
|
||
'bottomRightX': 0x4f,
|
||
'bottomRightY': 0xc0
|
||
});
|
||
if (!_0xb43598['getEvent']('flp05_lens')) {
|
||
this['lense'] = this['add']['sprite'](_0x2aacf1 - 0x28, _0x25d46a + 0x3a, 'flp05_lens')['setName']('lense');
|
||
}
|
||
this['createShadowLayer']();
|
||
this['safe_door'] = this['add']['sprite'](_0x2aacf1 - 0x2d, _0x25d46a + 0x28, 'flp05_box_closed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('safe_door');
|
||
if (_0xb43598['getEvent']('flp05_complete')) {
|
||
this['openSafeDoor']();
|
||
} else {
|
||
this['safe'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'flp05_safe_bg')['setInteractive']();
|
||
this['arrow1'] = this['add']['sprite'](_0x2aacf1 - 0x6c, _0x25d46a - 0x5a, 'flp05_arrow')['setName']('arrow')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x1);
|
||
this['line1'] = this['add']['sprite'](_0x2aacf1 - 0x10, _0x25d46a - 0x5c, 'flp05_safe_line4')['setData']('state', 0x4)['setData']('direction', -0x1)['setOrigin'](0x0, 0.5);
|
||
this['arrow2'] = this['add']['sprite'](_0x2aacf1 - 0x6c, _0x25d46a - 0x26, 'flp05_arrow')['setName']('arrow')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x2);
|
||
this['line2'] = this['add']['sprite'](_0x2aacf1 - 0x10, _0x25d46a - 0x26, 'flp05_safe_line4')['setData']('state', 0x4)['setData']('direction', -0x1)['setOrigin'](0x0, 0.5);
|
||
this['arrow3'] = this['add']['sprite'](_0x2aacf1 - 0x6c, _0x25d46a + 0x12, 'flp05_arrow')['setName']('arrow')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x3);
|
||
this['line3'] = this['add']['sprite'](_0x2aacf1 - 0x10, _0x25d46a + 0xe, 'flp05_safe_line4')['setData']('state', 0x4)['setData']('direction', -0x1)['setOrigin'](0x0, 0.5);
|
||
this['arrow4'] = this['add']['sprite'](_0x2aacf1 - 0x6c, _0x25d46a + 0x46, 'flp05_arrow')['setName']('arrow')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x4);
|
||
this['line4'] = this['add']['sprite'](_0x2aacf1 - 0x10, _0x25d46a + 0x43, 'flp05_safe_line4')['setData']('state', 0x4)['setData']('direction', -0x1)['setOrigin'](0x0, 0.5);
|
||
var _0x8561ab = [this['safe'], this['arrow1'], this['line1'], this['arrow2'], this['line2'], this['arrow3'], this['line3'], this['arrow4'], this['line4']];
|
||
this['safeContainer'] = this['add']['container'](_0x4a8abc, 0x0, _0x8561ab)['setData']('startX', _0x4a8abc)['setData']('deltaX', _0x4a8abc)['setVisible'](!![]);
|
||
}
|
||
var _0x5ea1c9 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x50db3c, _0x255513) {
|
||
if (!_0xb43598['getEvent']('flp05_complete') && _0x255513['name'] == 'safe_door') {
|
||
this['showShadowLayer'](this['safeContainer']);
|
||
_0x255513['disableInteractive']();
|
||
} else if (_0x255513['name'] == 'door') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['portal']['play']('portal');
|
||
this['tweens']['add']({
|
||
'targets': _0x255513,
|
||
'x': '+=180',
|
||
'y': '+=17',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
} else if (_0x255513['name'] == 'portal') {
|
||
_0x36f2e8(this, 'tr0201b', 'transition_portal');
|
||
} else if (_0x255513['name'] == 'lense') {
|
||
_0x5ea1c9['addItem'](_0x255513, 'inv_lense');
|
||
_0xb43598['setEvent']('flp05_lens', !![]);
|
||
this['children']['remove'](_0x255513);
|
||
} else if (_0x255513['name'] == 'arrow') {
|
||
_0x5619f8(this, 'flp05_press_lock_flp05');
|
||
switch (_0x255513['getData']('num')) {
|
||
case 0x1:
|
||
_0x1967e9();
|
||
this['moveLine'](0x1);
|
||
this['moveLine'](0x3);
|
||
break;
|
||
case 0x2:
|
||
_0x1967e9();
|
||
this['moveLine'](0x1);
|
||
this['moveLine'](0x2);
|
||
this['moveLine'](0x4);
|
||
break;
|
||
case 0x3:
|
||
_0x1967e9();
|
||
this['moveLine'](0x3);
|
||
this['moveLine'](0x4);
|
||
break;
|
||
case 0x4:
|
||
_0x1967e9();
|
||
this['moveLine'](0x2);
|
||
this['moveLine'](0x4);
|
||
break;
|
||
}
|
||
var _0x2df21a = !![];
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 <= 0x4; _0x5a8aa6++) {
|
||
if (this['line' + _0x5a8aa6]['getData']('state') !== 0x0) {
|
||
_0x2df21a = ![];
|
||
break;
|
||
}
|
||
}
|
||
if (_0x2df21a) {
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 <= 0x4; _0x5a8aa6++) {
|
||
this['arrow' + _0x5a8aa6]['disableInteractive']();
|
||
}
|
||
_0xb43598['setEvent']('flp05_complete', !![]);
|
||
_0x5619f8(this, 'flp05_open_lock_flp05');
|
||
this['openSafeDoor']();
|
||
}
|
||
this['input']['stopPropagation']();
|
||
}
|
||
}, this);
|
||
},
|
||
'moveLine': function(_0x1c1e92) {
|
||
var _0x19166f = this['line' + _0x1c1e92];
|
||
if (typeof _0x19166f === 'undefined') {
|
||
return;
|
||
}
|
||
var _0x2593b2 = _0x19166f['getData']('state');
|
||
var _0x3005e9 = _0x19166f['getData']('direction');
|
||
_0x2593b2 += _0x3005e9;
|
||
if (_0x2593b2 == 0x0) {
|
||
_0x3005e9 = 0x1;
|
||
} else if (_0x2593b2 == 0x4) {
|
||
_0x3005e9 = -0x1;
|
||
}
|
||
var _0x1bbf24 = this['arrow' + _0x1c1e92];
|
||
_0x1bbf24['setScale'](_0x3005e9, 0x1);
|
||
_0x19166f['setData']('state', _0x2593b2)['setData']('direction', _0x3005e9)['setTexture']('flp05_safe_line' + _0x2593b2);
|
||
this['tweens']['add']({
|
||
'targets': _0x1bbf24,
|
||
'alpha': 0x1,
|
||
'duration': _0xecb5a1 / 0x4,
|
||
'onStart': function() {
|
||
_0x1bbf24['setVisible'](![]);
|
||
},
|
||
'onComplete': function() {
|
||
_0x1bbf24['setVisible'](!![]);
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
},
|
||
'openSafeDoor': function() {
|
||
this['hideShadowLayer']();
|
||
this['safe_door']['setTexture']('flp05_box_opened')['setPosition'](_0x2aacf1 - 0x8c, _0x25d46a + 0x32)['disableInteractive']();
|
||
if (this['lense']) {
|
||
this['lense']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
},
|
||
'closeShadowLayer': function() {
|
||
this['safe_door']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
});
|
||
var _0x346360;
|
||
var _0x127886 = {
|
||
'createWall': function(_0x420a9f) {
|
||
_0x420a9f['tiles'] = [];
|
||
_0x420a9f['doorTiles'] = [];
|
||
var _0x5db8c2 = _0x420a9f['add']['sprite'](_0x2aacf1, _0x25d46a, 'htf01_tile')['setVisible'](![]);
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x7; _0x5a8aa6++) {
|
||
_0x420a9f['tiles']['push']([]);
|
||
for (var _0x26d7b9 = 0x7; _0x26d7b9 >= -0x3; _0x26d7b9--) {
|
||
if (_0x5a8aa6 + _0x26d7b9 < 0x0) {
|
||
continue;
|
||
}
|
||
var _0x4b21bf = _0x420a9f['add']['sprite'](_0x2aacf1 + 0x70 + _0x5db8c2['width'] * _0x5a8aa6 * 0.88, _0x5db8c2['height'] * _0x26d7b9 * 0.73 + 0xf * _0x5a8aa6, 'htf01_tile')['setName']('block_' + _0x5a8aa6 + '_' + _0x26d7b9)['setInteractive']();
|
||
_0x420a9f['tiles'][_0x5a8aa6]['push'](_0x4b21bf);
|
||
if (_0x5a8aa6 >= 0x1 && _0x5a8aa6 <= 0x4 && _0x26d7b9 >= 0x2 && _0x26d7b9 <= 0x7) {
|
||
_0x420a9f['doorTiles']['push'](_0x4b21bf);
|
||
}
|
||
}
|
||
}
|
||
_0x420a9f['zonesToTop']();
|
||
},
|
||
'extra_create': function(_0x333eb2) {
|
||
_0x127886['createWall'](_0x333eb2);
|
||
if (_0xb43598['getEvent']('htf01_hidden_door')) {
|
||
_0xc2f164(_0x333eb2['doorTiles']);
|
||
_0x333eb2['addTransition']('right_portal', 'htf02');
|
||
_0x333eb2['addZone']({
|
||
'x': _0x2aacf1 + 0x82,
|
||
'y': _0x25d46a - 0xc8,
|
||
'width': 0xc8,
|
||
'height': 0x15e,
|
||
'name': 'right_portal'
|
||
});
|
||
return;
|
||
}
|
||
var _0x283684 = _0x333eb2['add']['sprite'](_0x2aacf1 + 0xd2, _0x25d46a + 0x28, 'htf01_sign1')['setVisible'](![]);
|
||
var _0x1af99b = _0x333eb2['add']['sprite'](_0x2aacf1 + 0x9b, _0x25d46a - 0x19, 'htf01_sign4')['setVisible'](![]);
|
||
var _0x45ff7d = _0x333eb2['add']['sprite'](_0x2aacf1 + 0x104, _0x25d46a - 0x32, 'htf01_sign2')['setVisible'](![]);
|
||
var _0x48d33c = _0x333eb2['add']['sprite'](_0x2aacf1 + 0x136, _0x25d46a - 0x8c, 'htf01_sign3')['setVisible'](![]);
|
||
var _0x430c51 = _0x333eb2['add']['sprite'](_0x2aacf1 + 0x91, _0x25d46a + 0x81, 'htf01_lamp')['setVisible'](![]);
|
||
var _0x570308 = ['block_2_6', 'block_1_5', 'block_3_4', 'block_4_2'];
|
||
var _0x24b7b0 = [];
|
||
var _0x52a81f = _0x333eb2['scene']['get']('inventoryScene');
|
||
_0x333eb2['input']['on']('gameobjectdown', function(_0x180826, _0x26bc10) {
|
||
if (_0x26bc10['name']['indexOf']('block_') !== 0x0) return;
|
||
if (_0xb43598['getEvent']('htf01_hidden_door')) return;
|
||
_0x1967e9();
|
||
if (_0xb43598['isInventoryActive']('inv_uv')) {
|
||
_0x430c51['setVisible'](!![]);
|
||
_0x52a81f['resetActiveItem']();
|
||
var _0x2b0efa = _0x430c51['x'],
|
||
_0x13dbbc = _0x430c51['y'];
|
||
_0x333eb2['tweens']['add']({
|
||
'targets': _0x430c51,
|
||
'duration': _0xecb5a1 * 0x6,
|
||
'x': _0x2b0efa + 0x96,
|
||
'y': _0x13dbbc - 0x12c,
|
||
'ease': 'Cubic.easeIn',
|
||
'onComplete': function() {
|
||
_0x430c51['x'] = _0x2b0efa;
|
||
_0x430c51['y'] = _0x13dbbc;
|
||
_0x430c51['setVisible'](![]);
|
||
}
|
||
});
|
||
_0x333eb2['tweens']['add']({
|
||
'targets': [_0x283684, _0x1af99b],
|
||
'duration': _0xecb5a1 * 0x5,
|
||
'alpha': 0x1,
|
||
'onStart': function() {
|
||
_0x2e4825['setTimeout'](function() {
|
||
_0x283684['setVisible'](!![]);
|
||
_0x1af99b['setVisible'](!![]);
|
||
}, _0xecb5a1 * 0x2);
|
||
},
|
||
'onComplete': function() {
|
||
_0x283684['setVisible'](![]);
|
||
_0x1af99b['setVisible'](![]);
|
||
}
|
||
});
|
||
_0x333eb2['tweens']['add']({
|
||
'targets': _0x45ff7d,
|
||
'duration': _0xecb5a1 * 0x6,
|
||
'alpha': 0x1,
|
||
'onStart': function() {
|
||
_0x2e4825['setTimeout'](function() {
|
||
_0x45ff7d['setVisible'](!![]);
|
||
}, _0xecb5a1 * 0x3);
|
||
},
|
||
'onComplete': function() {
|
||
_0x45ff7d['setVisible'](![]);
|
||
}
|
||
});
|
||
_0x333eb2['tweens']['add']({
|
||
'targets': _0x48d33c,
|
||
'duration': _0xecb5a1 * 0x6,
|
||
'alpha': 0x1,
|
||
'onStart': function() {
|
||
_0x2e4825['setTimeout'](function() {
|
||
_0x48d33c['setVisible'](!![]);
|
||
}, _0xecb5a1 * 0x4);
|
||
},
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
_0x48d33c['setVisible'](![]);
|
||
}
|
||
});
|
||
} else {
|
||
var _0x5e8963 = ![];
|
||
_0x5619f8(_0x333eb2, 'htf01_press_tile_htf01');
|
||
_0x333eb2['tweens']['add']({
|
||
'targets': _0x26bc10,
|
||
'x': _0x26bc10['x'] + 0x4,
|
||
'y': _0x26bc10['y'] - 0x4,
|
||
'duration': _0xecb5a1 * 0.4,
|
||
'yoyo': !![],
|
||
'onStart': function() {
|
||
if (_0x570308['indexOf'](_0x26bc10['name']) !== -0x1) {
|
||
if (_0x24b7b0['indexOf'](_0x26bc10['name']) === -0x1) {
|
||
_0x24b7b0['push'](_0x26bc10['name']);
|
||
} else {
|
||
_0x24b7b0 = [_0x26bc10['name']];
|
||
}
|
||
} else {
|
||
_0x24b7b0 = [];
|
||
}
|
||
if (_0x24b7b0['length'] == _0x570308['length']) {
|
||
_0x5e8963 = !![];
|
||
_0x127886['openDoor'](_0x333eb2);
|
||
_0xb43598['setEvent']('htf01_hidden_door', !![]);
|
||
}
|
||
} ['bind'](_0x333eb2),
|
||
'onComplete': function() {
|
||
if (!_0x5e8963) {
|
||
_0x5178ad();
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}, _0x333eb2);
|
||
},
|
||
'openDoor': function(_0x40e30f) {
|
||
_0x1967e9();
|
||
_0x5619f8(_0x40e30f, 'htf01_open_hidden_door_htf01');
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x40e30f['doorTiles']['length']; _0x5a8aa6++) {
|
||
var _0x6615b = _0x40e30f['doorTiles'][_0x5a8aa6];
|
||
var _0x3214d3 = _0x6615b['x'],
|
||
_0x31e9c = _0x6615b['y'];
|
||
var _0x3797e4 = _0x3214d3 + parseInt(Math['random']() * 0x2710) % 0x9 + 0x6,
|
||
_0x512ece = _0x31e9c - parseInt(Math['random']() * 0x2710) % 0x9 - 0x6;
|
||
_0x40e30f['tweens']['add']({
|
||
'targets': _0x6615b,
|
||
'x': _0x3797e4,
|
||
'y': _0x512ece,
|
||
'duration': _0xecb5a1
|
||
});
|
||
_0x40e30f['tweens']['add']({
|
||
'targets': _0x6615b,
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'x': '+=200',
|
||
'y': '+=50',
|
||
'duration': _0xecb5a1 * 0xa,
|
||
'onComplete': function() {
|
||
_0x40e30f['addTransition']('right_portal', 'htf02');
|
||
_0x40e30f['addZone']({
|
||
'x': _0x2aacf1 + 0x82,
|
||
'y': _0x25d46a - 0xc8,
|
||
'width': 0xc8,
|
||
'height': 0x15e,
|
||
'name': 'right_portal'
|
||
});
|
||
_0x5178ad();
|
||
} ['bind'](_0x40e30f)
|
||
});
|
||
}
|
||
}
|
||
};
|
||
var _0x8115aa = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf01', {
|
||
'bottom': 'htf011',
|
||
'top': 'htf010'
|
||
}, {
|
||
'htf011': 'top',
|
||
'htf011f': 'top',
|
||
'htf010': 'bottom',
|
||
'htf010f': 'bottom'
|
||
}, null, {
|
||
'tr0301': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 + 0xeb, _0x25d46a - 0x14, {
|
||
'name': 'htf01_door'
|
||
}, {
|
||
'scale': {
|
||
'x': 0.82,
|
||
'y': 0.87
|
||
},
|
||
'y': _0x25d46a - 0x49
|
||
}, 'tr0301');
|
||
}
|
||
});
|
||
var _0x48ea9e = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'htf010',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf010', {
|
||
'bottom': 'htf01',
|
||
'top': 'htf010f'
|
||
}, {
|
||
'htf010f': 'top',
|
||
'htf01': 'top',
|
||
'htf02': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x127886['extra_create'](this);
|
||
}
|
||
});
|
||
var _0x496d0a = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'htf010',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf010f', {
|
||
'bottom': 'htf01',
|
||
'top': 'htf010'
|
||
}, {
|
||
'htf010': 'top',
|
||
'htf01': 'top',
|
||
'htf02': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x127886['extra_create'](this);
|
||
}
|
||
});
|
||
var _0x4a0537 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'htf010',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf011', {
|
||
'top': 'htf01',
|
||
'bottom': 'htf011f'
|
||
}, {
|
||
'htf011f': 'bottom',
|
||
'htf01': 'bottom',
|
||
'htf02': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x127886['extra_create'](this);
|
||
}
|
||
});
|
||
var _0x274f34 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'htf010',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf011f', {
|
||
'top': 'htf01',
|
||
'bottom': 'htf011'
|
||
}, {
|
||
'htf011': 'bottom',
|
||
'htf02': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x127886['extra_create'](this);
|
||
}
|
||
});
|
||
var _0xf2798b = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf02', {
|
||
'right': 'htf03'
|
||
}, {
|
||
'htf011': 'right',
|
||
'htf010': 'right',
|
||
'htf011f': 'right',
|
||
'htf010f': 'right',
|
||
'htf03': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (_0xb43598['getEvent']('htf03_lightOff')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0xf2, _0x25d46a - 0x25, 'htf02_shadow');
|
||
}
|
||
if (!_0xb43598['getEvent']('htf02_button')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x46, _0x25d46a + 0x8c, 'htf02_button')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button');
|
||
}
|
||
if (_0x280656['lastScene'] !== 'htf03') {
|
||
_0xb43598['setEvent']('htf02_left_transition', _0x280656['lastScene']);
|
||
}
|
||
var _0x3292df = _0xb43598['getEvent']('htf02_left_transition');
|
||
if (_0x3292df) {
|
||
this['addTransition']('left', _0x3292df);
|
||
}
|
||
this['createDevice'](_0x2aacf1 + 0x6e, _0x25d46a - 0x36);
|
||
var _0x1a286b = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0xc3c2ef, _0x52a96e) {
|
||
if (_0x52a96e['name'] == 'button') {
|
||
_0x1a286b['addItem'](_0x52a96e, 'inv_button');
|
||
_0xb43598['setEvent']('htf02_button', !![]);
|
||
this['children']['remove'](_0x52a96e);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x1f477f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'noAlpha': 0.001,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'htf03', {
|
||
'left': 'htf02'
|
||
}, {
|
||
'htf02': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['lightOn'] = !!!_0xb43598['getEvent']('htf03_lightOff');
|
||
this['boxOn'] = ![];
|
||
this['lightSwitch'] = this['add']['sprite'](_0x2aacf1 + 0xcd, _0x25d46a - 0x82, 'htf03_switch_off')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('light_switch');
|
||
var _0x5c0285 = this['add']['sprite'](_0x2aacf1 + 0x64, _0x25d46a, 'htf03_box_closed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('box');
|
||
if (_0xb43598['getEvent']('htf03_win')) {
|
||
_0x5c0285['setTexture']('htf03_box_opened');
|
||
}
|
||
this['createShadowLayer']();
|
||
this['boxBottom'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'htf03_box_bottom')['setVisible'](![])['setInteractive']({
|
||
'cursor': 'default'
|
||
});
|
||
this['boxOpened'] = this['add']['sprite'](_0x2aacf1 - 0x14, _0x25d46a - 0x7a, 'htf03_box_cover_opened')['setVisible'](![])['setInteractive']({
|
||
'cursor': 'default'
|
||
});
|
||
this['boxClosed'] = this['add']['sprite'](_0x2aacf1 + 0x5, _0x25d46a - 0x48, 'htf03_box_cover_closed2')['setVisible'](![])['setInteractive']({
|
||
'cursor': 'default'
|
||
});
|
||
this['boxSwitch'] = this['add']['sprite'](_0x2aacf1 - 0x72, _0x25d46a - 0x1c, 'htf03_box_switch_off')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('boxSwitch');
|
||
this['indicators'] = {};
|
||
this['indicatorsList'] = [];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x3; _0x5a8aa6++) {
|
||
for (var _0x1016f8 = 0x0; _0x1016f8 < 0x8; _0x1016f8++) {
|
||
if (_0x1016f8 == 0x7 && _0x5a8aa6 == 0x0) continue;
|
||
this['indicators'][_0x5a8aa6 + '_' + _0x1016f8] = this['add']['sprite'](_0x2aacf1 - 0x98 + _0x5a8aa6 * 0xf - _0x1016f8 * 0x7, _0x25d46a - 0x42 - _0x1016f8 * 0xd - _0x5a8aa6 * 2.8, 'htf03_box_indicator_black');
|
||
this['indicatorsList']['push'](this['indicators'][_0x5a8aa6 + '_' + _0x1016f8]);
|
||
}
|
||
}
|
||
var _0x50ea56 = 0x1e * 0.65,
|
||
_0x45c50b = 0x37 * 0.65;
|
||
this['cells'] = {};
|
||
this['cellsList'] = [];
|
||
this['cells'][0x1] = this['add']['sprite'](_0x2aacf1 - 0xf, _0x25d46a - 0x2b, 'htf03_box_sign_green5')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x5)['setData']('i', 0x1);
|
||
this['cells'][0x2] = this['add']['sprite'](_0x2aacf1 - 0xf + _0x50ea56 * 0x1, _0x25d46a - 0x2b - _0x45c50b * 0x1, 'htf03_box_sign_green5')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x5)['setData']('i', 0x2);
|
||
this['cells'][0x3] = this['add']['sprite'](_0x2aacf1 - 0xf + _0x50ea56 * 0x2, _0x25d46a - 0x2b - _0x45c50b * 0x2, 'htf03_box_sign_green2')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('i', 0x3)['setData']('empty', !![])['setAlpha'](this['noAlpha']);
|
||
this['cells'][0x4] = this['add']['sprite'](_0x2aacf1 - 0xf + _0x50ea56 * 0x3, _0x25d46a - 0x2b - _0x45c50b * 0x3, 'htf03_box_sign_green4')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x4)['setData']('i', 0x4);
|
||
this['cells'][0x5] = this['add']['sprite'](_0x2aacf1 - 0xf + _0x50ea56 * 0x4, _0x25d46a - 0x2b - _0x45c50b * 0x4, 'htf03_box_sign_green4')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x4)['setData']('i', 0x5);
|
||
this['cells'][0x6] = this['add']['sprite'](_0x2aacf1 - 0x5b, _0x25d46a - 0x9d, 'htf03_box_sign_green3')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x3)['setData']('i', 0x6);
|
||
this['cells'][0x7] = this['add']['sprite'](_0x2aacf1 - 0x5b + 0x39 * 0x1, _0x25d46a - 0x9d + 0x15 * 0x1, 'htf03_box_sign_green3')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x3)['setData']('i', 0x7);
|
||
this['cells'][0x8] = this['add']['sprite'](_0x2aacf1 - 0x5b + 0x39 * 0x3, _0x25d46a - 0x9d + 0x15 * 0x3, 'htf03_box_sign_green2')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x2)['setData']('i', 0x8);
|
||
this['cells'][0x9] = this['add']['sprite'](_0x2aacf1 - 0x5b + 0x39 * 0x4, _0x25d46a - 0x9d + 0x15 * 0x4, 'htf03_box_sign_green2')['setName']('boxItem')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setData']('num', 0x2)['setData']('i', 0x9);
|
||
for (var _0xd4143 in this['cells']) {
|
||
if (this['cells']['hasOwnProperty'](_0xd4143)) {
|
||
this['cellsList']['push'](this['cells'][_0xd4143]);
|
||
}
|
||
}
|
||
this['shadow'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'htf03_shadow')['setVisible'](!this['lightOn']);
|
||
var _0x563a6f = [this['boxBottom'], this['boxOpened'], this['boxClosed'], this['boxSwitch']]['concat'](this['indicatorsList']);
|
||
_0x563a6f = _0x563a6f['concat'](this['cellsList']);
|
||
if (!_0xb43598['getEvent']('htf03_key')) {
|
||
this['key'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'htf03_key04')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('key')['setVisible'](![]);
|
||
_0x563a6f['push'](this['key']);
|
||
}
|
||
this['boxContainer'] = this['add']['container'](_0x4a8abc, 0x0, _0x563a6f)['setData']('startX', _0x4a8abc)['setData']('deltaX', _0x4a8abc)['setVisible'](![]);
|
||
this['closeShadowLayer'](!![]);
|
||
this['setLightOn'](this['lightOn']);
|
||
this['activeItem'] = null;
|
||
this['step'] = 0x0;
|
||
var _0x579392 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x27b887, _0x493978) {
|
||
if (_0x493978['name'] == 'light_switch') {
|
||
_0x5619f8(this, 'htf03_switch_htf03');
|
||
this['lightOn'] = !this['lightOn'];
|
||
this['setLightOn'](this['lightOn']);
|
||
} else if (_0x493978['name'] == 'box') {
|
||
this['showBox']();
|
||
} else if (_0x493978['name'] == 'boxSwitch') {
|
||
this['boxOn'] = !this['boxOn'];
|
||
this['boxSwitch']['setTexture'](this['boxOn'] ? 'htf03_box_switch_on' : 'htf03_box_switch_off');
|
||
if (this['lightOn']) {
|
||
return;
|
||
}
|
||
if (this['boxOn']) {
|
||
_0x5619f8(this, 'htf03_puzzle_activation');
|
||
this['startGame']();
|
||
} else {
|
||
_0x5619f8(this, 'htf03_puzzle_deactivation_htf03');
|
||
this['stopGame']();
|
||
}
|
||
} else if (_0x493978['name'] == 'boxItem') {
|
||
var _0x5a8aa6 = _0x493978['getData']('i');
|
||
var _0xac4007 = _0x493978['getData']('num');
|
||
var _0x5ec7bb = _0x493978['getData']('empty');
|
||
if (this['activeItem'] == null) {
|
||
if (_0x5ec7bb) {
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'htf03_choose_chip_htf03');
|
||
_0x493978['setTexture']('htf03_box_sign_green' + _0xac4007 + '_');
|
||
this['activeItem'] = _0x493978;
|
||
} else if (this['activeItem']['getData']('i') == _0x5a8aa6) {
|
||
_0x493978['setTexture']('htf03_box_sign_green' + _0xac4007);
|
||
this['activeItem'] = null;
|
||
} else if (!_0x5ec7bb || !this['isPossible'](this['activeItem']['getData']('i'), _0x5a8aa6)) {
|
||
var _0x4ec258 = 0x0;
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'htf03_error_chip_htf03');
|
||
this['tweens']['add']({
|
||
'targets': [_0x493978, this['activeItem']],
|
||
'alpha': 0x0,
|
||
'yoyo': !![],
|
||
'repeat': 0x2,
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['activeItem']['setTexture']('htf03_box_sign_green' + this['activeItem']['getData']('num'));
|
||
_0x493978['setTexture']('htf03_box_sign_green' + _0x493978['getData']('num'));
|
||
this['activeItem'] = null;
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
_0x493978['setTexture']('htf03_box_sign_green' + _0xac4007 + '_');
|
||
} else if (_0x5ec7bb && this['activeItem']) {
|
||
var _0x303109 = this['activeItem']['getData']('num');
|
||
_0x5619f8(this, 'htf03_move_chip_htf03');
|
||
_0x493978['setTexture']('htf03_box_sign_green' + _0x303109)['setAlpha'](0x1)['setData']('empty', ![])['setData']('num', _0x303109);
|
||
this['activeItem']['setAlpha'](this['noAlpha'])['setData']('empty', !![]);
|
||
this['activeItem'] = null;
|
||
this['setStep'](this['step']++);
|
||
}
|
||
} else if (_0x493978['name'] === 'key') {
|
||
_0x579392['addItem'](_0x493978, 'inv_key4');
|
||
_0xb43598['setEvent']('htf03_key', !![]);
|
||
this['children']['remove'](_0x493978);
|
||
this['boxContainer']['remove'](_0x493978);
|
||
}
|
||
}, this);
|
||
},
|
||
'startGame': function() {
|
||
_0xa87a00(this['indicatorsList'], 'htf03_box_indicator_black');
|
||
this['cells'][0x1]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green5')['setData']('num', 0x5)['setData']('i', 0x1);
|
||
this['cells'][0x2]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green5')['setData']('num', 0x5)['setData']('i', 0x2);
|
||
this['cells'][0x3]['setVisible'](!![])['setTexture']('htf03_box_sign_green2')['setData']('i', 0x3)['setData']('empty', !![])['setAlpha'](this['noAlpha']);
|
||
this['cells'][0x4]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green4')['setData']('num', 0x4)['setData']('i', 0x4);
|
||
this['cells'][0x5]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green4')['setData']('num', 0x4)['setData']('i', 0x5);
|
||
this['cells'][0x6]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green3')['setData']('num', 0x3)['setData']('i', 0x6);
|
||
this['cells'][0x7]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green3')['setData']('num', 0x3)['setData']('i', 0x7);
|
||
this['cells'][0x8]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green2')['setData']('num', 0x2)['setData']('i', 0x8);
|
||
this['cells'][0x9]['setVisible'](!![])['setData']('empty', ![])['setAlpha'](0x1)['setTexture']('htf03_box_sign_green2')['setData']('num', 0x2)['setData']('i', 0x9);
|
||
this['activeItem'] = null;
|
||
this['step'] = 0x0;
|
||
},
|
||
'stopGame': function() {
|
||
_0xa87a00(this['indicatorsList'], 'htf03_box_indicator_black');
|
||
this['cells'][0x1]['setVisible'](![]);
|
||
this['cells'][0x2]['setVisible'](![]);
|
||
this['cells'][0x3]['setVisible'](![]);
|
||
this['cells'][0x4]['setVisible'](![]);
|
||
this['cells'][0x5]['setVisible'](![]);
|
||
this['cells'][0x6]['setVisible'](![]);
|
||
this['cells'][0x7]['setVisible'](![]);
|
||
this['cells'][0x8]['setVisible'](![]);
|
||
this['cells'][0x9]['setVisible'](![]);
|
||
},
|
||
'gameOver': function() {
|
||
_0x1967e9();
|
||
this['tweens']['add']({
|
||
'targets': this['indicatorsList'],
|
||
'duration': _0xecb5a1,
|
||
'repeat': 0x7,
|
||
'alpha': 0x1,
|
||
'onStart': function(_0x5f035a, _0x8e4df1) {
|
||
_0x5cb98d();
|
||
_0xa87a00(_0x8e4df1, 'htf03_box_indicator_green');
|
||
},
|
||
'onRepeat': function(_0x5c6ab7, _0x4708af) {
|
||
_0x5cb98d();
|
||
_0x4708af['setTexture'](_0x4708af['texture']['key'] == 'htf03_box_indicator_black' ? 'htf03_box_indicator_green' : 'htf03_box_indicator_black');
|
||
} ['bind'](this),
|
||
'onComplete': function() {
|
||
this['startGame']();
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
var _0x5cb98d = function() {
|
||
for (var _0xd4143 in this['cells']) {
|
||
if (this['cells']['hasOwnProperty'](_0xd4143)) {
|
||
var _0x33dbb9 = this['cells'][_0xd4143];
|
||
var _0x2a8997 = _0x33dbb9['texture']['key'];
|
||
_0x33dbb9['setTexture'](_0x2a8997[_0x2a8997['length'] - 0x1] == '_' ? _0x2a8997['slice'](0x0, -0x1) : _0x2a8997 + '_');
|
||
}
|
||
}
|
||
} ['bind'](this);
|
||
},
|
||
'showBox': function() {
|
||
if (this['lightOn']) {
|
||
this['stopGame']();
|
||
}
|
||
this['showShadowLayer'](this['boxContainer']);
|
||
this['boxBottom']['setVisible'](!![]);
|
||
if (_0xb43598['getEvent']('htf03_win')) {
|
||
this['openBox']();
|
||
} else {
|
||
_0x4d6d15(this['indicatorsList']);
|
||
this['boxClosed']['setVisible'](!![]);
|
||
this['boxSwitch']['setVisible'](!![]);
|
||
if (!this['lightOn'] && this['boxSwitch']['texture']['key'] === 'htf03_box_switch_on') {
|
||
this['startGame']();
|
||
}
|
||
}
|
||
},
|
||
'closeShadowLayer': function(_0x33509c) {
|
||
if (_0x33509c) {
|
||
this['stopGame']();
|
||
_0xc2f164(this['indicatorsList']);
|
||
this['boxOn'] = ![];
|
||
this['boxOpened']['setVisible'](![]);
|
||
this['boxClosed']['setVisible'](![]);
|
||
this['boxBottom']['setVisible'](![]);
|
||
this['boxSwitch']['setVisible'](![])['setTexture']('htf03_box_switch_off');
|
||
if (!_0xb43598['getEvent']('htf03_key')) {
|
||
this['key']['setVisible'](![]);
|
||
}
|
||
} else {
|
||
_0xc2f164(this['indicatorsList']);
|
||
this['boxOpened']['setVisible'](![]);
|
||
this['boxClosed']['setVisible'](![]);
|
||
this['boxBottom']['setVisible'](![]);
|
||
this['boxSwitch']['setVisible'](![]);
|
||
if (!_0xb43598['getEvent']('htf03_key')) {
|
||
this['key']['setVisible'](![]);
|
||
}
|
||
}
|
||
},
|
||
'isPossible': function(_0x4299ee, _0x187175) {
|
||
if (_0x187175 == 0x3 || _0x4299ee == 0x3) return !![];
|
||
if ((_0x4299ee == 0x7 || _0x4299ee == 0x8) && (_0x187175 == 0x2 || _0x187175 == 0x4)) return !![];
|
||
if ((_0x187175 == 0x7 || _0x187175 == 0x8) && (_0x4299ee == 0x2 || _0x4299ee == 0x4)) return !![];
|
||
return Math['abs'](_0x187175 - _0x4299ee) <= (_0x4299ee > 0x5 ? 0x1 : 0x2);
|
||
},
|
||
'setStep': function(_0x47e1fd) {
|
||
var _0x5a8aa6 = _0x47e1fd % 0x3,
|
||
_0xd5227a = parseInt(_0x47e1fd / 0x3);
|
||
if (_0xd5227a == 0x7) _0x5a8aa6++;
|
||
this['indicators'][_0x5a8aa6 + '_' + _0xd5227a]['setTexture']('htf03_box_indicator_green');
|
||
if (this['isWin']()) {
|
||
_0xb43598['setEvent']('htf03_win', !![]);
|
||
_0x5619f8(this, 'htf03_solve');
|
||
this['openBox']();
|
||
return;
|
||
} else if (_0xd5227a == 0x7 && _0x5a8aa6 == 0x2) {
|
||
_0x5619f8(this, 'htf03_no_moves_htf03');
|
||
this['gameOver']();
|
||
}
|
||
},
|
||
'setLightOn': function(_0x501890) {
|
||
_0xb43598['setEvent']('htf03_lightOff', !_0x501890);
|
||
this['lightSwitch']['setTexture'](_0x501890 ? 'htf03_switch_off' : 'htf03_switch_on');
|
||
this['shadow']['setVisible'](!_0x501890);
|
||
},
|
||
'isWin': function() {
|
||
var _0x12401f = {
|
||
1: '2',
|
||
2: '2',
|
||
3: null,
|
||
4: '5',
|
||
5: '5',
|
||
6: '4',
|
||
7: '4',
|
||
8: '3',
|
||
9: '3'
|
||
};
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 <= 0x9; _0x5a8aa6++) {
|
||
var _0x225456 = this['cells'][_0x5a8aa6]['texture']['key'];
|
||
if (_0x12401f[_0x5a8aa6] === null && this['cells'][_0x5a8aa6]['getData']('empty')) {
|
||
continue;
|
||
}
|
||
if (_0x225456[_0x225456['length'] - 0x1] != _0x12401f[_0x5a8aa6]) {
|
||
return ![];
|
||
}
|
||
}
|
||
return !![];
|
||
},
|
||
'openBox': function() {
|
||
this['stopGame']();
|
||
_0xc2f164(this['indicatorsList']);
|
||
this['boxOpened']['setVisible'](!![]);
|
||
this['boxClosed']['setVisible'](![]);
|
||
this['boxSwitch']['setVisible'](![]);
|
||
if (!_0xb43598['getEvent']('htf03_key')) {
|
||
this['key']['setVisible'](!![]);
|
||
}
|
||
}
|
||
});
|
||
var _0x1db563 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'dep02', {
|
||
'right': 'tr0001'
|
||
}, {
|
||
'tr0001': 'left',
|
||
'dep04': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
if (!_0xb43598['getEvent']('dep02_uv')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x28, _0x25d46a - 0x14, 'dep02_uv')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('uv')['setScale'](0.7);
|
||
}
|
||
this['cylinderNumber'] = _0xb43598['getEvent']('dep02_cylinder_number') || 0x0;
|
||
this['hatch1'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0x82, 'dep02_hatch1');
|
||
this['hatch2'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0x50, 'dep02_hatch2')['setName']('hatch')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['hatchShadow'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a + 0x78, 'dep02_hatchshadow');
|
||
this['cylinder0'] = this['add']['sprite'](_0x2aacf1 - 0x19, _0x25d46a + 0x1e, 'dep02_cylinder')['setVisible'](![]);
|
||
this['cylinder1'] = this['add']['sprite'](_0x2aacf1 + 0x5, _0x25d46a + 0x1e, 'dep02_cylinder')['setVisible'](![]);
|
||
this['hatchMask'] = this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0x50, 'dep02_mask');
|
||
if (_0xb43598['getEvent']('dep02_open')) {
|
||
this['openHatch'](!![]);
|
||
}
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < this['cylinderNumber']; _0x5a8aa6++) {
|
||
this['cylinder' + _0x5a8aa6]['setVisible'](!![]);
|
||
this['cylinder' + _0x5a8aa6]['y'] += 0x2b;
|
||
}
|
||
var _0x1e0795 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x2c9e25, _0x207cdc) {
|
||
if (!_0xb43598['getEvent']('dep02_uv') && _0x207cdc['name'] == 'uv') {
|
||
_0x1e0795['addItem'](_0x207cdc, 'inv_uv');
|
||
_0xb43598['setEvent']('dep02_uv', !![]);
|
||
this['children']['remove'](_0x207cdc);
|
||
} else if (_0x207cdc['name'] === 'hatch' && !_0xb43598['getEvent']('dep02_open')) {
|
||
if (_0xb43598['isInventoryActive']('inv_cylinder') && this['cylinderNumber'] < 0x2) {
|
||
_0x5619f8(this, 'dep02_insert_cylinder_dep02');
|
||
this['pushCylinder']();
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'pushCylinder': function(_0x4cef4e) {
|
||
var _0x154931 = this['scene']['get']('inventoryScene');
|
||
_0x1967e9();
|
||
_0x154931['removeItem']('inv_cylinder');
|
||
var _0x1bd31d = this['cylinder' + this['cylinderNumber']];
|
||
_0x1bd31d['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': _0x1bd31d,
|
||
'y': '+=43',
|
||
'duration': _0xecb5a1 * 0x6,
|
||
'onComplete': function() {
|
||
this['cylinderNumber']++;
|
||
_0xb43598['setEvent']('dep02_cylinder_number', this['cylinderNumber']);
|
||
if (this['cylinderNumber'] == 0x2) {
|
||
_0x5619f8(this, 'dep02_open_hatch_dep02');
|
||
this['openHatch']();
|
||
} else {
|
||
_0x5178ad();
|
||
}
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'openHatch': function(_0x3bc0bd) {
|
||
this['addTransition']('bottom', 'dep04', !![]);
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x96,
|
||
'y': _0x25d46a + 0x5a,
|
||
'width': 0xfa,
|
||
'height': 0x78,
|
||
'name': 'bottom'
|
||
});
|
||
if (_0x3bc0bd) {
|
||
this['hatch1']['x'] += 0x8c;
|
||
this['hatch1']['y'] += 0x46;
|
||
this['hatch2']['x'] += 0x8c;
|
||
this['hatch2']['y'] += 0x46;
|
||
this['hatchShadow']['x'] += 0x8c;
|
||
this['hatchShadow']['y'] += 0x46;
|
||
this['hatchMask']['x'] += 0x8c;
|
||
this['hatchMask']['y'] += 0x46;
|
||
this['cylinder0']['x'] += 0x8c;
|
||
this['cylinder0']['y'] += 0x46;
|
||
this['cylinder1']['x'] += 0x8c;
|
||
this['cylinder1']['y'] += 0x46;
|
||
return;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': [this['hatch1'], this['hatch2'], this['hatchShadow'], this['hatchMask'], this['cylinder0'], this['cylinder1']],
|
||
'x': '+=140',
|
||
'y': '+=70',
|
||
'ease': 'Cubic.easeIn',
|
||
'duration': _0xecb5a1 * 0xa,
|
||
'onComplete': function() {
|
||
this['hatch2']['disableInteractive']();
|
||
_0xb43598['setEvent']('dep02_open', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x459675 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'dep04', {
|
||
'top': 'dep02',
|
||
'bottom': 'dep06'
|
||
}, {
|
||
'dep02': 'bottom',
|
||
'dep06': 'top'
|
||
});
|
||
}
|
||
});
|
||
var _0x31fee6 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'dep06', {
|
||
'top': 'dep04'
|
||
}, {
|
||
'dep04': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['button'] = this['add']['sprite'](_0x2aacf1 + 0x37, _0x25d46a + 0x90, 'dep06_btnoff')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button');
|
||
this['add']['sprite'](_0x2aacf1 - 0x50, _0x25d46a + 0x96, 'dep06_iconoff');
|
||
this['skullfill'] = this['add']['sprite'](_0x2aacf1 - 0x8, _0x25d46a + 0x96, 'dep06_skullfill')['setVisible'](![]);
|
||
this['skull'] = this['add']['sprite'](_0x2aacf1 - 0x8, _0x25d46a + 0x96, 'dep06_skull')['setAlpha'](0.001)['setName']('skull')['setInteractive']();
|
||
this['add']['sprite'](_0x2aacf1 - 0x6, _0x25d46a + 0x78, 'dep06_pipka');
|
||
this['add']['sprite'](_0x2aacf1 - 0x6, _0x25d46a + 0x73, 'dep06_mask');
|
||
if (_0xb43598['getEvent']('dep06_skull_in_slot')) {
|
||
this['skull']['setAlpha'](0x1);
|
||
}
|
||
if (_0xb43598['getEvent']('dep06_skull_fill_get')) {
|
||
this['skull']['setVisible'](![]);
|
||
this['skullfill']['setVisible'](![]);
|
||
this['button']['disableInteractive']();
|
||
}
|
||
var _0x542ab3 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x1e9400, _0x49798) {
|
||
if (_0x49798['name'] === 'button') {
|
||
if (!_0xb43598['getEvent']('dep06_skull_in_slot') || _0xb43598['getEvent']('dep06_skull_fill')) return;
|
||
_0x1967e9();
|
||
this['fillSkull']();
|
||
} else if (_0x49798['name'] === 'skull') {
|
||
if (_0xb43598['isInventoryActive']('inv_skull')) {
|
||
this['skull']['setAlpha'](0x1)['disableInteractive']();
|
||
_0x542ab3['removeItem']('inv_skull');
|
||
_0xb43598['setEvent']('dep06_skull_in_slot', !![]);
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'fillSkull': function() {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'dep06_fill_skull');
|
||
_0x39f1a0(this, this['skullfill'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': this['skullfill']['height'] / 0x2,
|
||
'topRightX': 0x64,
|
||
'topRightY': this['skullfill']['height'] / 0x2,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['skullfill']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['skullfill']['height'] / 0x2
|
||
});
|
||
var _0x1a9d74 = this['scene']['get']('inventoryScene');
|
||
this['skullfill']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['skullfill'],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'alpha': 0x1,
|
||
'onUpdate': function(_0x6993ad, _0x3313e3) {
|
||
_0x39f1a0(this, this['skullfill'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': this['skullfill']['height'] / 0x2 - _0x6993ad['progress'] * this['skullfill']['height'],
|
||
'topRightX': 0x64,
|
||
'topRightY': this['skullfill']['height'] / 0x2 - _0x6993ad['progress'] * this['skullfill']['height'],
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['skullfill']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['skullfill']['height'] / 0x2
|
||
});
|
||
} ['bind'](this),
|
||
'onComplete': function() {
|
||
_0xb43598['setEvent']('dep06_skull_fill', !![]);
|
||
_0x1a9d74['addItem'](this['skull'], 'inv_skull_filled');
|
||
this['skull']['setVisible'](![]);
|
||
this['skullfill']['setVisible'](![]);
|
||
this['button']['disableInteractive']();
|
||
_0xb43598['setEvent']('dep06_skull_fill_get', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x945e32 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp_l', {
|
||
'left': 'sp_l2',
|
||
'right': 'sp01'
|
||
}, {
|
||
'sp01': 'left',
|
||
'sp_l2': 'left'
|
||
});
|
||
}
|
||
});
|
||
var _0x1d92cb = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'sp_l',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp_l2', {
|
||
'left': 'sp_l',
|
||
'right': 'sp01'
|
||
}, {
|
||
'sp_l': 'left'
|
||
});
|
||
}
|
||
});
|
||
var _0x693eb1 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp01', {
|
||
'left': 'sp_l',
|
||
'right': 'sp02'
|
||
}, {
|
||
'sp_l': 'right',
|
||
'sp_l2': 'right',
|
||
'sp02': 'left',
|
||
'sp04': 'top',
|
||
'el': 'right'
|
||
}, null, {
|
||
'el': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('sp01_hatch');
|
||
this['hatchOpen'] = ![];
|
||
var _0x28e582 = this['add']['sprite'](_0x2aacf1 + 0x96, _0x25d46a + 0x82, 'sp01_hatch_covered');
|
||
_0x28e582['on']('animationcomplete', function(_0x24e2d1, _0x1af076) {
|
||
_0xb43598['setEvent']('sp01_hatch_open', !![]);
|
||
this['openHatch']();
|
||
_0x5619f8(this, 'sp01_open_hatch_sp01');
|
||
_0x5178ad();
|
||
}, this);
|
||
if (_0xb43598['getEvent']('sp01_hatch_ready')) {
|
||
_0x28e582['setTexture']('sp01_hatch_0');
|
||
}
|
||
if (_0xb43598['getEvent']('sp01_hatch_open')) {
|
||
_0x28e582['setTexture']('sp01_hatch_8');
|
||
this['openHatch']();
|
||
}
|
||
if (_0xb43598['getEvent']('sp04_elevator_state') === 'floor1') {
|
||
this['elevator'] = this['add']['sprite'](0x0, -_0x3eaf37, 'sp01_el')['setOrigin'](0x0, 0.5);
|
||
if (_0xb43598['getEvent']('sp04_elevator_door_opened')) {
|
||
this['elevator']['setPosition'](-0x92, _0x25d46a + 0x32)['setTexture']('sp01_el_7');
|
||
this['addTransition']('left_door', 'el');
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x73,
|
||
'y': _0x25d46a - 0x4b,
|
||
'width': 0x64,
|
||
'height': 0xdc,
|
||
'name': 'portal'
|
||
});
|
||
} else {
|
||
_0x1967e9();
|
||
this['createAnimation']('sp01_elevator');
|
||
_0x5619f8(this, 'el_arrives');
|
||
this['elevator']['on']('animationcomplete', function() {
|
||
_0xb43598['setEvent']('sp04_elevator_door_opened', !![]);
|
||
this['addTransition']('left_door', 'el');
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x73,
|
||
'y': _0x25d46a - 0x4b,
|
||
'width': 0x64,
|
||
'height': 0xdc,
|
||
'name': 'portal'
|
||
});
|
||
_0x5178ad();
|
||
}, this);
|
||
this['tweens']['add']({
|
||
'targets': this['elevator'],
|
||
'y': _0x25d46a + 0x32,
|
||
'duration': _0xecb5a1 * 0x4,
|
||
'ease': 'Quart.easeIn',
|
||
'onComplete': function() {
|
||
this['elevator']['setPosition'](-0x92, _0x25d46a + 0x32)['setTexture']('sp01_el_0');
|
||
this['elevator']['play']('sp01_elevator');
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
}
|
||
var _0x58a19 = _0xb43598['getEvent']('sp01_hatch_ready') || _0xb43598['getEvent']('sp01_hatch_open') ? 'pointer' : 'default';
|
||
this['addZone']({
|
||
'x': _0x2aacf1 + 0x3c,
|
||
'y': _0x25d46a + 0xc8,
|
||
'width': 0xc8,
|
||
'height': 0x46,
|
||
'name': 'bottomZone',
|
||
'cursor': _0x58a19
|
||
});
|
||
var _0x3f363a = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x3490f2, _0x20dbfe) {
|
||
if (!_0xb43598['getEvent']('sp01_hatch_ready')) {
|
||
if (_0x20dbfe['name'] === 'bottomZone' && _0xb43598['isInventoryActive']('inv_shovel')) {
|
||
_0xb43598['setEvent']('sp01_hatch_ready', !![]);
|
||
_0x3f363a['removeItem']('inv_shovel', 'sp01_unhide_hatch');
|
||
_0x28e582['setTexture']('sp01_hatch_0');
|
||
}
|
||
} else {
|
||
if (_0x20dbfe['name'] === 'bottomZone') {
|
||
if (!this['hatchOpen']) {
|
||
_0x1967e9();
|
||
_0x28e582['play']('sp01_hatch');
|
||
} else {
|
||
_0x3d4394(this, 'bottom', this['transitions']);
|
||
}
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'openHatch': function() {
|
||
this['addTransition']('bottom', 'sp04', !![]);
|
||
this['hatchOpen'] = !![];
|
||
}
|
||
});
|
||
var _0x2035fb = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp02', {
|
||
'left': 'sp01',
|
||
'right': 'sp03'
|
||
}, {
|
||
'sp01': 'right',
|
||
'sp03': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['laserRay'] = this['add']['sprite'](_0x2aacf1 - 0x5, _0x25d46a, 'sp02_laser_ray')['setVisible'](![]);
|
||
this['laserRay2'] = this['add']['sprite'](_0x2aacf1 - 0x5, _0x25d46a + this['laserRay']['height'], 'sp02_laser_ray')['setVisible'](![]);
|
||
var _0x4e60ca = !!_0xb43598['getEvent']('sp02_laser_ready');
|
||
var _0x4492ec = this['add']['sprite'](_0x2aacf1, _0x25d46a + 0x23, 'sp02_laser1');
|
||
var _0x1c8f79 = this['add']['sprite'](_0x2aacf1, _0x25d46a + 0x96, 'sp02_laser2')['setInteractive']()['setName']('laser_body');
|
||
this['laser3'] = this['add']['sprite'](_0x2aacf1, _0x25d46a - 0x46, 'sp02_laser3');
|
||
this['laser4'] = this['add']['sprite'](_0x2aacf1 - 0x17, _0x25d46a - 0xc, 'sp02_laser4');
|
||
this['laser5'] = this['add']['sprite'](_0x2aacf1 + 0x17, _0x25d46a - 0xc, 'sp02_laser5');
|
||
this['laser6'] = this['add']['sprite'](_0x2aacf1, _0x25d46a + 0x37, 'sp02_laser6');
|
||
var _0x222b9f = this['add']['sprite'](_0x2aacf1 - 0xc, _0x25d46a + 0xaf, 'sp02_laser7')['setVisible'](_0x4e60ca);
|
||
var _0x2738d4 = [_0x4492ec, _0x1c8f79, this['laser3'], this['laser4'], this['laser5'], this['laser6'], _0x222b9f];
|
||
var _0x3b0622 = this['add']['container'](0x0, _0x25d46a, _0x2738d4);
|
||
var _0x56195e = this['add']['sprite'](_0x2aacf1, _0x3eaf37 + 0x28, 'sp02_mask')['setOrigin'](0.5, 0x1);
|
||
var _0x1997d8 = this['add']['sprite'](_0x2aacf1, _0x3eaf37, 'sp02_sand')['setOrigin'](0.5, 0x1);
|
||
if (_0xb43598['getEvent']('sp04_laser_on')) {
|
||
if (!_0xb43598['getEvent']('sp02_laser_up')) {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'sp02_unhide_laser');
|
||
this['tweens']['add']({
|
||
'targets': _0x3b0622,
|
||
'y': 0x14,
|
||
'duration': _0xecb5a1 * 0x3,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
_0xb43598['setEvent']('sp02_laser_up', !![]);
|
||
} ['bind'](this)
|
||
});
|
||
} else {
|
||
_0x3b0622['y'] = 0x14;
|
||
}
|
||
} else {
|
||
_0x3b0622['setVisible'](![]);
|
||
_0x56195e['setVisible'](![]);
|
||
_0x1997d8['setVisible'](![]);
|
||
}
|
||
if (_0xb43598['getEvent']('sp04_laser_shot') && !_0xb43598['getEvent']('sp02_laser_shot_complete_animation')) {
|
||
this['runLaserShot']();
|
||
}
|
||
if (_0xb43598['getEvent']('sp02_laser_shot_complete_animation')) {
|
||
this['laser3']['y'] -= 0x1e;
|
||
this['laser4']['x'] -= 0xf;
|
||
this['laser4']['y'] -= 0x1e;
|
||
this['laser5']['x'] += 0xf;
|
||
this['laser5']['y'] -= 0x1e;
|
||
this['laser6']['y'] -= 0x1e;
|
||
this['playLaserRay']();
|
||
}
|
||
var _0xb83b54 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x176f8e, _0x34b617) {
|
||
if (!_0x4e60ca) {
|
||
if (_0x34b617['name'] === 'laser_body' && _0xb43598['isInventoryActive']('inv_fuse')) {
|
||
_0x222b9f['setVisible'](!![]);
|
||
_0xb43598['setEvent']('sp02_laser_ready', !![]);
|
||
_0xb83b54['removeItem']('inv_fuse');
|
||
}
|
||
}
|
||
}, this);
|
||
},
|
||
'playLaserRay': function() {
|
||
_0x5619f8(this, 'sp02_laser_rays', !![]);
|
||
this['laserRay']['y'] = _0x25d46a;
|
||
this['laserRay']['setVisible'](!![]);
|
||
this['laserRay2']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': [this['laserRay'], this['laserRay2']],
|
||
'y': '-=' + _0x3eaf37,
|
||
'repeat': -0x1,
|
||
'duration': _0xecb5a1
|
||
});
|
||
},
|
||
'runLaserShot': function() {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'sp02_open_laser');
|
||
this['tweens']['add']({
|
||
'targets': [this['laser3'], this['laser4'], this['laser5'], this['laser6']],
|
||
'y': '-=30',
|
||
'delay': _0xecb5a1,
|
||
'duration': _0xecb5a1,
|
||
'completeDelay': _0xecb5a1 * 0.8,
|
||
'onComplete': function() {
|
||
this['tweens']['add']({
|
||
'targets': this['laser4'],
|
||
'x': '-=15',
|
||
'duration': _0xecb5a1
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['laser5'],
|
||
'x': '+=15',
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
this['laserRay']['y'] = _0x3eaf37;
|
||
this['laserRay']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['laserRay'],
|
||
'y': '-=' + _0x25d46a,
|
||
'duration': _0xecb5a1 / 0x2,
|
||
'onComplete': function() {
|
||
this['playLaserRay']();
|
||
_0xb43598['setEvent']('sp02_laser_shot_complete_animation', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'before_transition': function() {
|
||
_0x11c867('sp02_laser_rays');
|
||
}
|
||
});
|
||
var _0x5ab5f6 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp03', {
|
||
'left': 'sp02',
|
||
'right': 'sp_r'
|
||
}, {
|
||
'sp02': 'right',
|
||
'sp_r': 'left',
|
||
'sp_r': 'left',
|
||
'sp_r2': 'left'
|
||
}, null, {
|
||
'tr0201b': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
this['portal'] = this['add']['sprite'](_0x2aacf1 + 0x1e, _0x25d46a, 'portal_1')['setName']('portal')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setScale'](0x1, 0.83);
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 + 0x15, _0x25d46a + 0x3, 'sp03_door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
this['add']['sprite'](_0x2aacf1, _0x25d46a, 'sp03_platband');
|
||
this['createMask'](this['portal']);
|
||
this['createMask'](this['door']);
|
||
this['input']['on']('gameobjectdown', function(_0x4e21a2, _0xecd37e) {
|
||
if (_0xecd37e['name'] === 'door') {
|
||
this['openDoor']();
|
||
} else if (_0xecd37e['name'] === 'portal') {
|
||
_0x36f2e8(this, 'tr0201b', 'transition_portal');
|
||
}
|
||
}, this);
|
||
},
|
||
'createMask': function(_0x50d63f) {
|
||
var _0x4bf4f8 = {
|
||
'topLeftX': -0x50,
|
||
'topLeftY': -0xaf,
|
||
'topRightX': 0x5c,
|
||
'topRightY': -0xaf,
|
||
'bottomLeftX': -0x78,
|
||
'bottomLeftY': 0xa0,
|
||
'bottomRightX': 0x46,
|
||
'bottomRightY': 0xaf
|
||
};
|
||
var _0x277fad = this['make']['mesh']({
|
||
'key': 'phaser2',
|
||
'x': _0x50d63f['x'],
|
||
'y': _0x50d63f['y'],
|
||
'vertices': [_0x4bf4f8['topLeftX'], _0x4bf4f8['topLeftY'], _0x4bf4f8['bottomLeftX'], _0x4bf4f8['bottomLeftY'], _0x4bf4f8['bottomRightX'], _0x4bf4f8['bottomRightY'], _0x4bf4f8['topLeftX'], _0x4bf4f8['topLeftY'], _0x4bf4f8['bottomRightX'], _0x4bf4f8['bottomRightY'], _0x4bf4f8['topRightX'], _0x4bf4f8['topRightY']],
|
||
'uv': [0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0],
|
||
'add': ![]
|
||
});
|
||
_0x50d63f['mask'] = new Phaser['Display']['Masks']['GeometryMask'](this, _0x277fad);
|
||
},
|
||
'openDoor': function() {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['portal']['play']('portal');
|
||
this['tweens']['add']({
|
||
'targets': this['door'],
|
||
'x': '+=150',
|
||
'y': '+=16',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
}
|
||
});
|
||
var _0x32f3e5 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp04', {
|
||
'top': 'sp01'
|
||
}, {
|
||
'sp01': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('sp04_lever');
|
||
this['elevatorState'] = _0xb43598['getEvent']('sp04_elevator_state') || 'floor3';
|
||
this['elevatorScreen'] = this['add']['sprite'](_0x2aacf1 - 0x116, _0x25d46a - 0xd3, 'sp04_elevator_screen');
|
||
this['elevatorIndicator'] = this['add']['sprite'](_0x2aacf1 - 0x13c, _0x25d46a - 0xf7, 'sp04_elevator_indicator');
|
||
if (this['elevatorState'] === 'floor1') {
|
||
this['elevatorIndicator']['y'] += 0x35;
|
||
}
|
||
this['laserOnFlag'] = !!_0xb43598['getEvent']('sp04_laser_on');
|
||
this['rayScreen'] = this['add']['sprite'](_0x2aacf1 - 0x3e, _0x25d46a + 0x10, 'sp04_ray_screen');
|
||
this['laserInd'] = this['add']['sprite'](_0x2aacf1 + 0xa, _0x25d46a + 0x50, 'sp04_laser_ind');
|
||
this['ind2'] = this['add']['sprite'](_0x2aacf1 + 0x26, _0x25d46a - 0x16, 'sp04_ind2_off');
|
||
var _0x557e7a = this['add']['sprite'](_0x2aacf1 + 0x46, _0x25d46a - 0xf, 'sp04_btn')['setName']('laser_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['createLaserMask']();
|
||
if (this['laserOnFlag']) {
|
||
_0x557e7a['disableInteractive']();
|
||
this['laserOn'](!![]);
|
||
}
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 + 0x19, _0x25d46a - 0xa5, 'sp04_lever_0')['setScale'](0.25)['setName']('lever')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['elButton'] = this['add']['sprite'](_0x2aacf1 - 0x131, _0x25d46a + 0x2a, 'sp04_ind')['setName']('ind')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
if (!_0xb43598['getEvent']('sp04_cylinder')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x46, _0x25d46a + 0x82, 'sp04_cylinder')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('cylinder');
|
||
}
|
||
if (!_0xb43598['getEvent']('sp04_fuse')) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x46, _0x25d46a + 0xbe, 'sp04_fuse')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('fuse');
|
||
}
|
||
this['laserScreen'] = this['add']['sprite'](_0x2aacf1 - 0x8d, _0x25d46a - 0xad, 'sp04_laser_screen')['setVisible'](this['laserOnFlag']);
|
||
this['laser1'] = this['add']['sprite'](_0x2aacf1 - 0x8d, _0x25d46a - 0x53, 'sp04_laser_detail_1')['setVisible'](this['laserOnFlag']);
|
||
this['laser4'] = this['add']['sprite'](_0x2aacf1 - 0x8d, _0x25d46a - 0xb1, 'sp04_laser_detail_4')['setVisible'](this['laserOnFlag']);
|
||
this['laser2'] = this['add']['sprite'](_0x2aacf1 - 0x80, _0x25d46a - 0xd7, 'sp04_laser_detail_2')['setVisible'](this['laserOnFlag']);
|
||
this['laser3'] = this['add']['sprite'](_0x2aacf1 - 0x9a, _0x25d46a - 0xd7, 'sp04_laser_detail_3')['setVisible'](this['laserOnFlag']);
|
||
var _0x53462e = this['add']['sprite'](_0x2aacf1 - 0x95, _0x25d46a - 0x7b, 'sp04_fuse_indicator')['setVisible'](![]);
|
||
var _0x38831f = this['add']['sprite'](_0x2aacf1 - 0xb, _0x25d46a - 0x87, 'sp04_ind3_off');
|
||
if (_0xb43598['getEvent']('sp02_laser_ready')) {
|
||
_0x38831f['setTexture']('sp04_ind3_on');
|
||
}
|
||
if (_0xb43598['getEvent']('sp04_laser_shot')) {
|
||
setTimeout(function() {
|
||
this['runLaserScreenAnimation']();
|
||
} ['bind'](this), 0x64);
|
||
this['lever']['setTexture']('sp04_lever_12')['disableInteractive']();
|
||
}
|
||
if (!_0xb43598['getEvent']('sp04_enter')) {
|
||
this['runFirstEnterAnimation']();
|
||
}
|
||
var _0x183555 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x3faad5, _0x43490b) {
|
||
if (_0x43490b['name'] === 'cylinder' || _0x43490b['name'] == 'fuse') {
|
||
_0x183555['addItem'](_0x43490b, 'inv_' + _0x43490b['name']);
|
||
_0xb43598['setEvent']('sp04_' + _0x43490b['name'], !![]);
|
||
this['children']['remove'](_0x43490b);
|
||
} else if (_0x43490b['name'] === 'lever') {
|
||
if (!_0xb43598['getEvent']('sp04_laser_on')) {
|
||
return;
|
||
}
|
||
if (!_0xb43598['getEvent']('sp02_laser_ready')) {
|
||
var _0x5a8aa6 = 0x0;
|
||
_0x5619f8(this, 'sp04_lever_error_sp04');
|
||
this['tweens']['add']({
|
||
'targets': _0x53462e,
|
||
'alpha': 0x1,
|
||
'duration': _0xecb5a1,
|
||
'repeat': 0x6,
|
||
'onRepeat': function() {
|
||
_0x53462e['setVisible'](++_0x5a8aa6 % 0x2 == 0x1 ? !![] : ![]);
|
||
}
|
||
});
|
||
return;
|
||
} else {
|
||
_0x5619f8(this, 'sp04_lever_on_sp04');
|
||
this['lever']['play']('sp04_lever');
|
||
_0x1967e9();
|
||
this['lever']['on']('animationcomplete', function() {
|
||
_0xb43598['setEvent']('sp04_laser_shot', !![]);
|
||
_0xb43598['setEvent']('sp02_laser_shot_complete', !![]);
|
||
_0x5178ad();
|
||
this['runLaserScreenAnimation']();
|
||
}, this);
|
||
}
|
||
} else if (_0x43490b['name'] === 'laser_btn') {
|
||
this['laserOn']();
|
||
} else if (_0x43490b['name'] === 'ind') {
|
||
this['elevatorDown']();
|
||
}
|
||
}, this);
|
||
},
|
||
'runFirstEnterAnimation': function() {
|
||
this['elevatorIndicator']['setVisible'](![]);
|
||
this['elevatorScreen']['setVisible'](![]);
|
||
this['rayScreen']['setVisible'](![]);
|
||
this['elButton']['setVisible'](![]);
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'sp04_screens_on_sp04');
|
||
this['tweens']['add']({
|
||
'targets': [this['elevatorScreen'], this['rayScreen'], this['elButton']],
|
||
'duration': _0xecb5a1 * 1.5,
|
||
'repeat': 0x7,
|
||
'alpha': 0x1,
|
||
'onRepeat': function(_0x58a992, _0x31e11f) {
|
||
_0x31e11f['setVisible'](!_0x31e11f['visible']);
|
||
} ['bind'](this),
|
||
'onComplete': function() {
|
||
_0xb43598['setEvent']('sp04_enter', !![]);
|
||
this['elevatorIndicator']['setVisible'](!![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'createLaserMask': function() {
|
||
var _0x5badac = {
|
||
'topLeftX': -0x14,
|
||
'topLeftY': -0x1e,
|
||
'topRightX': 0x1e,
|
||
'topRightY': -0x1e,
|
||
'bottomLeftX': -0x16,
|
||
'bottomLeftY': 0x19,
|
||
'bottomRightX': 0x14,
|
||
'bottomRightY': 0x16
|
||
};
|
||
var _0x4b6ce1 = this['make']['mesh']({
|
||
'key': 'phaser2',
|
||
'x': _0x2aacf1 - 0x12,
|
||
'y': _0x25d46a + 0x1e,
|
||
'vertices': [_0x5badac['topLeftX'], _0x5badac['topLeftY'], _0x5badac['bottomLeftX'], _0x5badac['bottomLeftY'], _0x5badac['bottomRightX'], _0x5badac['bottomRightY'], _0x5badac['topLeftX'], _0x5badac['topLeftY'], _0x5badac['bottomRightX'], _0x5badac['bottomRightY'], _0x5badac['topRightX'], _0x5badac['topRightY']],
|
||
'uv': [0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0],
|
||
'add': ![]
|
||
});
|
||
this['laserInd']['mask'] = new Phaser['Display']['Masks']['GeometryMask'](this, _0x4b6ce1);
|
||
},
|
||
'elevatorDown': function() {
|
||
if (this['elevatorState'] === 'floor1') {
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'sp04_call_el_sp04');
|
||
this['input']['setDefaultCursor']('default');
|
||
this['tweens']['add']({
|
||
'targets': this['elevatorIndicator'],
|
||
'y': '+=53',
|
||
'duration': _0xecb5a1 * 0xe,
|
||
'onComplete': function() {
|
||
this['elevatorState'] = 'floor1';
|
||
_0xb43598['setEvent']('sp04_elevator_state', this['elevatorState']);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'laserOn': function(_0x180317) {
|
||
this['ind2']['setTexture']('sp04_ind2_on');
|
||
if (this['laserOnFlag'] && !_0x180317) {
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'sp04_btn_laser_sp04');
|
||
this['laserInd']['setPosition'](_0x2aacf1 + 0xa, _0x25d46a + 0x50);
|
||
this['tweens']['add']({
|
||
'targets': this['laserInd'],
|
||
'x': '-=28',
|
||
'y': '-=50',
|
||
'repeat': -0x1,
|
||
'hold': _0xecb5a1 * 0x2,
|
||
'ease': 'Quart.easeIn',
|
||
'delay': _0xecb5a1 * 0.5,
|
||
'duration': _0xecb5a1 * 0x3,
|
||
'onStart': function() {
|
||
this['laserInd']['setPosition'](_0x2aacf1 + 0xa, _0x25d46a + 0x50);
|
||
} ['bind'](this),
|
||
'onRepeat': function() {
|
||
if (this['laserOnFlag']) return;
|
||
this['laserOnFlag'] = !![];
|
||
_0xb43598['setEvent']('sp04_laser_on', !![]);
|
||
this['laserScreen']['setVisible'](!![]);
|
||
this['laser4']['setVisible'](!![]);
|
||
this['laser1']['setVisible'](!![]);
|
||
this['laser2']['setVisible'](!![]);
|
||
this['laser3']['setVisible'](!![]);
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'runLaserScreenAnimation': function() {
|
||
this['laser4']['setPosition'](_0x2aacf1 - 0x8d, _0x25d46a - 0xb1);
|
||
this['laser2']['setPosition'](_0x2aacf1 - 0x80, _0x25d46a - 0xd7);
|
||
this['laser3']['setPosition'](_0x2aacf1 - 0x9a, _0x25d46a - 0xd7);
|
||
this['tweens']['add']({
|
||
'targets': this['laser2'],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'x': '+=8',
|
||
'delay': _0xecb5a1
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['laser3'],
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'x': '-=8',
|
||
'delay': _0xecb5a1,
|
||
'completeDelay': _0xecb5a1 * 0x3,
|
||
'onComplete': function() {
|
||
this['runLaserScreenAnimation']();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x2752f8 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp_r', {
|
||
'right': 'sp_r2',
|
||
'left': 'sp03'
|
||
}, {
|
||
'sp03': 'right',
|
||
'sp_r2': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x295c75 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'sp_r',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'sp_r2', {
|
||
'right': 'sp_r',
|
||
'left': 'sp03'
|
||
}, {
|
||
'sp_r': 'right'
|
||
});
|
||
}
|
||
});
|
||
var _0x14017e = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'os01', {
|
||
'right': 'os02'
|
||
}, {
|
||
'os02': 'left',
|
||
'el': 'right'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
var _0x4cd2cd = !!_0xb43598['getEvent']('os01_sign');
|
||
this['add']['sprite'](_0x2aacf1 - 0x105, _0x25d46a - 0x3c, 'os01_secret_bg');
|
||
var _0x400986 = this['add']['sprite'](_0x2aacf1 - 0xfb, _0x25d46a - 0x68, 'os01_secret')['setAlpha'](_0x4cd2cd ? 0x1 : 0.001)['setName']('sign');
|
||
if (!_0x4cd2cd) {
|
||
_0x400986['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('os01_door');
|
||
this['removeTransition']('left');
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 - 0xf8, _0x25d46a - 0xeb, 'os01_door_0');
|
||
_0x39f1a0(this, this['door'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': 0x2,
|
||
'topRightX': 0x64,
|
||
'topRightY': 0x6,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': 0x190,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': 0x190
|
||
});
|
||
var _0x2ee5d0 = !!_0xb43598['getEvent']('os01_button');
|
||
this['button'] = this['add']['sprite'](_0x2aacf1 - 0x77, _0x25d46a - 0x25, 'os01_btn')['setVisible'](_0x2ee5d0)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button');
|
||
this['wires'] = this['add']['sprite'](_0x2aacf1 - 0x78, _0x25d46a - 0x13, 'os01_wires')['setVisible'](!_0x2ee5d0)['setInteractive']()['setName']('wires');
|
||
this['createDevice'](_0x2aacf1 - 0x32, _0x25d46a - 0x54);
|
||
var _0x26b77b = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x931f91, _0x503e5a) {
|
||
if (_0x503e5a['name'] === 'wires' && _0xb43598['isInventoryActive']('inv_button')) {
|
||
this['button']['setVisible'](!![]);
|
||
this['wires']['setVisible'](![]);
|
||
_0xb43598['setEvent']('os01_button', !![]);
|
||
_0x26b77b['removeItem']('inv_button');
|
||
} else if (_0x503e5a['name'] === 'sign') {
|
||
_0x5619f8(this, 'secret');
|
||
_0xb43598['setEvent']('os01_sign', !![]);
|
||
_0x503e5a['setAlpha'](0x1)['disableInteractive']();
|
||
} else if (_0x503e5a['name'] === 'button') {
|
||
this['openDoor']();
|
||
}
|
||
}, this);
|
||
},
|
||
'openDoor': function() {
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['door']['play']('os01_door');
|
||
this['addTransition']('left', 'el');
|
||
}
|
||
});
|
||
var _0x18a365 = {};
|
||
var _0x4e1e39 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'os02', {
|
||
'left': 'os01',
|
||
'right': 'os03',
|
||
'bottom': 'os04'
|
||
}, {
|
||
'os04': 'top',
|
||
'os03': 'left',
|
||
'os01': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('os02_door');
|
||
if (!_0xb43598['getEvent']('os02_key')) {
|
||
this['add']['sprite'](_0x2aacf1 - 0xbc, _0x25d46a + 0x55, 'os02_key')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('key');
|
||
}
|
||
if (!_0xb43598['getEvent']('os02_skull')) {
|
||
this['skull'] = this['add']['sprite'](_0x2aacf1 - 0x6a, _0x25d46a - 0x1c, 'os02_skull')['setName']('skull');
|
||
}
|
||
this['charges'] = [0x1, 0x7, 0x3];
|
||
this['runButton'] = this['add']['sprite'](_0x2aacf1 + 0xaa, _0x25d46a - 0x8f, 'os02_btn_start_off')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button');
|
||
this['rotate1'] = this['add']['sprite'](_0x2aacf1 + 0x113, _0x25d46a - 0x91, 'os02_btn_r_unpressed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('rotator')['setData']('rotation', 0x1);
|
||
this['rotate2'] = this['add']['sprite'](_0x2aacf1 + 0xee, _0x25d46a - 0x90, 'os02_btn_l_unpressed')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('rotator')['setData']('rotation', -0x1);
|
||
this['light'] = this['add']['sprite'](_0x2aacf1 + 0x45, _0x25d46a - 0x59, 'os02_light')['setVisible'](![]);
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 - 0x69, _0x25d46a - 0x30, 'os02_closed_door')['setName']('door');
|
||
this['door']['on']('animationcomplete', function() {
|
||
this['door']['disableInteractive']();
|
||
if (this['skull']) {
|
||
this['skull']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
_0xb43598['setEvent']('os02_door_opened', !![]);
|
||
_0x5178ad();
|
||
}, this);
|
||
this['system'] = this['add']['sprite'](0x0, 0x0, 'os02_system')['setData']('charge', _0xb43598['getEvent']('os02_system_charge') || 0x0);
|
||
this['ind1'] = this['add']['sprite'](0x1, 0x3b, 'os02_ind_1_off')['setData']('charge', 0x1);
|
||
this['ind3'] = this['add']['sprite'](-0x33, -0x1d, 'os02_ind_3_off')['setData']('charge', 0x3)['setAngle'](-0x3c);
|
||
this['ind7'] = this['add']['sprite'](0x34, -0x1d, 'os02_ind_7_off')['setData']('charge', 0x7)['setAngle'](0x3c);
|
||
this['systemContainer'] = this['add']['container'](_0x2aacf1 + 0xcc, _0x25d46a + 0x5, [this['system'], this['ind1'], this['ind3'], this['ind7']]);
|
||
this['loadSystem']();
|
||
var _0x50d290 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x4347b3, _0x5af8c7) {
|
||
if (_0x5af8c7['name'] === 'key') {
|
||
_0x50d290['addItem'](_0x5af8c7, 'inv_key6');
|
||
_0xb43598['setEvent']('os02_key', !![]);
|
||
this['children']['remove'](_0x5af8c7);
|
||
} else if (_0x5af8c7['name'] === 'button') {
|
||
_0x5619f8(this, 'os02_btn_os02');
|
||
this['runSystem']();
|
||
} else if (_0x5af8c7['name'] === 'rotator') {
|
||
_0x5619f8(this, 'os02_rotate_os02');
|
||
this['rotateSystem'](_0x5af8c7);
|
||
} else if (_0x5af8c7['name'] === 'door') {
|
||
_0x1967e9();
|
||
this['door']['play']('os02_door');
|
||
} else if (_0x5af8c7['name'] === 'skull') {
|
||
_0x50d290['addItem'](_0x5af8c7, 'inv_skull');
|
||
_0xb43598['setEvent']('os02_skull', !![]);
|
||
this['children']['remove'](_0x5af8c7);
|
||
}
|
||
}, this);
|
||
},
|
||
'rotateSystem': function(_0x3a04b9) {
|
||
_0x1967e9();
|
||
var _0x5602f7 = _0x3a04b9['texture']['key'];
|
||
_0x3a04b9['setTexture'](_0x5602f7['replace']('_unpressed', ''));
|
||
var _0x4d6f4d = _0x3a04b9['getData']('rotation');
|
||
var _0xdf8e7a = this['system']['getData']('charge') + _0x4d6f4d;
|
||
if (_0xdf8e7a < 0x0) {
|
||
_0xdf8e7a = this['charges']['length'] - 0x1;
|
||
} else if (_0xdf8e7a >= this['charges']['length']) {
|
||
_0xdf8e7a = 0x0;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': this['systemContainer'],
|
||
'angle': '+=' + 0x78 * _0x4d6f4d,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Cubic.easeOut',
|
||
'onComplete': function() {
|
||
this['system']['setData']('charge', _0xdf8e7a);
|
||
_0x3a04b9['setTexture'](_0x5602f7);
|
||
_0x5178ad();
|
||
_0xb43598['setEvent']('os02_system_charge', _0xdf8e7a);
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'loadSystem': function() {
|
||
var _0x42e4a2 = _0xb43598['getEvent']('os02_system_charge') || 0x0;
|
||
this['systemContainer']['setAngle'](_0x42e4a2 * 0x78);
|
||
var _0x1f9974 = _0xb43598['getEvent']('os04_last_charge') || -0x1;
|
||
if (_0x1f9974 >= 0x0) {
|
||
_0xb43598['setEvent']('os02_charge' + this['charges'][_0x42e4a2] + '_complete', _0x1f9974 == this['charges'][_0x42e4a2]);
|
||
}
|
||
this['ind1']['setTexture'](_0xb43598['getEvent']('os02_charge1_complete') ? 'os02_ind_1_on' : 'os02_ind_1_off');
|
||
this['ind3']['setTexture'](_0xb43598['getEvent']('os02_charge3_complete') ? 'os02_ind_3_on' : 'os02_ind_3_off');
|
||
this['ind7']['setTexture'](_0xb43598['getEvent']('os02_charge7_complete') ? 'os02_ind_7_on' : 'os02_ind_7_off');
|
||
_0xb43598['setEvent']('os04_last_charge', -0x1);
|
||
if (_0xb43598['getEvent']('os02_system_activated')) {
|
||
this['activateSystem']();
|
||
}
|
||
},
|
||
'runSystem': function() {
|
||
if (!(_0xb43598['getEvent']('os02_charge1_complete') && _0xb43598['getEvent']('os02_charge3_complete') && _0xb43598['getEvent']('os02_charge7_complete'))) {
|
||
_0xb43598['setEvent']('os02_charge1_complete', ![]);
|
||
_0xb43598['setEvent']('os02_charge3_complete', ![]);
|
||
_0xb43598['setEvent']('os02_charge7_complete', ![]);
|
||
this['loadSystem']();
|
||
_0x5619f8(this, 'os02_error_os02');
|
||
return;
|
||
}
|
||
_0x5619f8(this, 'os02_solve_os02');
|
||
this['activateSystem']();
|
||
},
|
||
'activateSystem': function() {
|
||
this['runButton']['setTexture']('os02_btn_start_on')['disableInteractive']();
|
||
this['rotate1']['disableInteractive']();
|
||
this['rotate2']['disableInteractive']();
|
||
this['light']['setVisible'](!![]);
|
||
this['door']['setTexture']('os02_door_0')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['door']['y'] += 0x9;
|
||
_0xb43598['setEvent']('os02_system_activated', !![]);
|
||
if (_0xb43598['getEvent']('os02_door_opened')) {
|
||
this['door']['setTexture']('os02_door_13')['disableInteractive']();
|
||
if (!_0xb43598['getEvent']('os02_skull') && this['skull']) {
|
||
this['skull']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
}
|
||
}
|
||
});
|
||
var _0x1a9bae = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'os03', {
|
||
'left': 'os02'
|
||
}, {
|
||
'os02': 'right'
|
||
}, null, {
|
||
'tr0201b': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
var _0x4c0bde = this['add']['sprite'](_0x2aacf1 + 0xe1, _0x25d46a - 0xa, 'portal_1')['setScale'](0x1, 0.8)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('portal');
|
||
var _0x3adaab = this['add']['sprite'](_0x2aacf1 + 0xe1, _0x25d46a - 0xa, 'os03_door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
if (_0xb43598['getEvent']('os03_door_open')) {
|
||
_0x3adaab['setVisible'](![]);
|
||
_0x4c0bde['play']('portal');
|
||
}
|
||
this['add']['sprite'](_0x2aacf1 + 0xdc, _0x25d46a - 0x14, 'os03_platband');
|
||
this['createDoorMask'](_0x3adaab);
|
||
this['input']['on']('gameobjectdown', function(_0x2064cf, _0x4200c5) {
|
||
if (_0x4200c5['name'] === 'portal') {
|
||
_0x36f2e8(this, 'tr0201b', 'transition_portal');
|
||
} else if (_0x4200c5['name'] === 'door') {
|
||
_0x1967e9();
|
||
_0x4c0bde['play']('portal');
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['tweens']['add']({
|
||
'targets': _0x3adaab,
|
||
'x': '+=300',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0xb43598['setEvent']('os03_door_open', !![]);
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
}
|
||
}, this);
|
||
},
|
||
'createDoorMask': function(_0x59f5cb) {
|
||
var _0x5f0243 = {
|
||
'topLeftX': -0x55,
|
||
'topLeftY': -0xd2,
|
||
'topRightX': 0x55,
|
||
'topRightY': -0xd2,
|
||
'bottomLeftX': -0x55,
|
||
'bottomLeftY': 0xc8,
|
||
'bottomRightX': 0x55,
|
||
'bottomRightY': 0xc8
|
||
};
|
||
var _0x54b5db = this['make']['mesh']({
|
||
'key': 'phaser2',
|
||
'x': _0x59f5cb['x'],
|
||
'y': _0x59f5cb['y'],
|
||
'vertices': [_0x5f0243['topLeftX'], _0x5f0243['topLeftY'], _0x5f0243['bottomLeftX'], _0x5f0243['bottomLeftY'], _0x5f0243['bottomRightX'], _0x5f0243['bottomRightY'], _0x5f0243['topLeftX'], _0x5f0243['topLeftY'], _0x5f0243['bottomRightX'], _0x5f0243['bottomRightY'], _0x5f0243['topRightX'], _0x5f0243['topRightY']],
|
||
'uv': [0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0],
|
||
'add': ![]
|
||
});
|
||
_0x59f5cb['mask'] = new Phaser['Display']['Masks']['GeometryMask'](this, _0x54b5db);
|
||
}
|
||
});
|
||
var _0x1c7894 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'os04', {
|
||
'top': 'os02'
|
||
}, {
|
||
'os02': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0x20, _0x25d46a - 0xa0, 'os04_lever_0')['setName']('lever');
|
||
this['button_left'] = this['add']['sprite'](_0x2aacf1 - 0x12f, _0x25d46a - 0x5e, 'os04_btn_off')['setName']('button')['setData']('type', 'left')['setData']('enabled', ![]);
|
||
this['button_right'] = this['add']['sprite'](_0x2aacf1 + 0x6c, _0x25d46a - 0x5e, 'os04_btn_off')['setName']('button')['setData']('type', 'right')['setData']('enabled', ![]);
|
||
this['button_bottom'] = this['add']['sprite'](_0x2aacf1 - 0x57, _0x25d46a + 0x6c, 'os04_btn_off')['setName']('button')['setData']('type', 'bottom')['setData']('enabled', ![]);
|
||
this['switch_left'] = this['add']['sprite'](_0x2aacf1 - 0xd8, _0x25d46a - 0x95, 'os04_switch_switch')['setData']('baseC', _0x25d46a - 0x95)['setName']('switch')['setData']('type', 'left');
|
||
this['add']['sprite'](_0x2aacf1 - 0xd8, _0x25d46a - 0x95, 'os04_switch');
|
||
this['switch_right'] = this['add']['sprite'](_0x2aacf1 + 0x8d, _0x25d46a - 0x8c, 'os04_switch_switch')['setData']('baseC', _0x25d46a - 0x8c)['setName']('switch')['setData']('type', 'right');
|
||
this['add']['sprite'](_0x2aacf1 + 0x8d, _0x25d46a - 0x8c, 'os04_switch');
|
||
this['switch_bottom'] = this['add']['sprite'](_0x2aacf1 - 0x2a, _0x25d46a - 0x18, 'os04_switch_switch')['setData']('baseC', _0x2aacf1 - 0x2a)['setName']('switch')['setData']('type', 'bottom')['setAngle'](-0x5c);
|
||
this['add']['sprite'](_0x2aacf1 - 0x2a, _0x25d46a - 0x18, 'os04_switch')['setAngle'](-0x5c);
|
||
this['add']['sprite'](_0x2aacf1 - 0x67, _0x25d46a - 0x7e, 'os04_indicator_off');
|
||
if (!_0xb43598['getEvent']('flp02_laser_shot_complete')) {
|
||
return;
|
||
}
|
||
this['lever']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['button_left']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['button_right']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['button_bottom']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['switch_left']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['switch_right']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['switch_bottom']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['createAnimation']('os04_laser');
|
||
this['createAnimation']('os04_lever');
|
||
_0xb43598['setEvent']('os04_last_charge', -0x1);
|
||
this['mixerTop'] = this['add']['sprite'](_0x2aacf1 - 0x64, _0x25d46a - 0xd3, 'os04_mixer_top')['setData']('baseY', _0x25d46a - 0xd3)['setVisible'](![]);
|
||
_0x39f1a0(this, this['mixerTop'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -this['mixerTop']['height'] / 0x2,
|
||
'topRightX': 0x64,
|
||
'topRightY': -this['mixerTop']['height'] / 0x2,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['mixerTop']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['mixerTop']['height'] / 0x2
|
||
});
|
||
this['add']['sprite'](_0x2aacf1 - 0x61, _0x25d46a + 0x6d, 'os04_laser_activated');
|
||
this['indicator'] = this['add']['sprite'](_0x2aacf1 - 0x50, _0x25d46a - 0xa7, 'os04_indicator_plus')['setData']('value', 0x0)['setData']('full_y', _0x25d46a - 0xa7);
|
||
_0x39f1a0(this, this['indicator'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -this['indicator']['height'] / 0x2,
|
||
'topRightX': 0x64,
|
||
'topRightY': -this['indicator']['height'] / 0x2,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['indicator']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['indicator']['height'] / 0x2
|
||
});
|
||
this['updateIndicator'](0x0, !![]);
|
||
this['add']['sprite'](_0x2aacf1 - 0x1e, _0x25d46a + 0xd2, 'os04_laser_0')['play']('os04_laser');
|
||
this['power_left'] = this['add']['sprite'](_0x2aacf1 - 0x110, _0x25d46a - 0x93, 'os04_power_left_plus');
|
||
this['power_right'] = this['add']['sprite'](_0x2aacf1 + 0x5a, _0x25d46a - 0x93, 'os04_power_right_plus');
|
||
this['power_bottom'] = this['add']['sprite'](_0x2aacf1 - 0x19, _0x25d46a + 0x10, 'os04_power_bottom_plus');
|
||
this['setSwitch'](this['switch_left'], _0xb43598['getEvent']('os04_switch_left'));
|
||
this['setSwitch'](this['switch_right'], _0xb43598['getEvent']('os04_switch_right'));
|
||
this['setSwitch'](this['switch_bottom'], _0xb43598['getEvent']('os04_switch_bottom'));
|
||
this['mixer_left'] = this['add']['sprite'](_0x2aacf1 - 0xb4, _0x25d46a - 0x54, 'os04_mixer_left')['setData']('value', 0x1)['setVisible'](![]);
|
||
_0x39f1a0(this, this['mixer_left'], {
|
||
'topLeftX': -this['mixer_left']['width'] / 0x2,
|
||
'topLeftY': -0x64,
|
||
'topRightX': this['mixer_left']['width'] / 0x2,
|
||
'topRightY': -0x64,
|
||
'bottomLeftX': -this['mixer_left']['width'] / 0x2,
|
||
'bottomLeftY': 0x64,
|
||
'bottomRightX': this['mixer_left']['width'] / 0x2,
|
||
'bottomRightY': 0x64
|
||
});
|
||
this['mixer_right'] = this['add']['sprite'](_0x2aacf1 - 0x14, _0x25d46a - 0x56, 'os04_mixer_right')['setData']('value', 0x1)['setVisible'](![]);
|
||
_0x39f1a0(this, this['mixer_right'], {
|
||
'topLeftX': -this['mixer_right']['width'] / 0x2,
|
||
'topLeftY': -0x64,
|
||
'topRightX': this['mixer_right']['width'] / 0x2,
|
||
'topRightY': -0x64,
|
||
'bottomLeftX': -this['mixer_right']['width'] / 0x2,
|
||
'bottomLeftY': 0x64,
|
||
'bottomRightX': this['mixer_right']['width'] / 0x2,
|
||
'bottomRightY': 0x64
|
||
});
|
||
this['mixer_bottom'] = this['add']['sprite'](_0x2aacf1 - 0x66, _0x25d46a - 0x1d, 'os04_mixer_bottom')['setData']('value', 0x1)['setVisible'](![]);
|
||
_0x39f1a0(this, this['mixer_bottom'], {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -this['mixer_bottom']['height'] / 0x2,
|
||
'topRightX': 0x64,
|
||
'topRightY': -this['mixer_bottom']['height'] / 0x2,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': this['mixer_bottom']['height'] / 0x2,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': this['mixer_bottom']['height'] / 0x2
|
||
});
|
||
if (_0xb43598['getEvent']('os02_system_activated')) {
|
||
this['disablePuzzle']();
|
||
}
|
||
var _0x3f87b8 = null;
|
||
_0x5619f8(this, 'sp02_laser_rays', !![]);
|
||
this['input']['on']('gameobjectdown', function(_0x5f0862, _0x46720e) {
|
||
if (_0x46720e['name'] === 'lever') {
|
||
var _0x4b468b = this['indicator']['getData']('value');
|
||
if (!_0x4b468b) return;
|
||
_0x5619f8(this, 'os04_lever_os04');
|
||
this['pushCharge']();
|
||
this['lever']['play']('os04_lever');
|
||
} else if (_0x46720e['name'] === 'switch') {
|
||
_0x5619f8(this, 'os04_polarity_os04');
|
||
this['toggleSwitch'](_0x46720e);
|
||
} else if (_0x46720e['name'] === 'button') {
|
||
_0x5619f8(this, 'os04_btn_os04');
|
||
_0x3f87b8 = _0x46720e;
|
||
this['pressButton'](_0x46720e);
|
||
}
|
||
}, this);
|
||
},
|
||
'disablePuzzle': function() {
|
||
this['button_left']['disableInteractive']();
|
||
this['button_right']['disableInteractive']();
|
||
this['button_bottom']['disableInteractive']();
|
||
this['switch_left']['disableInteractive']();
|
||
this['switch_right']['disableInteractive']();
|
||
this['switch_bottom']['disableInteractive']();
|
||
this['lever']['disableInteractive']();
|
||
},
|
||
'pushCharge': function() {
|
||
var _0x2fce5a = this['indicator']['getData']('value');
|
||
if (!_0x2fce5a) return;
|
||
_0x1967e9();
|
||
this['updateIndicator'](0x0, !![]);
|
||
this['button_left']['setTexture']('os04_btn_off')['setData']('enabled', ![]);
|
||
this['button_right']['setTexture']('os04_btn_off')['setData']('enabled', ![]);
|
||
this['button_bottom']['setTexture']('os04_btn_off')['setData']('enabled', ![]);
|
||
this['mixer_left']['setPosition'](_0x2aacf1 - 0xb4, _0x25d46a - 0x54)['setVisible'](![]);
|
||
this['mixer_right']['setPosition'](_0x2aacf1 - 0x14, _0x25d46a - 0x56)['setVisible'](![]);
|
||
this['mixer_bottom']['setPosition'](_0x2aacf1 - 0x66, _0x25d46a - 0x1d)['setVisible'](![]);
|
||
this['mixerTop']['y'] = this['mixerTop']['getData']('baseY') + this['mixerTop']['height'];
|
||
this['mixerTop']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['mixerTop'],
|
||
'y': '-=' + this['mixerTop']['height'] * 0x3,
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'ease': 'Quart.easeIn',
|
||
'onComplete': function() {
|
||
this['mixerTop']['setVisible'](![]);
|
||
_0xb43598['setEvent']('os04_last_charge', _0x2fce5a);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'updateIndicator': function(_0x573173, _0x3663eb) {
|
||
var _0x5b03ef = this['indicator']['getData']('value');
|
||
if (_0x3663eb) {
|
||
_0x5b03ef = _0x573173;
|
||
} else {
|
||
_0x5b03ef += _0x573173;
|
||
}
|
||
if (_0x5b03ef > 0x7) _0x5b03ef = 0x7;
|
||
var _0x5f2196 = this['indicator']['getData']('full_y');
|
||
this['indicator']['setTexture'](_0x5b03ef >= 0x0 ? 'os04_indicator_plus' : 'os04_indicator_minus');
|
||
this['indicator']['y'] = _0x5f2196 + (0x1 - Math['abs'](_0x5b03ef) / 0x9) * this['indicator']['height'];
|
||
this['indicator']['setData']('value', _0x5b03ef);
|
||
},
|
||
'toggleSwitch': function(_0x564687) {
|
||
var _0x5dadad = !_0x564687['getData']('state');
|
||
this['setSwitch'](_0x564687, _0x5dadad);
|
||
_0xb43598['setEvent']('os04_switch_' + _0x564687['getData']('type'), _0x5dadad);
|
||
},
|
||
'setSwitch': function(_0x2e9beb, _0x4024d3) {
|
||
if (typeof _0x4024d3 === 'undefined') _0x4024d3 = !![];
|
||
var _0x538b8f = !_0x4024d3 ? 0x5 : -0x5;
|
||
if (_0x2e9beb['getData']('type') != 'bottom') {
|
||
_0x2e9beb['y'] = _0x2e9beb['getData']('baseC') + _0x538b8f;
|
||
} else {
|
||
_0x2e9beb['x'] = _0x2e9beb['getData']('baseC') + _0x538b8f;
|
||
}
|
||
var _0x4a4eb4 = _0x2e9beb['getData']('type');
|
||
this['power_' + _0x4a4eb4]['setTexture']('os04_power_' + _0x4a4eb4 + '_' + (_0x4024d3 ? 'plus' : 'minus'));
|
||
_0x2e9beb['setData']('state', _0x4024d3);
|
||
},
|
||
'pressButton': function(_0x442d6b) {
|
||
if (_0x442d6b['getData']('enabled')) return;
|
||
_0x1967e9();
|
||
_0x442d6b['setTexture']('os04_btn_on');
|
||
_0x442d6b['setData']('enabled', !![]);
|
||
var _0x4bec22 = _0x442d6b['getData']('type');
|
||
var _0x5423e0 = this['switch_' + _0x4bec22];
|
||
var _0x1a9617 = this['mixer_' + _0x4bec22];
|
||
_0x1a9617['setTexture']('os04_mixer_' + _0x4bec22 + (_0x5423e0['getData']('state') ? '' : '_minus'))['setVisible'](!![]);
|
||
var _0x22740a = '+=0',
|
||
_0x1c1d07 = '+=0',
|
||
_0x8ac4cc = 0x0;
|
||
switch (_0x4bec22) {
|
||
case 'left':
|
||
_0x1a9617['x'] -= _0x1a9617['width'];
|
||
_0x22740a = '+=' + _0x1a9617['width'];
|
||
_0x8ac4cc = 0x3;
|
||
break;
|
||
case 'right':
|
||
_0x1a9617['x'] += _0x1a9617['width'];
|
||
_0x22740a = '-=' + _0x1a9617['width'];
|
||
_0x8ac4cc = 0x4;
|
||
break;
|
||
case 'bottom':
|
||
_0x1a9617['y'] += _0x1a9617['height'];
|
||
_0x1c1d07 = '-=' + _0x1a9617['height'];
|
||
_0x8ac4cc = 0x2;
|
||
break;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': _0x1a9617,
|
||
'x': _0x22740a,
|
||
'y': _0x1c1d07,
|
||
'duration': _0xecb5a1 / 0x2,
|
||
'onComplete': function() {
|
||
this['updateIndicator'](_0x8ac4cc * (_0x5423e0['getData']('state') ? 0x1 : -0x1));
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'before_transition': function() {
|
||
_0x11c867('sp02_laser_rays');
|
||
}
|
||
});
|
||
var _0x5b83b7 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'floor': null,
|
||
'bgHeight': 0x248,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'el', {}, {
|
||
'flp01': 'left',
|
||
'os01': 'left'
|
||
}, null, {
|
||
'sp01': 'portal'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
this['createAnimation']('el_door');
|
||
this['createAnimation']('el_door_close');
|
||
this['doorOpen'] = !![];
|
||
var _0x5d38ee = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'el_bg1');
|
||
var _0x147494 = this['add']['sprite'](_0x2aacf1, _0x25d46a - this['bgHeight'] + 0xa, 'el_bg2');
|
||
var _0x28d271 = this['add']['sprite'](_0x2aacf1, _0x25d46a - this['bgHeight'] * 0x2 + 0xf, 'el_bg3');
|
||
var _0x128ef2 = this['add']['sprite'](_0x2aacf1, _0x25d46a - this['bgHeight'] * 0x3 + 0x14, 'el_bg4');
|
||
this['bgContainer'] = this['add']['container'](0x0, 0x0, [_0x5d38ee, _0x147494, _0x28d271, _0x128ef2]);
|
||
if (_0x280656['lastScene'] === 'sp01') {
|
||
this['bgContainer']['y'] = 0x0;
|
||
this['floor'] = 0x1;
|
||
} else if (_0x280656['lastScene'] === 'flp01') {
|
||
this['bgContainer']['y'] = this['bgHeight'] * 1.5;
|
||
this['floor'] = 0x2;
|
||
} else if (_0x280656['lastScene'] === 'os01') {
|
||
this['bgContainer']['y'] = this['bgHeight'] * 0x2 * 1.5;
|
||
this['floor'] = 0x3;
|
||
}
|
||
},
|
||
'extra_create': function() {
|
||
this['floor1Button'] = this['add']['sprite'](_0x2aacf1 + 0xe1, _0x25d46a - 0x4a, 'elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('floor1')['setData']('floor', 0x1);
|
||
this['floor2Button'] = this['add']['sprite'](_0x2aacf1 + 0xe1, _0x25d46a - 0x66, 'elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('floor2')['setData']('floor', 0x2);
|
||
this['buttonOk'] = !!_0xb43598['getEvent']('elsp_button');
|
||
this['broken'] = this['add']['sprite'](_0x2aacf1 + 0xeb, _0x25d46a - 0x78, 'elsp_btn_broken')['setVisible'](!this['buttonOk']);
|
||
this['floor3Button'] = this['add']['sprite'](_0x2aacf1 + 0xe1, _0x25d46a - 0x82, 'elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('floor3')['setVisible'](this['buttonOk'])['setData']('floor', 0x3);
|
||
if (!this['buttonOk']) {
|
||
this['brokenZone'] = this['addZone']({
|
||
'x': _0x2aacf1 + 0xd4,
|
||
'y': _0x25d46a - 0x8f,
|
||
'width': 0x1a,
|
||
'height': 0x1a,
|
||
'name': 'broken',
|
||
'cursor': 'default'
|
||
});
|
||
}
|
||
this['door'] = this['add']['sprite'](_0x2aacf1 + 0x157, _0x25d46a + 0xf8, 'el_door_10')['setOrigin'](0.5, 0x1);
|
||
this['door']['on']('animationcomplete', function(_0xcc69a6) {
|
||
if (_0xcc69a6['key'] === 'el_door') {
|
||
_0x5178ad();
|
||
}
|
||
}, this);
|
||
this['add']['sprite'](_0x2aacf1 + 0x157, _0x25d46a - 0xe0, 'el_door_mask');
|
||
this['add']['sprite'](_0x2aacf1 + 0x147, _0x25d46a - 0xc3, 'el_indicator_off');
|
||
this['indicator_1'] = this['add']['sprite'](_0x2aacf1 + 0x123, _0x25d46a - 0xb1, 'el_indicator_1');
|
||
this['indicator_1to2'] = this['add']['sprite'](_0x2aacf1 + 0x134, _0x25d46a - 0xbb, 'el_indicator_1to2');
|
||
this['indicator_2'] = this['add']['sprite'](_0x2aacf1 + 0x147, _0x25d46a - 0xc3, 'el_indicator_2');
|
||
this['indicator_2to3'] = this['add']['sprite'](_0x2aacf1 + 0x159, _0x25d46a - 0xcc, 'el_indicator_2to3');
|
||
this['indicator_3'] = this['add']['sprite'](_0x2aacf1 + 0x16c, _0x25d46a - 0xd4, 'el_indicator_3');
|
||
this['setFloor'](this['floor']);
|
||
var _0x528416 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x398904, _0x4e75d5) {
|
||
if (this['floor'] == _0x4e75d5['getData']('floor')) return;
|
||
if (_0x4e75d5['name'] === 'floor1' || _0x4e75d5['name'] == 'floor2' || _0x4e75d5['name'] == 'floor3') {
|
||
_0x5619f8(this, 'el_press_el_btn');
|
||
_0x5619f8(this, 'el_move', !![]);
|
||
this['moveTo'](_0x4e75d5['getData']('floor'));
|
||
} else if (_0x4e75d5['name'] === 'broken') {
|
||
if (!_0xb43598['isInventoryActive']('inv_button')) return;
|
||
_0xb43598['setEvent']('elsp_button', !![]);
|
||
_0x528416['removeItem']('inv_button', 'el_insert_el_btn');
|
||
this['broken']['setVisible'](![]);
|
||
this['floor3Button']['setVisible'](!![]);
|
||
this['brokenZone']['disableInteractive']()['setVisible'](![]);
|
||
}
|
||
}, this);
|
||
},
|
||
'setFloor': function(_0x3324c9) {
|
||
this['floor1Button']['setTexture']('elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['floor2Button']['setTexture']('elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
if (this['buttonOk']) {
|
||
this['floor3Button']['setTexture']('elsp_btn')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
this['indicator_1to2']['setVisible'](![]);
|
||
this['indicator_2']['setVisible'](![]);
|
||
this['indicator_2to3']['setVisible'](![]);
|
||
this['indicator_3']['setVisible'](![]);
|
||
if (_0x3324c9 == 0x2) {
|
||
this['addTransition']('right', 'flp01');
|
||
this['indicator_1to2']['setVisible'](!![]);
|
||
this['indicator_2']['setVisible'](!![]);
|
||
} else if (_0x3324c9 == 0x3) {
|
||
if (this['buttonOk']) {}
|
||
this['indicator_1to2']['setVisible'](!![]);
|
||
this['indicator_2']['setVisible'](!![]);
|
||
this['indicator_2to3']['setVisible'](!![]);
|
||
this['indicator_3']['setVisible'](!![]);
|
||
this['addTransition']('right', 'os01');
|
||
} else {
|
||
this['addZone']({
|
||
'default': 'right',
|
||
'name': 'portal'
|
||
});
|
||
}
|
||
this['floor'] = _0x3324c9;
|
||
},
|
||
'moveTo': function(_0x438e36) {
|
||
if (_0x438e36 === this['floor']) return;
|
||
_0x1967e9();
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
var _0xb0f461 = this['floor'] < _0x438e36;
|
||
this['setDoorOpen'](![]);
|
||
var _0x25c943 = this['floor'] + (_0xb0f461 ? 0x1 : -0x1);
|
||
this['floor' + _0x438e36 + 'Button']['setTexture']('elsp_btn_pressed');
|
||
this['tweens']['add']({
|
||
'targets': this['bgContainer'],
|
||
'y': (_0xb0f461 ? '+=' : '-=') + this['bgHeight'] * 1.5,
|
||
'duration': _0xecb5a1 * 0xc,
|
||
'onComplete': function() {
|
||
if (Math['abs'](_0x438e36 - this['floor']) > 0x1) {
|
||
this['setFloor'](_0x25c943);
|
||
this['moveTo'](_0x438e36);
|
||
} else {
|
||
_0x11c867('el_move');
|
||
_0x5619f8(this, 'el_stop');
|
||
this['setFloor'](_0x438e36);
|
||
this['setDoorOpen'](!![]);
|
||
this['floor' + _0x438e36 + 'Button']['setTexture']('elsp_btn');
|
||
}
|
||
} ['bind'](this)
|
||
});
|
||
var _0x4c4163;
|
||
switch (_0x25c943) {
|
||
case 0x1:
|
||
_0x4c4163 = this['indicator_1to2'];
|
||
break;
|
||
case 0x2:
|
||
_0x4c4163 = _0xb0f461 ? this['indicator_1to2'] : this['indicator_2to3'];
|
||
break;
|
||
case 0x3:
|
||
_0x4c4163 = this['indicator_2to3'];
|
||
break;
|
||
}
|
||
_0x4c4163['setVisible'](![]);
|
||
if (!_0xb0f461) {
|
||
this['indicator_' + this['floor']]['setVisible'](![]);
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': _0x4c4163,
|
||
'duration': _0xecb5a1,
|
||
'repeat': 0xb,
|
||
'alpha': 0x1,
|
||
'onRepeat': function() {
|
||
_0x4c4163['setVisible'](!_0x4c4163['visible']);
|
||
}
|
||
});
|
||
},
|
||
'setDoorOpen': function(_0x26730b, _0x3165b7) {
|
||
if (_0x26730b == this['doorOpen']) return;
|
||
if (!_0x26730b) {
|
||
this['removeTransition']('right');
|
||
} else {
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
if (this['floor'] != 0x1) {
|
||
var _0x5e7790 = {
|
||
2: 'flp01',
|
||
3: 'os01'
|
||
};
|
||
this['addTransition']('right', _0x5e7790[this['floor']]);
|
||
} else {
|
||
this['addZone']({
|
||
'default': 'right',
|
||
'name': 'portal'
|
||
});
|
||
}
|
||
}
|
||
_0x1967e9();
|
||
this['door']['play'](!_0x26730b ? 'el_door_close' : 'el_door');
|
||
this['doorOpen'] = _0x26730b;
|
||
}
|
||
});
|
||
var _0x21b10f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'lch01', {
|
||
'top': 'lch03'
|
||
}, {
|
||
'lch03': 'bottom'
|
||
}, null, {
|
||
'tr0502': 'portal',
|
||
'lch02': 'portal_puzzle'
|
||
});
|
||
},
|
||
'before_bg_create': function() {
|
||
this['back1'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'lch02');
|
||
this['back2'] = this['add']['sprite'](_0x2aacf1 + _0x4a8abc, _0x25d46a, 'lch02');
|
||
},
|
||
'extra_create': function() {
|
||
this['createAnimation']('portal');
|
||
this['createAnimation']('lch01_lever');
|
||
this['createAnimation']('lch01_hatch');
|
||
this['createAnimation']('lch01_door');
|
||
if (!_0x3c58e9['rooms']) {
|
||
_0x3c58e9['generate']();
|
||
}
|
||
this['currentDigit'] = 0x0;
|
||
this['numbers'] = [0x0, 0x0];
|
||
var _0x547be5 = this['add']['sprite'](_0x2aacf1 - 0x148, _0x25d46a + 0x23, 'portal_1')['setScale'](0.42, 1.2)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('portal');
|
||
_0x39f1a0(this, _0x547be5, {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -0x104,
|
||
'topRightX': 0x64,
|
||
'topRightY': -0xaf,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': 0x104,
|
||
'bottomRightX': 0x6e,
|
||
'bottomRightY': 0x78
|
||
});
|
||
var _0x3ed424 = this['add']['sprite'](_0x2aacf1 - 0x148, _0x25d46a - 0xbe, 'lch01_door_0')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
_0x3ed424['on']('animationcomplete', function() {
|
||
_0x5178ad();
|
||
}, this);
|
||
_0x39f1a0(this, _0x3ed424, {
|
||
'topLeftX': -0x64,
|
||
'topLeftY': -0x23,
|
||
'topRightX': 0x64,
|
||
'topRightY': 0x1e,
|
||
'bottomLeftX': -0x64,
|
||
'bottomLeftY': 0x1f4,
|
||
'bottomRightX': 0x64,
|
||
'bottomRightY': 0x1f4
|
||
});
|
||
this['lever'] = this['add']['sprite'](_0x2aacf1 - 0x8a, _0x25d46a - 0x1e, 'lch01_lever_0')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('lever')['setScale'](0.29);
|
||
this['lever']['on']('animationcomplete', function() {
|
||
var _0xccae2e = this['numbers'][0x0] * 0xa + this['numbers'][0x1];
|
||
if (_0xccae2e === _0x3c58e9['rooms']['length']) {
|
||
_0xb43598['setEvent']('lch01_hatch_open', !![]);
|
||
this['openHatch']();
|
||
} else {
|
||
_0x5619f8(this, 'lch01_mix_rooms_lch01');
|
||
this['regenerateRooms']();
|
||
}
|
||
}, this);
|
||
this['puzzle'] = this['addZone']({
|
||
'x': _0x2aacf1 - 0xc8,
|
||
'y': _0x25d46a - 0x96,
|
||
'width': 0x78,
|
||
'height': 0x46,
|
||
'name': 'puzzle'
|
||
});
|
||
this['addZone']({
|
||
'x': _0x2aacf1 + 0x64,
|
||
'y': _0x25d46a - 0xaa,
|
||
'width': 0x82,
|
||
'height': 0x12c,
|
||
'name': 'portal_puzzle'
|
||
});
|
||
this['add']['sprite'](_0x2aacf1 - 0xc8, _0x25d46a + 0xe4, 'lch01_hatch_opened');
|
||
this['sign'] = this['add']['sprite'](_0x2aacf1 - 0xc8, _0x25d46a + 0xda, 'lch01_secret_sign')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('sign');
|
||
this['hatch'] = this['add']['sprite'](_0x2aacf1 - 0x92, _0x25d46a + 0xe3, 'lch01_hatch_0');
|
||
if (_0xb43598['getEvent']('lch01_hatch_open')) {
|
||
this['openHatch'](!![]);
|
||
}
|
||
this['createShadowLayer']();
|
||
var _0x39e62c = [];
|
||
var _0x5736be = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'lch01_panel_bg')['setInteractive']();
|
||
_0x39e62c['push'](_0x5736be);
|
||
var _0x3e10b5 = [
|
||
[0x1de, 0x169],
|
||
[0x1bc, 0xef],
|
||
[0x1dd, 0xef],
|
||
[0x1fd, 0xee],
|
||
[0x1bd, 0x118],
|
||
[0x1de, 0x116],
|
||
[0x1fc, 0x117],
|
||
[0x1be, 0x140],
|
||
[0x1dd, 0x140],
|
||
[0x1fd, 0x13f]
|
||
];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0xa; _0x5a8aa6++) {
|
||
var _0x1b4d8f = this['add']['sprite'](_0x3e10b5[_0x5a8aa6][0x0], _0x3e10b5[_0x5a8aa6][0x1], 'lch01_panel_btn_' + _0x5a8aa6)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('button')['setData']('num', _0x5a8aa6);
|
||
_0x39e62c['push'](_0x1b4d8f);
|
||
}
|
||
this['number0'] = this['add']['sprite'](_0x2aacf1 - 0x50, _0x25d46a - 0x14, 'lch01_panel_numbers', 'n0');
|
||
this['number1'] = this['add']['sprite'](_0x2aacf1 - 0x14, _0x25d46a - 0x14, 'lch01_panel_numbers', 'n0');
|
||
_0x39e62c['push'](this['number0'], this['number1']);
|
||
this['panelContainer'] = this['add']['container'](0x0, 0x0, _0x39e62c)['setData']('startX', _0x4a8abc)['setData']('deltaX', _0x4a8abc)['setVisible'](![]);
|
||
this['input']['on']('gameobjectdown', function(_0xe632f, _0x1f1237) {
|
||
if (_0x1f1237['name'] === 'door') {
|
||
_0x1967e9();
|
||
_0x547be5['play']('portal');
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
_0x3ed424['play']('lch01_door');
|
||
_0x1f1237['disableInteractive']();
|
||
} else if (_0x1f1237['name'] === 'portal') {
|
||
_0x36f2e8(this, 'tr0502', 'transition_portal');
|
||
} else if (_0x1f1237['name'] === 'puzzle') {
|
||
this['showShadowLayer'](this['panelContainer']);
|
||
} else if (_0x1f1237['name'] === 'button') {
|
||
_0x5619f8(this, 'lch01_btn_lch01');
|
||
var _0x4fc8c6 = _0x1f1237['getData']('num');
|
||
this['numbers'][this['currentDigit']] = _0x4fc8c6;
|
||
this['number' + this['currentDigit']]['setFrame']('n' + _0x4fc8c6);
|
||
this['currentDigit']++;
|
||
if (this['currentDigit'] > 0x1) this['currentDigit'] = 0x0;
|
||
} else if (_0x1f1237['name'] === 'sign') {
|
||
_0x1f1237['setTexture']('lch01_secret_sign_on')['disableInteractive']();
|
||
_0x5619f8(this, 'secret');
|
||
_0xb43598['setEvent']('lch01_sign', !![]);
|
||
} else if (_0x1f1237['name'] === 'lever') {
|
||
_0x1967e9();
|
||
_0x5619f8(this, 'lch01_lever_lch01');
|
||
this['lever']['play']('lch01_lever');
|
||
}
|
||
}, this);
|
||
},
|
||
'regenerateRooms': function() {
|
||
_0x1967e9();
|
||
_0xb43598['input']['setDefaultCursor']('default');
|
||
this['back1']['x'] = _0x2aacf1;
|
||
this['back2']['x'] = _0x2aacf1 + _0x4a8abc;
|
||
this['tweens']['add']({
|
||
'targets': [this['back1'], this['back2']],
|
||
'x': '-=' + _0x4a8abc,
|
||
'duration': _0xecb5a1 * 3.15,
|
||
'repeat': 0x6,
|
||
'onComplete': function() {
|
||
_0x3c58e9['generate'](!![]);
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
},
|
||
'openHatch': function(_0x31987b) {
|
||
if (_0x31987b) {
|
||
this['hatch']['setTexture']('lch01_hatch_8');
|
||
if (_0xb43598['getEvent']('lch01_sign')) {
|
||
this['sign']['setTexture']('lch01_secret_sign_on')['disableInteractive']();
|
||
}
|
||
} else {
|
||
this['hatch']['play']('lch01_hatch');
|
||
}
|
||
_0x5178ad();
|
||
this['puzzle']['disableInteractive']();
|
||
this['lever']['disableInteractive']();
|
||
}
|
||
});
|
||
var _0x3c58e9 = {
|
||
'rooms': null,
|
||
'current': 0x0,
|
||
'generate': function(_0x200744) {
|
||
if (!_0x200744) {
|
||
_0x3c58e9['rooms'] = _0xb43598['getEvent']('lch02_rooms');
|
||
if (_0x3c58e9['rooms']) {
|
||
return;
|
||
}
|
||
}
|
||
var _0x3d81e0 = parseInt(Math['random']() * 0x3e8) % 0xf + 0xa;
|
||
_0x3c58e9['rooms'] = [];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x3d81e0; _0x5a8aa6++) {
|
||
var _0x4ad135 = Math['random']() > 0.5;
|
||
_0x3c58e9['rooms']['push'](_0x4ad135);
|
||
}
|
||
_0x3c58e9['saveRooms']();
|
||
},
|
||
'saveRooms': function() {
|
||
_0xb43598['setEvent']('lch02_rooms', _0x3c58e9['rooms']);
|
||
},
|
||
'init': function(_0xcd85a9) {
|
||
if (!_0x3c58e9['rooms']) {
|
||
_0x3c58e9['generate']();
|
||
}
|
||
var _0x570746 = _0x3c58e9['rooms'][_0x3c58e9['current']];
|
||
_0xcd85a9['lamp'] = _0xcd85a9['add']['sprite'](_0x2aacf1, _0x25d46a - 0x82, _0x570746 ? 'lch02_lamp_red' : 'lch02_lamp_green');
|
||
_0xcd85a9['add']['sprite'](_0x2aacf1, _0x25d46a - 0x5a, _0x570746 ? 'lch02_switch_on' : 'lch02_switch')['setName']('switch')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0xcd85a9['input']['on']('gameobjectdown', function(_0x398c9e, _0x3b041f) {
|
||
if (_0x3b041f['name'] === 'switch') {
|
||
_0x5619f8(this, 'lch02_switch_lch02');
|
||
var _0x570746 = !_0x3c58e9['rooms'][_0x3c58e9['current']];
|
||
_0x3b041f['setTexture'](_0x570746 ? 'lch02_switch_on' : 'lch02_switch');
|
||
_0xcd85a9['lamp']['setTexture'](_0x570746 ? 'lch02_lamp_red' : 'lch02_lamp_green');
|
||
_0x3c58e9['rooms'][_0x3c58e9['current']] = _0x570746;
|
||
_0x3c58e9['saveRooms']();
|
||
}
|
||
}, _0xcd85a9);
|
||
},
|
||
'move': function(_0x405ef8) {
|
||
switch (_0x405ef8) {
|
||
case 'left':
|
||
_0x3c58e9['current']++;
|
||
if (_0x3c58e9['current'] >= _0x3c58e9['rooms']['length']) {
|
||
_0x3c58e9['current'] = 0x0;
|
||
}
|
||
break;
|
||
case 'right':
|
||
_0x3c58e9['current']--;
|
||
if (_0x3c58e9['current'] < 0x0) {
|
||
_0x3c58e9['current'] = _0x3c58e9['rooms']['length'] - 0x1;
|
||
}
|
||
break;
|
||
}
|
||
}
|
||
};
|
||
var _0x3b6826 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'lch02', {
|
||
'left': 'lch02_l',
|
||
'right': 'lch02_r'
|
||
}, {
|
||
'lch01': 'top',
|
||
'lch02_r': 'left',
|
||
'lch02_l': 'right'
|
||
}, [{
|
||
'default': 'bottom',
|
||
'name': 'portal'
|
||
}], {
|
||
'lch01': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x3c58e9['init'](this);
|
||
},
|
||
'before_transition': function(_0x1ee99f) {
|
||
_0x3c58e9['move'](_0x1ee99f);
|
||
}
|
||
});
|
||
var _0x4740fc = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'lch02',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'lch02_r', {
|
||
'left': 'lch02',
|
||
'right': 'lch02_l'
|
||
}, {
|
||
'lch01': 'top',
|
||
'lch02': 'right',
|
||
'lch02_l': 'left'
|
||
}, [{
|
||
'default': 'bottom',
|
||
'name': 'portal'
|
||
}], {
|
||
'lch01': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x3c58e9['init'](this);
|
||
},
|
||
'before_transition': function(_0x518ded) {
|
||
_0x3c58e9['move'](_0x518ded);
|
||
}
|
||
});
|
||
var _0x211389 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'bgSprite': 'lch02',
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'lch02_l', {
|
||
'left': 'lch02_r',
|
||
'right': 'lch02'
|
||
}, {
|
||
'lch01': 'top',
|
||
'lch02_r': 'right',
|
||
'lch02': 'left'
|
||
}, [{
|
||
'default': 'bottom',
|
||
'name': 'portal'
|
||
}], {
|
||
'lch01': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
_0x3c58e9['init'](this);
|
||
},
|
||
'before_transition': function(_0x4850fb) {
|
||
_0x3c58e9['move'](_0x4850fb);
|
||
}
|
||
});
|
||
var _0x4276e8 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'lch03', {
|
||
'bottom': 'lch01'
|
||
}, {
|
||
'lch01': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['add']['sprite'](_0x2aacf1 - 0x13c, _0x25d46a - 0x3c, 'lch03_door_thing');
|
||
if (!_0xb43598['getEvent']('lch03_pyramid')) {
|
||
this['add']['sprite'](_0x2aacf1 - 0x136, _0x25d46a - 0x40, 'lch03_pyramide')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('pyramide');
|
||
}
|
||
var _0x29481a = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x366857, _0x196493) {
|
||
if (_0x196493['name'] === 'pyramide') {
|
||
_0x29481a['addItem'](_0x196493, 'inv_pyramide');
|
||
_0xb43598['setEvent']('lch03_pyramid', !![]);
|
||
this['children']['remove'](_0x196493);
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0x2f6d9f = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'cr02', {
|
||
'top_30': 'tmp06',
|
||
'right_75_30': 'cr03'
|
||
}, {
|
||
'cr03': 'left',
|
||
'tmp06': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 + 0x3c, _0x25d46a - 0x68);
|
||
}
|
||
});
|
||
var _0x493231 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'cr03', {
|
||
'left': 'cr02'
|
||
}, {
|
||
'cr02': 'right'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['black'] = this['add']['sprite'](_0x2aacf1, _0x25d46a, 'black')['setAlpha'](0x0);
|
||
this['glass'] = this['add']['sprite'](_0x2aacf1 + 0x44, _0x25d46a - 0x21, 'cr03_glass')['setAlpha'](0x0);
|
||
if (!_0xb43598['getEvent']('cr03_battery')) {
|
||
this['add']['sprite'](_0x2aacf1 - 0x79, _0x25d46a - 0x53, 'cr3_battery')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('battery');
|
||
} else {
|
||
this['lightOff'](!![]);
|
||
}
|
||
var _0xb0dec3 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x4d9896, _0x4dfe5f) {
|
||
if (_0x4dfe5f['name'] === 'battery') {
|
||
_0xb0dec3['addItem'](_0x4dfe5f, 'inv_battery');
|
||
_0xb43598['setEvent']('cr03_battery', !![]);
|
||
this['children']['remove'](_0x4dfe5f);
|
||
this['lightOff']();
|
||
_0x5619f8(this, 'cr3_kill_engineer');
|
||
}
|
||
}, this);
|
||
},
|
||
'lightOff': function(_0x14757d) {
|
||
if (_0x14757d) {
|
||
this['black']['setAlpha'](0.7);
|
||
this['glass']['setAlpha'](0x1);
|
||
return;
|
||
}
|
||
this['tweens']['add']({
|
||
'targets': this['black'],
|
||
'alpha': 0.7,
|
||
'duration': _0xecb5a1 * 0x3
|
||
});
|
||
this['tweens']['add']({
|
||
'targets': this['glass'],
|
||
'alpha': 0x1,
|
||
'duration': _0xecb5a1 * 0x4
|
||
});
|
||
}
|
||
});
|
||
var _0x3c4486 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0004', {
|
||
'top': 'intr0007'
|
||
}, {
|
||
'intr0007': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x182690 = !!_0xb43598['getEvent']('intr0004_sign');
|
||
var _0x10b03f = this['add']['sprite'](_0x2aacf1 + 0x10e, _0x25d46a - 0x96, 'intr0004_sign_on');
|
||
if (!_0x182690) {
|
||
_0x10b03f['setTexture']('intr0004_sign')['setName']('sign')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x344a88, _0x47c450) {
|
||
if (_0x47c450['name'] === 'sign') {
|
||
_0x5619f8(this, 'secret');
|
||
_0xb43598['setEvent']('intr0004_sign', !![]);
|
||
_0x10b03f['setTexture']('intr0004_sign_on')['disableInteractive']();
|
||
}
|
||
}, this);
|
||
}
|
||
});
|
||
var _0xc96ce3 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0006', {
|
||
'left': 'intr0007',
|
||
'top': 'intr0009'
|
||
}, {
|
||
'intr0007': 'right',
|
||
'intr0009': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x3e78d5 = _0xb43598['getEvent']('tr0006_rele_angle') || 0x0;
|
||
if (_0x3e78d5 != 0x5a && _0x3e78d5 != 0x10e) {
|
||
this['add']['sprite'](_0x2aacf1 - 0x7c, _0x25d46a - 0x20, 'intr0006_rotator')['setAngle'](_0x3e78d5);
|
||
} else {
|
||
this['add']['sprite'](_0x2aacf1 - 0x172, _0x25d46a + 0x8, 'intr0006_rotator_on');
|
||
}
|
||
}
|
||
});
|
||
var _0x1accd0 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0007', {
|
||
'right': 'intr0006'
|
||
}, {
|
||
'intr0006': 'left',
|
||
'intr0004': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
var _0x4c3b73 = _0xb43598['getEvent']('tr0006_rele_angle') || 0x0;
|
||
if (_0x4c3b73 == 0x5a || _0x4c3b73 == 0x10e) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x17e, _0x25d46a + 0x1e, 'intr0007_pipe1');
|
||
}
|
||
var _0x59dcb0 = _0xb43598['getEvent']('tr0007_rele_angle') || 0x0;
|
||
if (_0x59dcb0 != 0x0 && _0x59dcb0 != 0xb4 || _0x4c3b73 != 0x5a && _0x4c3b73 != 0x10e) {
|
||
this['add']['sprite'](_0x2aacf1 + 0x4b, _0x25d46a - 0x11, 'intr0007_rotator')['setAngle'](_0x59dcb0 - 0x5a);
|
||
this['add']['sprite'](_0x2aacf1 - 0xa, _0x25d46a + 0xbd, 'intr0007_hatch');
|
||
} else {
|
||
this['add']['sprite'](_0x2aacf1 - 0x19, _0x25d46a + 0x54, 'intr0007_rotator_on');
|
||
this['addTransition']('bottom', 'intr0004', !![]);
|
||
this['addZone']({
|
||
'x': _0x2aacf1 - 0x96,
|
||
'y': _0x25d46a + 0x90,
|
||
'width': 0x10e,
|
||
'height': 0x4b,
|
||
'name': 'bottom'
|
||
});
|
||
}
|
||
}
|
||
});
|
||
var _0x2c7910 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0009', {
|
||
'left': 'intr0010',
|
||
'bottom': 'intr0006',
|
||
'top': 'intr0101'
|
||
}, {
|
||
'intr0010': 'right',
|
||
'intr0006': 'top',
|
||
'intr0101': 'bottom'
|
||
}, [{
|
||
'x': _0x2aacf1 - 0x8c,
|
||
'y': _0x25d46a - 0xaa,
|
||
'width': 0xa0,
|
||
'height': 0x14a,
|
||
'name': 'portal'
|
||
}], {
|
||
'tr0009': 'portal'
|
||
});
|
||
}
|
||
});
|
||
var _0x1b48c1 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0010', {
|
||
'right': 'intr0009'
|
||
}, {
|
||
'intr0009': 'left'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 - 0xa, _0x25d46a - 0x1e, {
|
||
'name': 'intr0010_door'
|
||
}, {
|
||
'scale': {
|
||
'x': 0.8,
|
||
'y': 0.9
|
||
}
|
||
}, 'tb03b');
|
||
}
|
||
});
|
||
var _0x4c15fd = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0101', {
|
||
'left': 'intr0102',
|
||
'bottom': 'intr0009'
|
||
}, {
|
||
'intr0102': 'right',
|
||
'intr0009': 'top'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 - 0x46, _0x25d46a - 0xf, {
|
||
'name': 'intr0101_door'
|
||
}, {
|
||
'scale': 0.8
|
||
}, 'pr03');
|
||
}
|
||
});
|
||
var _0x3b2761 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0102', {
|
||
'top': 'intr0201',
|
||
'right': 'intr0101'
|
||
}, {
|
||
'intr0101': 'left',
|
||
'intr0201': 'bottom'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDevice'](_0x2aacf1 - 0x28, _0x25d46a - 0x14);
|
||
}
|
||
});
|
||
var _0x3d4eae = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0201', {
|
||
'top': 'intr0302',
|
||
'bottom': 'intr0102'
|
||
}, {
|
||
'intr0302': 'bottom',
|
||
'intr0102': 'top'
|
||
});
|
||
}
|
||
});
|
||
var _0x429984 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0302', {
|
||
'top': 'intr0401',
|
||
'bottom': 'intr0201'
|
||
}, {
|
||
'intr0401': 'bottom',
|
||
'intr0201': 'top'
|
||
});
|
||
}
|
||
});
|
||
var _0x4e27af = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0401', {
|
||
'top': 'intr0503',
|
||
'bottom': 'intr0302'
|
||
}, {
|
||
'intr0503': 'bottom',
|
||
'intr0302': 'top'
|
||
}, null, {
|
||
'7kb': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['createDoor'](_0x2aacf1 - 0x46, _0x25d46a - 0xf, {
|
||
'name': 'intr0401_door'
|
||
}, {
|
||
'scale': 0.8
|
||
}, '7kb');
|
||
}
|
||
});
|
||
var _0xc62afc = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, 'intr0503', {
|
||
'bottom': 'intr0401'
|
||
}, {
|
||
'intr0401': 'top'
|
||
}, [{
|
||
'x': _0x2aacf1 - 0x5a,
|
||
'y': _0x25d46a - 0xc8,
|
||
'width': 0xb4,
|
||
'height': 0x15e,
|
||
'name': 'portal'
|
||
}], {
|
||
'tr0503': 'portal'
|
||
});
|
||
}
|
||
});
|
||
var _0x512097 = function(_0x47518c, _0x2e387d) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x2e387d['length']; _0x5a8aa6++) {
|
||
if (!_0x47518c[_0x2e387d[_0x5a8aa6]]) return ![];
|
||
}
|
||
for (_0xd4143 in _0x47518c) {
|
||
if (!_0x47518c['hasOwnProperty'](_0xd4143) || !_0x47518c[_0xd4143]) continue;
|
||
if (_0x2e387d['indexOf'](_0xd4143) === -0x1) return ![];
|
||
}
|
||
return !![];
|
||
};
|
||
var _0x93665b = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, '7ka', null, null, null, {
|
||
'tr0401': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['opened'] = !!_0xb43598['getEvent']('k7a_box_show');
|
||
this['createAnimation']('portal');
|
||
var _0x114c6e = this['add']['sprite'](_0x2aacf1 - 0xf0, _0x25d46a - 0x46, 'portal_1')['setScale'](0.58, 0x1)['setName']('portal');
|
||
var _0x180da5 = this['add']['sprite'](_0x2aacf1 - 0xf0, _0x25d46a - 0x28, '7ka_door')['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
this['add']['sprite'](_0x2aacf1 - 0xea, _0x25d46a - 0xfe, '7ka_mask');
|
||
this['enabled'] = _0xb43598['getEvent']('k7a_blocks_enabled') || {};
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < 0x6; _0x5a8aa6++) {
|
||
var _0x563c57 = 0x4f * _0x5a8aa6 + 0x195;
|
||
for (var _0x277038 = 0x0; _0x277038 < 0x6; _0x277038++) {
|
||
var _0x5d9282 = _0x25d46a + 0x32 - _0x277038 * 0x62 + _0x5a8aa6 * 0xa;
|
||
var _0x5801ee = _0x5a8aa6 + '_' + _0x277038;
|
||
var _0x817b35 = ![];
|
||
var _0x3857e0 = this['add']['sprite'](_0x563c57, _0x5d9282, '7ka_cube')['setData']('x', _0x5a8aa6)['setData']('y', _0x277038)['setInteractive']()['setName']('cube')['setData']('key', _0x5801ee)['setData']('enabled', _0x817b35);
|
||
if (_0xb43598['getEvent']('k7a_cube_' + _0x5801ee)) {
|
||
this['toggleCube'](_0x3857e0, !![]);
|
||
}
|
||
}
|
||
}
|
||
this['box'] = this['add']['sprite'](_0x2aacf1 - 0x18, _0x25d46a + 0x85, '7ka_box')['setInteractive']()['setName']('box');
|
||
this['boxMask'] = this['add']['sprite'](_0x2aacf1 + 0x2, _0x25d46a + 0x92, '7ka_box_mask2');
|
||
this['keyplace'] = this['add']['sprite'](_0x2aacf1 + 0x8, _0x25d46a + 0x96, '7ka_keyplace_2')['setName']('keyplace');
|
||
this['boxContainer'] = this['add']['container'](0x0, 0x0, [this['box'], this['keyplace'], this['boxMask']])['setVisible'](![]);
|
||
this['add']['sprite'](_0x2aacf1 - 0x18, _0x25d46a + 0x105, '7ka_box_mask');
|
||
if (this['opened']) {
|
||
this['showBox'](!![]);
|
||
}
|
||
if (_0xb43598['getEvent']('k7a_box_open')) {
|
||
this['openBox'](!![]);
|
||
}
|
||
if (_0xb43598['getEvent']('k7a_keyplace_complete')) {
|
||
this['keyplace']['setTexture']('7ka_keyplace')['disableInteractive']();
|
||
}
|
||
this['ind1'] = this['add']['sprite'](_0x2aacf1 - 0x70, _0x25d46a + 0x88, 'k7_indicator_1')['setVisible'](![]);
|
||
this['ind2'] = this['add']['sprite'](_0x2aacf1 - 0x63, _0x25d46a + 0x89, 'k7_indicator_2')['setVisible'](![]);
|
||
this['ind3'] = this['add']['sprite'](_0x2aacf1 - 0x54, _0x25d46a + 0x8b, 'k7_indicator_3')['setVisible'](![]);
|
||
this['ind4'] = this['add']['sprite'](_0x2aacf1 - 0x42, _0x25d46a + 0x8d, 'k7_indicator_4')['setVisible'](![]);
|
||
this['ind5'] = this['add']['sprite'](_0x2aacf1 - 0x33, _0x25d46a + 0x8f, 'k7_indicator_5')['setVisible'](![]);
|
||
this['ind6'] = this['add']['sprite'](_0x2aacf1 - 0x22, _0x25d46a + 0x91, 'k7_indicator_6')['setVisible'](![]);
|
||
this['ind7'] = this['add']['sprite'](_0x2aacf1 - 0x13, _0x25d46a + 0x93, 'k7_indicator_7')['setVisible'](![]);
|
||
var _0x16735e = _0xb43598['getEvent']('k7a_keys_count') || 0x0;
|
||
for (var _0x5a8aa6 = 0x1; _0x5a8aa6 < 0x8; _0x5a8aa6++) {
|
||
this['ind' + _0x5a8aa6]['setVisible'](_0x16735e >= _0x5a8aa6);
|
||
}
|
||
var _0xb21e94 = this['scene']['get']('inventoryScene');
|
||
this['input']['on']('gameobjectdown', function(_0x484881, _0x107e1b) {
|
||
if (_0x107e1b['name'] === 'door') {
|
||
_0x1967e9();
|
||
_0x114c6e['play']('portal');
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['tweens']['add']({
|
||
'targets': _0x180da5,
|
||
'y': '-=500',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0x114c6e['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
} else if (_0x107e1b['name'] === 'cube') {
|
||
this['toggleCube'](_0x107e1b);
|
||
} else if (_0x107e1b['name'] === 'box') {
|
||
var _0x10f218 = _0xb43598['getInventoryActive']();
|
||
if (!_0x10f218 || _0x10f218['indexOf']('inv_key') !== 0x0) return;
|
||
this['putKey'](_0x10f218);
|
||
} else if (_0x107e1b['name'] === 'keyplace') {
|
||
this['keyplace']['setTexture']('7ka_keyplace')['disableInteractive']();
|
||
_0xb21e94['addItem'](_0x107e1b, 'inv_interface');
|
||
_0xb43598['setEvent']('k7a_keyplace_complete', !![]);
|
||
} else if (_0x107e1b['name'] === 'portal') {
|
||
_0x36f2e8(this, 'tr0401', 'transition_portal');
|
||
}
|
||
}, this);
|
||
},
|
||
'toggleCube': function(_0xae5b1b, _0x4ea241) {
|
||
if (_0x4ea241) {
|
||
_0xae5b1b['x'] -= 0x50;
|
||
_0xae5b1b['y'] += 0x2b;
|
||
_0xae5b1b['setData']('enabled', !![]);
|
||
return;
|
||
}
|
||
if (this['opened']) return;
|
||
var _0x278b81 = _0xae5b1b['getData']('key');
|
||
if (_0x1f790d['indexOf'](_0x278b81) !== -0x1) return;
|
||
_0x1967e9();
|
||
_0x5619f8(this, '7k_press_cube_7k');
|
||
var _0x3213c0 = _0xae5b1b['getData']('enabled');
|
||
this['tweens']['add']({
|
||
'targets': _0xae5b1b,
|
||
'x': (!_0x3213c0 ? '-' : '+') + '=80',
|
||
'y': (!_0x3213c0 ? '+' : '-') + '=43',
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
_0xae5b1b['setData']('enabled', !_0x3213c0);
|
||
this['enabled'][_0x278b81] = !_0x3213c0;
|
||
_0xb43598['setEvent']('k7a_cube_' + _0x278b81, this['enabled'][_0x278b81]);
|
||
_0xb43598['setEvent']('k7a_blocks_enabled', this['enabled']);
|
||
if (_0xb43598['getEvent']('k7b_blocks') && _0x512097(this['enabled'], _0x17990f)) {
|
||
_0x5619f8(this, '7k_unhide_keydestroyer');
|
||
this['showBox']();
|
||
} else {
|
||
_0x5178ad();
|
||
}
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'showBox': function(_0x4c6791) {
|
||
if (_0x4c6791) {
|
||
this['boxContainer']['setVisible'](!![]);
|
||
this['children']['bringToTop'](this['boxContainer']);
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
this['input']['setDefaultCursor']('default');
|
||
this['boxContainer']['y'] += 0xfa;
|
||
this['boxContainer']['setVisible'](!![]);
|
||
this['tweens']['add']({
|
||
'targets': this['boxContainer'],
|
||
'y': '-=250',
|
||
'duration': _0xecb5a1 * 0x4,
|
||
'onComplete': function() {
|
||
this['opened'] = !![];
|
||
this['children']['bringToTop'](this['boxContainer']);
|
||
_0xb43598['setEvent']('k7a_box_show', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
},
|
||
'putKey': function(_0x164011) {
|
||
var _0x5e2889 = this['scene']['get']('inventoryScene');
|
||
_0x5e2889['removeItem'](_0x164011, '7k_destroy_key');
|
||
var _0x231fac = _0xb43598['getEvent']('k7a_keys_count') || 0x0;
|
||
_0xb43598['setEvent']('k7a_keys_count', ++_0x231fac);
|
||
this['children']['bringToTop'](this['ind' + _0x231fac]);
|
||
this['ind' + _0x231fac]['setVisible'](!![]);
|
||
if (_0x231fac == 0x7) {
|
||
this['openBox']();
|
||
}
|
||
},
|
||
'openBox': function(_0x3afc82) {
|
||
if (_0x3afc82) {
|
||
this['keyplace']['x'] += 0x64;
|
||
this['keyplace']['y'] += 0xf;
|
||
this['keyplace']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
this['box']['disableInteractive']();
|
||
return;
|
||
}
|
||
_0x1967e9();
|
||
this['input']['setDefaultCursor']('default');
|
||
_0x5619f8(this, '7k_unhide_exit_key');
|
||
this['tweens']['add']({
|
||
'targets': this['keyplace'],
|
||
'x': '+=100',
|
||
'y': '+=15',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
this['box']['disableInteractive']();
|
||
this['keyplace']['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0xb43598['setEvent']('k7a_box_open', !![]);
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
var _0x4e7ed4 = new Phaser['Class']({
|
||
'Extends': _0x1db0d7,
|
||
'BLOCKS': ['0_1', '1_2', '2_3', '3_1', '4_2'],
|
||
'initialize': function() {
|
||
_0x1db0d7['call'](this, '7kb', null, null, null, {
|
||
'intr0401': 'portal'
|
||
});
|
||
},
|
||
'extra_create': function() {
|
||
this['opened'] = !!_0xb43598['getEvent']('k7a_box_show');
|
||
this['createAnimation']('portal');
|
||
var _0x5a0038 = this['add']['sprite'](_0x2aacf1 + 0xf0, _0x25d46a - 0x46, 'portal_1')['setScale'](0.58, 0x1)['setName']('portal');
|
||
var _0x423d49 = this['add']['sprite'](_0x2aacf1 + 0xf0, _0x25d46a - 0x28, '7kb_door')['setScale'](-0x1, 0x1)['setInteractive']({
|
||
'cursor': 'pointer'
|
||
})['setName']('door');
|
||
this['add']['sprite'](_0x2aacf1 + 0xea, _0x25d46a - 0xfe, '7kb_mask')['setScale'](-0x1, 0x1);
|
||
this['enabled'] = _0xb43598['getEvent']('k7b_blocks_enabled') || {};
|
||
for (var _0x5a8aa6 = 0x5; _0x5a8aa6 >= 0x0; _0x5a8aa6--) {
|
||
var _0x2ccdc9 = 0x50 * _0x5a8aa6;
|
||
for (var _0x5cd446 = 0x0; _0x5cd446 < 0x6; _0x5cd446++) {
|
||
var _0x42b348 = _0x25d46a + 0x64 - _0x5cd446 * 0x62 - _0x5a8aa6 * 0xa;
|
||
var _0x3ac43d = _0x5a8aa6 + '_' + _0x5cd446;
|
||
var _0x395229 = ![];
|
||
var _0x4e5038 = this['add']['sprite'](_0x2ccdc9, _0x42b348, '7kb_cube')['setScale'](-0x1, 0x1)['setData']('x', _0x5a8aa6)['setData']('y', _0x5cd446)['setInteractive']()['setName']('cube')['setData']('key', _0x3ac43d)['setData']('enabled', _0x395229);
|
||
if (_0xb43598['getEvent']('k7b_cube_' + _0x3ac43d)) {
|
||
this['toggleCube'](_0x4e5038, !![]);
|
||
}
|
||
}
|
||
}
|
||
this['input']['on']('gameobjectdown', function(_0x65a33d, _0x5f07a5) {
|
||
if (_0x5f07a5['name'] === 'door') {
|
||
_0x1967e9();
|
||
_0x5a0038['play']('portal');
|
||
_0x5619f8(this, 'el_open_el_door');
|
||
this['tweens']['add']({
|
||
'targets': _0x423d49,
|
||
'y': '-=500',
|
||
'duration': _0xecb5a1 * 0x2,
|
||
'onComplete': function() {
|
||
_0x5a0038['setInteractive']({
|
||
'cursor': 'pointer'
|
||
});
|
||
_0x5178ad();
|
||
}
|
||
});
|
||
} else if (_0x5f07a5['name'] === 'cube') {
|
||
this['toggleCube'](_0x5f07a5);
|
||
} else if (_0x5f07a5['name'] === 'portal') {
|
||
_0x36f2e8(this, 'intr0401', 'transition_portal');
|
||
}
|
||
}, this);
|
||
},
|
||
'toggleCube': function(_0x3c759c, _0x1c2f82) {
|
||
if (_0x1c2f82) {
|
||
_0x3c759c['x'] += 0x50;
|
||
_0x3c759c['y'] += 0x2b;
|
||
_0x3c759c['setData']('enabled', !![]);
|
||
return;
|
||
}
|
||
var _0x11a70a = _0x3c759c['getData']('key');
|
||
if (_0x17990f['indexOf'](_0x11a70a) !== -0x1) return;
|
||
_0x1967e9();
|
||
_0x5619f8(this, '7k_press_cube_7k');
|
||
var _0x2d76ea = _0x3c759c['getData']('enabled');
|
||
this['tweens']['add']({
|
||
'targets': _0x3c759c,
|
||
'x': (!_0x2d76ea ? '+' : '-') + '=80',
|
||
'y': (!_0x2d76ea ? '+' : '-') + '=43',
|
||
'duration': _0xecb5a1,
|
||
'onComplete': function() {
|
||
_0x3c759c['setData']('enabled', !_0x2d76ea);
|
||
this['enabled'][_0x11a70a] = !_0x2d76ea;
|
||
_0xb43598['setEvent']('k7b_cube_' + _0x11a70a, this['enabled'][_0x11a70a]);
|
||
_0xb43598['setEvent']('k7b_blocks_enabled', this['enabled']);
|
||
_0xb43598['setEvent']('k7b_blocks', _0x512097(this['enabled'], _0x1f790d));
|
||
_0x5178ad();
|
||
} ['bind'](this)
|
||
});
|
||
}
|
||
});
|
||
|
||
function _0x1967e9() {
|
||
_0xb43598['input']['enabled'] = ![];
|
||
_0xb43598['input']['mouse']['enabled'] = ![];
|
||
}
|
||
|
||
function _0x5178ad() {
|
||
_0xb43598['input']['enabled'] = !![];
|
||
_0xb43598['input']['mouse']['enabled'] = !![];
|
||
}
|
||
|
||
function _0x3d4394(_0x57ba47, _0x239133, _0x42683d) {
|
||
if (typeof _0x42683d[_0x239133] === 'undefined') {
|
||
return ![];
|
||
}
|
||
_0x280656['lastScene'] = _0x57ba47['scene']['key'];
|
||
_0x57ba47['input']['stopPropagation']();
|
||
_0x57ba47['scene']['transition']({
|
||
'target': _0x42683d[_0x239133],
|
||
'duration': _0xecb5a1,
|
||
'moveBelow': ![],
|
||
'onUpdate': _0x13ec8e(_0x57ba47['children']['list'], _0x239133, _0x57ba47['scene']['key']),
|
||
'ease': _0x41bba0,
|
||
'data': {
|
||
'scene': _0x57ba47['scene']['key']
|
||
}
|
||
});
|
||
return !![];
|
||
}
|
||
|
||
function _0x13ec8e(_0x2c5b81, _0xa81594, _0x85d05b) {
|
||
if (_0xa81594 === 'right' || _0xa81594['indexOf']('right_') === 0x0) {
|
||
deltaPosX = -_0x4a8abc - _0x119242;
|
||
deltaPosY = 0x0;
|
||
} else if (_0xa81594 === 'left' || _0xa81594['indexOf']('left_') === 0x0) {
|
||
deltaPosX = _0x4a8abc + _0x119242;
|
||
deltaPosY = 0x0;
|
||
} else if (_0xa81594 === 'bottom') {
|
||
deltaPosX = 0x0;
|
||
deltaPosY = -_0x3eaf37 - _0x119242;
|
||
} else if (_0xa81594 === 'top' || _0xa81594['indexOf']('top_') === 0x0) {
|
||
deltaPosX = 0x0;
|
||
deltaPosY = _0x3eaf37 + _0x119242;
|
||
}
|
||
var _0x3dfbad = {};
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x2c5b81['length']; _0x5a8aa6++) {
|
||
_0x3dfbad[_0x5a8aa6] = {
|
||
'x': _0x2c5b81[_0x5a8aa6]['x'],
|
||
'y': _0x2c5b81[_0x5a8aa6]['y']
|
||
};
|
||
}
|
||
return function(_0x3bf71b) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x2c5b81['length']; _0x5a8aa6++) {
|
||
var _0x47b4bd = _0x2c5b81[_0x5a8aa6];
|
||
_0x47b4bd['x'] = _0x3dfbad[_0x5a8aa6]['x'] + Phaser['Math']['Easing']['Quadratic']['InOut'](_0x3bf71b) * deltaPosX;
|
||
_0x47b4bd['y'] = _0x3dfbad[_0x5a8aa6]['y'] + Phaser['Math']['Easing']['Quadratic']['InOut'](_0x3bf71b) * deltaPosY;
|
||
}
|
||
};
|
||
}
|
||
|
||
function _0x45daa9(_0x4220e2, _0x5de177) {
|
||
var _0x3cd7a8 = _0x4220e2['children']['list'];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x3cd7a8['length']; _0x5a8aa6++) {
|
||
var _0x49d187 = _0x3cd7a8[_0x5a8aa6];
|
||
var _0x253ccb = {
|
||
'x': _0x49d187['x'],
|
||
'y': _0x49d187['y']
|
||
};
|
||
switch (_0x5de177) {
|
||
case 'left':
|
||
_0x49d187['x'] += -_0x2aacf1 * 0x2 - _0x119242;
|
||
break;
|
||
case 'right':
|
||
_0x49d187['x'] += _0x2aacf1 * 0x2 + _0x119242;
|
||
break;
|
||
case 'top':
|
||
_0x49d187['y'] += -_0x25d46a * 0x2 - _0x119242;
|
||
break;
|
||
case 'bottom':
|
||
_0x49d187['y'] += _0x25d46a * 0x2 + _0x119242;
|
||
break;
|
||
}
|
||
_0x4220e2['tweens']['add']({
|
||
'targets': _0x49d187,
|
||
'x': _0x253ccb['x'],
|
||
'y': _0x253ccb['y'],
|
||
'ease': _0x41bba0,
|
||
'duration': _0xecb5a1
|
||
});
|
||
}
|
||
}
|
||
|
||
function _0xc2f164(_0x11c56d) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x11c56d['length']; _0x5a8aa6++) {
|
||
_0x11c56d[_0x5a8aa6]['setVisible'](![]);
|
||
}
|
||
}
|
||
|
||
function _0x4d6d15(_0x2a5f3a) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x2a5f3a['length']; _0x5a8aa6++) {
|
||
_0x2a5f3a[_0x5a8aa6]['setVisible'](!![]);
|
||
}
|
||
}
|
||
|
||
function _0xa87a00(_0x5ef232, _0x35e4ea) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x5ef232['length']; _0x5a8aa6++) {
|
||
_0x5ef232[_0x5a8aa6]['setTexture'](_0x35e4ea);
|
||
}
|
||
}
|
||
|
||
function _0x3dfb11(_0x6a9637) {
|
||
return function(_0x486ed6) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x6a9637['children']['list']['length']; _0x5a8aa6++) {
|
||
if (typeof _0x6a9637['children']['list'][_0x5a8aa6]['setAlpha'] === 'function') {
|
||
_0x6a9637['children']['list'][_0x5a8aa6]['setAlpha'](0x1 - _0x486ed6);
|
||
}
|
||
}
|
||
};
|
||
}
|
||
|
||
function _0x36f2e8(_0x8f8888, _0x155726, _0xce6904) {
|
||
var _0x339ddb = _0x8f8888['scene']['get']('portalScene');
|
||
if (typeof _0xce6904 !== 'undefined') {
|
||
_0xce6904 = typeof _0xce6904 === 'string' ? _0xce6904 : 'transition_to';
|
||
_0x5619f8(_0x8f8888, _0xce6904);
|
||
}
|
||
_0x339ddb['portalTo'](_0x8f8888, _0x155726);
|
||
}
|
||
|
||
function _0x4447e3(_0x367bf2) {
|
||
_0x367bf2['tweens']['add']({
|
||
'targets': _0x367bf2['children']['list'],
|
||
'alphaBottomLeft': {
|
||
'value': 0x1,
|
||
'duration': _0xecb5a1,
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'ease': 'Power1'
|
||
},
|
||
'alphaBottomRight': {
|
||
'value': 0x1,
|
||
'duration': _0xecb5a1,
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'ease': 'Power1'
|
||
},
|
||
'alphaTopLeft': {
|
||
'value': 0x1,
|
||
'duration': _0xecb5a1,
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'ease': 'Power1'
|
||
},
|
||
'alphaTopRight': {
|
||
'value': 0x1,
|
||
'duration': _0xecb5a1,
|
||
'delay': _0xecb5a1 * 0x2,
|
||
'ease': 'Power1'
|
||
},
|
||
'yoyo': ![],
|
||
'loop': 0x0,
|
||
'onUpdate': function(_0x2043bb, _0x20c593) {
|
||
if (_0x20c593['type'] === 'Container') {
|
||
_0x20c593['setAlpha'](_0x2043bb['progress']);
|
||
} else if (_0x20c593['type'] === 'Zone') {
|
||
_0x367bf2['graphicsNode']['setAlpha'](_0x2043bb['progress']);
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
function _0x2f9370(_0x46aebc, _0x91785e) {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x46aebc['length']; _0x5a8aa6++) {
|
||
if (typeof _0x46aebc[_0x5a8aa6]['setAlpha'] === 'function') {
|
||
_0x46aebc[_0x5a8aa6]['setAlpha'](_0x91785e);
|
||
}
|
||
}
|
||
}
|
||
|
||
function _0x3e179a(_0x2e5810, _0x19888d) {
|
||
var _0x117240 = _0x2e5810['getBounds']();
|
||
var _0x29eff7 = new Phaser['Geom']['Rectangle'](_0x117240['x'], _0x117240['y'], _0x117240['width'], _0x117240['height']);
|
||
var _0x55b340 = new Phaser['Geom']['Circle'](_0x19888d['x'], _0x19888d['y'], 0x1);
|
||
return Phaser['Geom']['Rectangle']['ContainsPoint'](_0x29eff7, _0x55b340);
|
||
}
|
||
|
||
function _0x39f1a0(_0x69a772, _0x349fa7, _0x28ff3b) {
|
||
var _0xfe1076 = _0x69a772['make']['mesh']({
|
||
'key': 'phaser2',
|
||
'x': _0x28ff3b['x'] || _0x349fa7['x'],
|
||
'y': _0x28ff3b['y'] || _0x349fa7['y'],
|
||
'vertices': [_0x28ff3b['topLeftX'], _0x28ff3b['topLeftY'], _0x28ff3b['bottomLeftX'], _0x28ff3b['bottomLeftY'], _0x28ff3b['bottomRightX'], _0x28ff3b['bottomRightY'], _0x28ff3b['topLeftX'], _0x28ff3b['topLeftY'], _0x28ff3b['bottomRightX'], _0x28ff3b['bottomRightY'], _0x28ff3b['topRightX'], _0x28ff3b['topRightY']],
|
||
'uv': [0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x1, 0x0],
|
||
'add': ![]
|
||
});
|
||
_0x349fa7['mask'] = new Phaser['Display']['Masks']['GeometryMask'](this, _0xfe1076);
|
||
return _0x349fa7['mask'];
|
||
}
|
||
|
||
function _0x20156a() {
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0xb43598['scene']['scenes']['length']; _0x5a8aa6++) {
|
||
if (_0xb43598['scene']['scenes'][_0x5a8aa6]['sys']['isActive']() && _0xb43598['scene']['scenes'][_0x5a8aa6]['name']) {
|
||
return _0xb43598['scene']['scenes'][_0x5a8aa6];
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
var _0x26dcce = {};
|
||
|
||
function _0x5d99ff(_0x27a5b1, _0x4227a1) {
|
||
if (!_0x280656['music']) return;
|
||
_0x2d51eb(_0x27a5b1, _0x4227a1, !![]);
|
||
}
|
||
|
||
function _0x5619f8(_0x48ee8b, _0x45f5d9, _0x51e0d5) {
|
||
if (!_0x280656['sound']) return;
|
||
_0x2d51eb(_0x48ee8b, _0x45f5d9, _0x51e0d5, 0.5);
|
||
}
|
||
|
||
function _0x2d51eb(_0x15803e, _0x17b093, _0x123093, _0xbbdab3) {
|
||
_0xbbdab3 = _0xbbdab3 || 0x1;
|
||
if (!_0x123093) {
|
||
_0x15803e['sound']['play'](_0x17b093);
|
||
return;
|
||
}
|
||
if (typeof _0x26dcce[_0x17b093] !== 'undefined') return;
|
||
_0x26dcce[_0x17b093] = _0x15803e['sound']['add'](_0x17b093);
|
||
_0x26dcce[_0x17b093]['play']({
|
||
'loop': !![],
|
||
'volume': _0xbbdab3
|
||
});
|
||
}
|
||
|
||
function _0x11c867(_0x43f4aa) {
|
||
if (typeof _0x26dcce[_0x43f4aa] === 'undefined') return;
|
||
_0x26dcce[_0x43f4aa]['stop']();
|
||
delete _0x26dcce[_0x43f4aa];
|
||
}
|
||
|
||
function _0x5f0b2a(_0x52a9c0) {
|
||
res = {};
|
||
for (_0xd4143 in _0x52a9c0) {
|
||
if (!_0x52a9c0['hasOwnProperty'](_0xd4143)) continue;
|
||
res[_0xd4143] = _0x52a9c0[_0xd4143];
|
||
}
|
||
return res;
|
||
}
|
||
|
||
function _0x3b7c0e(_0x425456) {
|
||
if (_0x425456['href']) {
|
||
_0x425456 = _0x425456['href'];
|
||
}
|
||
_0x18a365 = document['createElement']('a');
|
||
_0x18a365['setAttribute']('target', '_blank');
|
||
_0x18a365['setAttribute']('href', _0x425456);
|
||
document['body']['appendChild'](_0x18a365);
|
||
_0x18a365['click']();
|
||
return ![];
|
||
}
|
||
|
||
function _0x4fa2b2() {
|
||
if (_0xb43598['device']['fullscreen']['available']) {
|
||
if (_0xb43598['isFullscreen']) {
|
||
document[_0xb43598['device']['fullscreen']['cancel']]();
|
||
} else {
|
||
_0xb43598['canvas'][_0xb43598['device']['fullscreen']['request']]();
|
||
}
|
||
} else {
|
||
if (_0xb43598['isFullscreen']) {} else {}
|
||
}
|
||
if (!_0xb43598['isFullscreen']) {
|
||
_0x42d8db();
|
||
} else {
|
||
_0xb43598['canvas']['style']['width'] = _0x4a8abc + 'px';
|
||
_0xb43598['canvas']['style']['height'] = _0x3eaf37 + 'px';
|
||
}
|
||
if (!_0xb43598['device']['fullscreen']['available']) {
|
||
_0xb43598['isFullscreen'] = !_0xb43598['isFullscreen'];
|
||
_0xb43598['isFullscreenKey'] = ![];
|
||
}
|
||
}
|
||
|
||
function _0x441920(_0x25f12d, _0x59d87e) {
|
||
var _0x277932 = _0x25f12d['getBoundingClientRect']();
|
||
var _0x3d4bb1 = _0x59d87e['touches']['length'] ? _0x59d87e['touches'] : _0x59d87e['changedTouches'];
|
||
return {
|
||
'x': _0x3d4bb1[0x0]['clientX'] - _0x277932['left'],
|
||
'y': _0x3d4bb1[0x0]['clientY'] - _0x277932['top']
|
||
};
|
||
}
|
||
|
||
function _0x42d8db() {
|
||
var _0x21d20b = _0x2e4825['innerWidth'];
|
||
var _0x40cc02 = _0x2e4825['innerHeight'];
|
||
var _0xe3029b = Math['min'](_0x21d20b / _0x4a8abc, _0x40cc02 / _0x3eaf37);
|
||
_0xb43598['canvas']['style']['width'] = _0x4a8abc * _0xe3029b + 'px';
|
||
_0xb43598['canvas']['style']['height'] = _0x3eaf37 * _0xe3029b + 'px';
|
||
}
|
||
|
||
function _0x3395ca(_0x513178) {}
|
||
|
||
function _0x575e64() {
|
||
var _0x2061b4 = _0x2e4825['innerWidth'] / _0x4a8abc;
|
||
var _0x549c20 = _0x2e4825['innerHeight'] / _0x3eaf37;
|
||
var _0x394062 = Math['min'](_0x2061b4, _0x549c20);
|
||
var _0x8df044 = {
|
||
'w': _0x394062 * _0x4a8abc,
|
||
'h': _0x394062 * _0x3eaf37
|
||
};
|
||
if (_0x2061b4 > _0x549c20 && _0x549c20 > 0x1) {
|
||
var _0x56a51f = {
|
||
'w': 0x0,
|
||
'h': 0x0
|
||
};
|
||
_0x56a51f['w'] = _0x4a8abc + (_0x2e4825['innerWidth'] - _0x4a8abc) * (_0x2061b4 - _0x549c20);
|
||
_0x56a51f['h'] = _0x3eaf37;
|
||
_0x56a51f['w'] = _0x2e4825['innerWidth'];
|
||
_0xb43598['resize'](_0x56a51f['w'], _0x56a51f['h']);
|
||
_0xb43598['canvas']['style']['width'] = _0x2e4825['innerWidth'] * _0x549c20;
|
||
_0xb43598['canvas']['style']['height'] = _0x2e4825['innerHeight'];
|
||
} else {
|
||
_0xb43598['resize'](_0x4a8abc, _0x3eaf37);
|
||
_0xb43598['canvas']['style']['width'] = _0x8df044['w'];
|
||
_0xb43598['canvas']['style']['height'] = _0x8df044['h'];
|
||
}
|
||
}
|
||
|
||
function _0x493b23() {
|
||
var _0x3b4c21 = _0x2e4825['innerWidth'] / _0x4a8abc;
|
||
var _0x168456 = _0x2e4825['innerHeight'] / _0x3eaf37;
|
||
var _0x24c217 = Math['min'](_0x3b4c21, _0x168456);
|
||
var _0x1297f1 = {
|
||
'w': _0x24c217 * _0x4a8abc,
|
||
'h': _0x24c217 * _0x3eaf37
|
||
};
|
||
_0xb43598['canvas']['style']['width'] = _0x1297f1['w'];
|
||
_0xb43598['canvas']['style']['height'] = _0x1297f1['h'];
|
||
if (_0x3b4c21 < _0x168456) {
|
||
document['body']['style']['marginTop'] = (_0x2e4825['innerHeight'] - _0x1297f1['h']) / 0x2;
|
||
} else {
|
||
document['body']['style']['marginTop'] = 0x0;
|
||
}
|
||
}
|
||
var _0x2ece2a = {
|
||
'type': Phaser['AUTO'],
|
||
'width': _0x4a8abc,
|
||
'height': _0x3eaf37,
|
||
'backgroundColor': '#000000',
|
||
'parent': 'game',
|
||
'autoResize': !![],
|
||
'scene': [_0x6acfe0, _0x22f8fb, _0x3825b2, _0x17c664, _0x3dca12, _0x56463f, _0x46b0d0, _0x270c31, _0x39bbc7, _0x3cd001, _0x2e8211, _0x5c2176, _0x2c24bb, _0x5b913b, _0x4ffa0c, _0xa91134, _0x20046a, _0x17823f, _0xf75bed, _0x33f178, _0xd9f8ad, _0x86619a, _0x451616, _0x21f62d, _0x2e8ac0, _0x448542, _0x2bf10f, _0x3b270f, _0x10c95a, _0x2c58db, _0xd60327, _0x23a504, _0x1f1a7c, _0x300eff, _0x2731ee, _0xfea27f, _0xe57b7a, _0x30e738, _0x31d425, _0x5575da, _0x333a49, _0x583b89, _0x3f551d, _0x5ec77, _0x5a09dd, _0x2fabe2, _0x5c5033, _0x2f0131, _0x4100f7, _0x332739, _0x4a3564, _0x42a2f2, _0x544d05, _0x1f94f3, _0x1465cb, _0x405da0, _0x2071a0, _0x3795b4, _0x298e75, _0x27b738, _0x402532, _0x1db563, _0x459675, _0x31fee6, _0x48ea9e, _0x8115aa, _0x4a0537, _0xf2798b, _0x1f477f, _0x274f34, _0x496d0a, _0x945e32, _0x1d92cb, _0x693eb1, _0x2035fb, _0x5ab5f6, _0x32f3e5, _0x2752f8, _0x295c75, _0x14017e, _0x4e1e39, _0x1a9bae, _0x1c7894, _0x5b83b7, _0x21b10f, _0x3b6826, _0x4276e8, _0x4740fc, _0x211389, _0x2f6d9f, _0x493231, _0x3c4486, _0xc96ce3, _0x1accd0, _0x2c7910, _0x1b48c1, _0x4c15fd, _0x3b2761, _0x3d4eae, _0x429984, _0x4e27af, _0xc62afc, _0x93665b, _0x4e7ed4, _0x19fd9d, _0x196537]
|
||
};
|
||
|
||
function _0x4937e6() {
|
||
if (typeof Storage !== 'undefined') {
|
||
localStorage['setItem']('gameState', JSON['stringify'](_0x280656));
|
||
} else {
|
||
return;
|
||
}
|
||
}
|
||
|
||
function _0x28715f() {
|
||
var _0x138df7;
|
||
if (typeof Storage !== 'undefined') {
|
||
var _0x361b4c = localStorage['getItem']('gameState');
|
||
if (_0x361b4c) {
|
||
_0x138df7 = JSON['parse'](_0x361b4c);
|
||
}
|
||
}
|
||
if (!_0x138df7) {
|
||
_0x138df7 = _0x5cf1c6();
|
||
}
|
||
_0x280656 = _0x138df7;
|
||
_0x280656['inventory']['active'] = null;
|
||
}
|
||
|
||
function _0x5cf1c6() {
|
||
return {
|
||
'inventory': {
|
||
'open': ![],
|
||
'items': ['inv_key0'],
|
||
'used': {},
|
||
'active': null,
|
||
'counter': {
|
||
'inv_key0': 0x1
|
||
}
|
||
},
|
||
'events': {},
|
||
'scene': 'tb03',
|
||
'lastScene': '',
|
||
'music': !![],
|
||
'sound': !![]
|
||
};
|
||
}
|
||
var _0xb43598;
|
||
var _0x280656 = _0x5cf1c6();
|
||
|
||
function _0x74418() {
|
||
_0x28715f();
|
||
_0xb43598 = new Phaser['Game'](_0x2ece2a);
|
||
_0xb43598['addInventoryItem'] = function(_0x15ead1) {
|
||
_0x280656['inventory']['items']['push'](_0x15ead1);
|
||
_0x4937e6();
|
||
};
|
||
_0xb43598['useInventoryItem'] = function(_0x13f934) {
|
||
var _0x1fdcef = _0x280656['inventory']['items']['indexOf'](_0x13f934);
|
||
if (_0x1fdcef < 0x0) {
|
||
return;
|
||
}
|
||
_0x280656['inventory']['items']['slice'](_0x1fdcef, 0x1);
|
||
_0x4937e6();
|
||
};
|
||
_0xb43598['getInventoryActive'] = function() {
|
||
return _0x280656['inventory']['active'];
|
||
};
|
||
_0xb43598['isInventoryActive'] = function(_0x151caa) {
|
||
return _0x280656['inventory']['active'] == _0x151caa;
|
||
};
|
||
_0xb43598['setEvent'] = function(_0x3ce1e6, _0x133476) {
|
||
_0x280656['events'][_0x3ce1e6] = _0x133476;
|
||
_0x4937e6();
|
||
};
|
||
_0xb43598['getEvent'] = function(_0x1694d5) {
|
||
return _0x280656['events'][_0x1694d5];
|
||
};
|
||
_0xb43598['setActiveScene'] = function(_0x3b130a) {
|
||
_0x280656['scene'] = _0x3b130a;
|
||
_0x4937e6();
|
||
};
|
||
_0xb43598['bgMusic'] = {
|
||
'sfx': null,
|
||
'name': null
|
||
};
|
||
_0xb43598['isFullscreen'] = ![];
|
||
_0xb43598['isFullscreenKey'] = ![];
|
||
if (document['addEventListener']) {
|
||
document['addEventListener']('webkitfullscreenchange', _0x2b7385, ![]);
|
||
document['addEventListener']('mozfullscreenchange', _0x2b7385, ![]);
|
||
document['addEventListener']('fullscreenchange', _0x2b7385, ![]);
|
||
document['addEventListener']('MSFullscreenChange', _0x2b7385, ![]);
|
||
}
|
||
_0x2e4825['onresize'] = _0x493b23;
|
||
|
||
function _0x2b7385() {
|
||
if (_0xb43598['isFullscreen'] && !_0xb43598['isFullscreenKey']) {
|
||
_0x4fa2b2();
|
||
}
|
||
_0xb43598['isFullscreen'] = !_0xb43598['isFullscreen'];
|
||
_0xb43598['isFullscreenKey'] = ![];
|
||
}
|
||
}
|
||
_0x74418();
|
||
|
||
function _0x4b8176() {
|
||
_0x280656 = _0x5cf1c6();
|
||
_0x4937e6();
|
||
_0x2e4825['location']['reload']();
|
||
}
|
||
|
||
function _0x4812c7() {
|
||
var _0x2f429b = '';
|
||
var _0x14ec24 = [];
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0xb43598['scene']['scenes']['length']; _0x5a8aa6++) {
|
||
var _0x5a4ddc = _0xb43598['scene']['scenes'][_0x5a8aa6];
|
||
if (!_0x5a4ddc['name']) continue;
|
||
_0x14ec24['push'](_0x5a4ddc['name']);
|
||
}
|
||
_0x14ec24['sort']();
|
||
for (var _0x5a8aa6 = 0x0; _0x5a8aa6 < _0x14ec24['length']; _0x5a8aa6++) {
|
||
_0x2f429b += '<option\x20value=\x22' + _0x14ec24[_0x5a8aa6] + '\x22>' + _0x14ec24[_0x5a8aa6] + '</option>';
|
||
}
|
||
document['getElementById']('scene_select')['innerHTML'] = _0x2f429b;
|
||
}
|
||
|
||
function _0x3b838f() {
|
||
var _0x68ed18 = document['getElementById']('scene_select')['options'];
|
||
if (typeof _0x68ed18['selectedIndex'] === 'undefined') return;
|
||
var _0x2e9829 = _0x68ed18[_0x68ed18['selectedIndex']]['value'];
|
||
var _0x22d418 = _0x20156a();
|
||
if (_0x22d418 && _0x22d418['name']) {
|
||
_0x22d418['scene']['transition']({
|
||
'target': _0x2e9829,
|
||
'duration': 0x1,
|
||
'data': {
|
||
'scene': _0x22d418['name']
|
||
}
|
||
});
|
||
}
|
||
}
|
||
}(window)); |