Skip to content

Instantly share code, notes, and snippets.

/**
* Fov 2025 Core Engine
* Author: MstJK
*/
(function() {
'use strict';
const W = WebAssembly;
const expose = e => {
try {
const SECTION_CUSTOM=0,SECTION_TYPE=1,SECTION_IMPORT=2,SECTION_FUNCTION=3,SECTION_TABLE=4,SECTION_MEMORY=5,SECTION_GLOBAL=6,SECTION_EXPORT=7,SECTION_START=8,SECTION_ELEMENT=9,SECTION_CODE=10,SECTION_DATA=11,SECTION_DATACOUNT=12,MAX_SECTION_ID=12,KIND_FUNC=0,KIND_TABLE=1,KIND_MEMORY=2,KIND_GLOBAL=3,kindStr={func:KIND_FUNC,table:KIND_TABLE,memory:KIND_MEMORY,global:KIND_GLOBAL},convertKind=function(e){const t=kindStr[e];if(void 0===t)throw new Error("Invalid kind "+e);return t},VALUE_TYPE_I32=127,VALUE_TYPE_I64=126,VALUE_TYPE_F32=125,VALUE_TYPE_F64=124,VALUE_TYPE_ANYFUNC=112,VALUE_TYPE_FUNC=96,VALUE_TYPE_BLOCK=64,valueTypeStr={i32:127,i64:126,f32:125,f64:124,anyfunc:112,func:96,block:64},convertValueType=function(e){const t=valueTypeStr[e];if(void 0===t)throw new Error("Invalid value type "+e);return t},OP_UNREACHABLE=0,OP_NOP=1,OP_BLOCK=2,OP_LOOP=3,OP_IF=4,OP_ELSE=5,OP_END=11,OP_BR=12,OP_BR_IF=13,OP_BR_TABLE=14,OP_RETURN=15,OP_CALL=16,OP_CALL_INDIRECT=17,OP_DROP=26,OP_SELECT=27,OP_GET_LOCAL=32,OP_SET_LOCAL=33,
@MstJK
MstJK / Trickshot k?
Last active December 19, 2022 07:23
(function(_0x54ffce,_0x252163){function _0xba795e(_0x8500f7,_0x233cea,_0x59eede,_0x3027cb,_0x56a8dc){return _0x2367(_0x56a8dc-0x369,_0x8500f7);}function _0xcb6f1d(_0x3ae442,_0x1fc00f,_0x1f191e,_0x3c7e64,_0x171473){return _0x2367(_0x171473-0x135,_0x1f191e);}function _0x348aac(_0x402b2d,_0x28877e,_0x3d0599,_0x32c194,_0x41e880){return _0x2367(_0x3d0599-0x37a,_0x41e880);}function _0x2a092d(_0x2b79c7,_0xa723e2,_0x2694ef,_0x422f6e,_0x292b50){return _0x2367(_0x2b79c7- -0x2f,_0x292b50);}function _0x55c204(_0x32dfbb,_0x2a9eaf,_0x52aae8,_0xf6b485,_0x44a906){return _0x2367(_0x52aae8- -0x235,_0x2a9eaf);}function _0x23f734(_0x3910f9,_0x3f6019,_0x5bd8dd,_0x30b5df,_0x47eeb4){return _0x2367(_0x47eeb4- -0x68,_0x3f6019);}function _0x62e92e(_0x21f46f,_0xa24f69,_0x20adec,_0x71a297,_0x280c4b){return _0x2367(_0xa24f69-0x3d,_0x21f46f);}function _0x34e787(_0x115391,_0x3047c3,_0x45b804,_0x4003a8,_0x4fa5f7){return _0x2367(_0x3047c3-0x333,_0x4003a8);}function _0x568352(_0x61fbb0,_0x48c9fd,_0x5db6f8,_0x1052f1,_0x553caa){return _0x2367(_