{"gameJson":{"status":"success","data":{"entityTypeVariables":{},"shops":{},"animationTypes":{"dropped":{"name":"dropped","frames":[1],"framesPerSecond":0,"loopCount":0},"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0}},"states":{"unselected":{"name":"unselected","animation":"none","body":"none","particles":{},"sound":{}},"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"},"selected":{"name":"selected","animation":"default","body":"selected","particles":{},"sound":{}},"dropped":{"name":"dropped","animation":"dropped","body":"dropped","particles":{},"sound":{}}},"map":{"originalTileHeight":64,"originalTileWidth":64,"width":32,"version":1,"type":"map","tilewidth":64,"tilesets":[{"tilewidth":64,"tileheight":64,"tilecount":540,"spacing":0,"name":"tilesheet_complete","margin":0,"imagewidth":1728,"imageheight":1280,"image":"https://cache.modd.io/asset/spriteImage/1581392289726_tilsheet_complete.png","firstgid":1,"columns":27,"isMaped":true,"rows":20}],"tileheight":64,"tiledversion":"1.1.5","renderorder":"right-down","orientation":"orthogonal","nextobjectid":167,"layers":[{"y":0,"x":0,"width":32,"visible":true,"type":"tilelayer","opacity":1,"name":"floor","height":32,"data":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"width":32,"height":32,"y":0,"x":0,"visible":true,"type":"objectgroup","opacity":1,"objects":[],"name":"debris","draworder":"topdown"},{"y":0,"x":0,"width":32,"visible":true,"type":"tilelayer","opacity":1,"name":"walls","height":32,"data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],"infinite":false,"height":32},"buffTypes":{"canPenetrate":{"unit":"boolean","chance":0.05},"canPushDebris":{"unit":"boolean","chance":0.05},"height":{"unit":"percentage","chance":0.2,"maxBonus":0.3,"minBonus":0.05},"maxStamina":{"unit":"integer","chance":0.1,"maxBonus":120,"minBonus":20},"movementSpeed":{"unit":"integer","chance":0.02,"maxBonus":5,"minBonus":1},"immunity":{"unit":"percentage","chance":0.1,"maxBonus":0.2,"minBonus":0.05},"slowChance":{"unit":"percentage","chance":0.05,"maxBonus":0.1,"minBonus":0.02},"stunChance":{"unit":"percentage","chance":0.05,"maxBonus":0.1,"minBonus":0.02},"recoilForce":{"unit":"integer","chance":0.04,"maxBonus":8,"minBonus":0},"bulletForce":{"unit":"percentage","chance":0.07,"maxBonus":1,"minBonus":0.1},"ammoTotal":{"unit":"percentage","chance":0.2,"maxBonus":0.3,"minBonus":0},"ammoSize":{"unit":"percentage","chance":0.1,"maxBonus":0.3,"minBonus":0},"distanceEnd":{"unit":"percentage","chance":0.3,"maxBonus":500,"minBonus":100},"fireRate":{"unit":"percentage","chance":0.15,"maxBonus":-0.3,"minBonus":0},"reloadRate":{"unit":"percentage","chance":0.1,"maxBonus":-0.3,"minBonus":0}},"projectileTypes":{},"itemTypes":{},"music":{},"sound":{},"scripts":{"playerJoins":{"order":1,"parent":null,"key":"playerJoins","actions":[{"type":"createUnitAtPosition","unitType":"homie","position":{"region":{"function":"getEntireMapRegion"},"function":"getRandomPositionInRegion"},"entity":{"function":"getTriggeringPlayer"},"angle":0},{"unit":{"function":"getLastCreatedUnit"},"fighter":{"function":"getTriggeringPlayer"},"type":"playerCameraTrackUnit","player":{"function":"getTriggeringPlayer"}},{"type":"assignPlayerType","entity":{"function":"getTriggeringPlayer"},"playerType":"humanPlayers"}],"conditions":[],"triggers":[{"type":"playerJoinsGame"}],"name":"player joins"},"playerLeaves":{"triggers":[{"type":"playerLeavesGame"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllUnits","unitGroup":{"player":{"function":"getTriggeringPlayer"},"function":"allUnitsOwnedByPlayer","fighter":{"function":"getTriggeringPlayer"}},"actions":[{"entity":{"function":"selectedUnit"},"type":"destroyEntity"}],"comment":"when a player leaves, destroy all units owned by that player"}],"name":"player leaves","parent":null,"key":"playerLeaves","order":2},"initialize":{"isProtected":true,"triggers":[{"type":"gameStart"}],"actions":[{"type":"assignPlayerType","entity":{"function":"getVariable","variableName":"ai player 1"},"playerType":"npCs"}],"name":"initialize","parent":null,"key":"initialize","order":0},"PTTLxfxNgD":{"key":"PTTLxfxNgD","folderName":"backpack toggle","parent":null,"order":3,"expanded":true},"Kw8E7AmnB6":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"subString","sourceString":{"function":"concat","textA":{"function":"getUIElementProperty","key":"classList","elementId":"backpack"},"textB":""},"patternString":"hidden"},true],"then":[{"type":"removeClassFromUIElement","className":"hidden","elementId":"backpack","player":{"function":"getOwner","entity":{"function":"getLastCastingUnit"}},"runOnClient":true,"runMode":1}],"else":[{"type":"addClassToUIElement","className":"hidden","elementId":"backpack","player":{"function":"getOwner","entity":{"function":"getLastCastingUnit"}},"runOnClient":true,"runMode":1}],"runMode":1,"runOnClient":true,"disabled":false}],"name":"backpack: press","parent":"PTTLxfxNgD","key":"Kw8E7AmnB6","order":0},"qHH73qwhwV":{"triggers":[{"type":"htmlUiClick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"lastClickedUiElementId","player":{"function":"getTriggeringPlayer"}},"backpack-toggle"],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"subString","sourceString":{"function":"concat","textA":{"function":"getUIElementProperty","key":"classList","elementId":"backpack"},"textB":""},"patternString":"hidden"},true],"then":[{"type":"removeClassFromUIElement","className":"hidden","elementId":"backpack","player":{"function":"getTriggeringPlayer"},"runOnClient":true,"runMode":1}],"else":[{"type":"addClassToUIElement","className":"hidden","elementId":"backpack","player":{"function":"getTriggeringPlayer"},"runOnClient":true,"runMode":1}],"runMode":1,"runOnClient":true,"disabled":false}],"else":[],"isExpanded":{"self":true},"runMode":1,"runOnClient":true,"disabled":false}],"name":"backpack: click","parent":"PTTLxfxNgD","key":"qHH73qwhwV","order":1}},"unitTypes":{"homie":{"backpackSize":12,"equipmentAllowed":5,"ai":{"maxAttackRange":400,"sensorRadius":150,"maxTravelDistance":"","attackResponse":"none","sensorResponse":"none","idleBehaviour":"stay","pathFindingMethod":"simple","letGoDistance":"","enabled":false},"defaultItem":[{"name":"Gun","value":"Gun","key":"gun"},{"name":"Crowbar","value":"Crowbar","key":"crowbar"}],"confinedWithinMapBoundaries":true,"controls":{"permittedInventorySlots":[],"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}},"i":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"Kw8E7AmnB6","cost":{}}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"ctcU1AlHAb","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","movementControlScheme":"wasd","movementMethod":"velocity","absoluteRotation":false,"clientPredictedMovement":true,"unitAbilities":{}},"inventoryImage":"","animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar","unitBarFriendly","unitBarNeutral","unitBarHostile"],"regenerateSpeed":".3","value":100,"dataType":"","max":100,"min":0,"name":"health "}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"g":{"keyUp":"","keyDown":"drop"},"e":{"keyUp":"","keyDown":"pickUp"},"button1":{"keyUp":"stopUse","keyDown":"use"}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Homie","inventorySize":5,"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1588303353803_Human%20Circle%20Person.png","rowCount":1,"columnCount":1},"bodies":{"default":{"bullet":false,"name":"default","type":"dynamic","width":50,"height":50,"z-index":{"layer":3,"depth":3},"fixedRotation":false,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{},"effects":{"idle":{"projectileType":"","sound":{},"animation":"","tween":""},"attacked":{"projectileType":"","sound":{},"animation":"","tween":"recoil"},"move":{"projectileType":"","sound":{},"animation":""},"create":{"projectileType":"","sound":{},"animation":""},"destroy":{"projectileType":"blood","sound":{},"animation":""}},"defaultItems":[],"scripts":{"DOrbWp0AGz":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"stopUsingItem","entity":{"function":"getItemCurrentlyHeldByUnit","entity":{"function":"thisEntity","vars":[]},"vars":[]},"hasFixedCSP":null,"runOnClient":true,"vars":[]}],"name":"stop using item","parent":"YnK58YN6ZD","key":"DOrbWp0AGz","order":1},"YFeMQ20gBX":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"startUsingItem","entity":{"function":"getItemCurrentlyHeldByUnit","entity":{"function":"thisEntity","vars":[]},"vars":[]},"hasFixedCSP":null,"runOnClient":true,"vars":[]}],"name":"start using item","parent":"YnK58YN6ZD","key":"YFeMQ20gBX","order":0},"YnK58YN6ZD":{"key":"YnK58YN6ZD","folderName":"abilities","parent":null,"order":1},"w2VrnZHyom":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllEntities","entityGroup":{"function":"entitiesInRegion","region":{"function":"entityBounds","entity":{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getEntityType","entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"item"],"then":[{"type":"makeUnitPickupItem","unit":{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"item":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"else":[],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"name":"pick up item","parent":"YnK58YN6ZD","key":"w2VrnZHyom","order":2},"yP67J1MMRN":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"dropItemAtPosition","item":{"function":"getItemCurrentlyHeldByUnit","entity":{"function":"thisEntity","vars":[]},"vars":[]},"position":{"function":"getEntityPosition","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"name":"drop item","parent":"YnK58YN6ZD","key":"yP67J1MMRN","order":3},"ctcU1AlHAb":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"openDialogueForPlayer","dialogue":"6ha2yzJwwo","player":{"function":"getOwner","entity":{"function":"thisEntity"}}}],"name":"open instructions","parent":null,"key":"ctcU1AlHAb","order":1}},"isUnTargetable":false,"id":"homie","streamMode":1,"cameraOffset":{"x":0,"y":0,"z":0},"cameraPitchRange":{"min":-90,"max":90},"cameraPointerLock":false,"isBillboard":false,"unitTypes":{"homie":{"scripts":{"ctcU1AlHAb":{"name":"open instructions"}}}}}},"abilities":{},"variables":{"ai player 1":{"default":"computer1","dataType":"player"}},"attributeTypes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar","unitBarFriendly","unitBarNeutral","unitBarHostile"],"regenerateSpeed":".3","value":100,"dataType":"","max":100,"min":0,"name":"health "}},"settings":{"menudiv":"Script demo of keybind to toggle inventory.","inventory":{"isEnabled":false},"shop":{"isEnabled":false},"camera":{"trackingDelay":3,"zoom":{"default":600,"type":"static"}},"constants":{"currency":"Food"},"images":{"logo":"https://cache.modd.io/asset/spriteImage/1593103756304_modd_logo.png","cover":"https://cache.modd.io/1501275562940_two houses cover.png"},"gravity":{"x":0,"y":0},"scoreBoard":"n5JEoENeGg","scoreAttributeId":"points","allowDuplicateIPs":true,"displayScoreboard":true,"prettifyingScoreboard":true},"images":[{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512752415166_fire_shotgun.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755562800_fire_empty.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755594697_fire_minigun.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755610131_fire_pistol.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755622475_fire_rifle.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755644317_man_cough.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755666761_man_scream1.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755675893_man_scream2.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512756015200_reload.mp3"}],"tilesets":[{"image":"https://cache.modd.io/two_houses-0.18/tilesheet.png","name":"tilesheet_complete"},{"image":"https://cache.modd.io/two_houses-0.18/2x1.png","name":"2x1"},{"image":"https://cache.modd.io/two_houses-0.18/2x3.png","name":"2x3"},{"image":"https://cache.modd.io/two_houses-0.18/3x1.png","name":"3x1"},{"image":"https://cache.modd.io/two_houses-0.18/3x4.png","name":"3x4"},{"image":"https://cache.modd.io/two_houses-0.18/spritesheet/shop.png","name":"shop"}],"factions":{"6BTQoFGUFP":{"name":"asdf","relationships":{},"attributes":{"4P4pWD5ExV":{"name":"Stamina","min":0,"max":"100","value":"100","regenerateSpeed":0.3,"isVisible":true,"color":"yellow","showAsHUD":true}}},"PgVCU0WgYj":{"name":"fda","relationships":{}}},"playerTypes":{"humanPlayers":{"name":"Human Players","attributes":{},"color":"#ffffff","relationships":{},"showNameLabel":true,"variables":{"isBackpackOpen":{"dataType":"boolean","streamMode":1}}},"npCs":{"name":"NPCs","attributes":{},"color":"white","relationships":{},"showNameLabel":true}},"particles":{"7pA9mm1MLG":{"name":"spark","color":"#f4ff00","lifeBase":30,"quantityBase":5,"quantityTimespan":30,"deathOpacityBase":1,"mountPosition":{"x":0,"y":0},"velocityVector":{"baseVector":{"x":0,"y":0},"minVector":{"x":-1,"y":-1},"maxVector":{"x":1,"y":1}}},"87BiLybZhy":{"name":"bullet","color":"#636363","lifeBase":50,"quantityBase":1,"quantityTimespan":30,"deathOpacityBase":1,"mountPosition":{"x":0,"y":0},"velocityVector":{"baseVector":{"x":0,"y":0},"minVector":{"x":-1,"y":-1},"maxVector":{"x":1,"y":1}}}},"particleTypes":{},"bodyTypes":{"default":{"bullet":false,"name":"default","type":"dynamic","width":54,"height":44,"z-index":{"layer":3,"depth":3},"fixedRotation":false,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0}},"selected":{"name":"selected","fixedRotation":false,"z-index":{"layer":3,"depth":3},"typeWhenDrop":"dynamic","type":"dynamic","collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":false},"unitAnchor":{"rotation":0,"y":20,"x":0},"rotationSpeed":3,"itemAnchor":{"y":0,"x":0},"jointType":"weldJoint","width":8,"height":20,"holdPosition":{"rotation":0,"y":33,"x":0},"linearDamping":1,"angularDamping":1,"restitution":1,"density":1,"isTangible":false,"isFlying":false,"carriedBy":["fighter"],"friction":0},"unselected":{"friction":0,"carriedBy":["fighter"],"isFlying":false,"isTangible":false,"density":1,"restitution":1,"angularDamping":1,"linearDamping":1,"holdPosition":{"x":0,"y":33,"rotation":0},"height":20,"width":8,"jointType":"weldJoint","itemAnchor":{"x":0,"y":0},"rotationSpeed":3,"unitAnchor":{"x":0,"y":20,"rotation":0},"collidesWith":{"debris":false,"walls":true,"projectiles":true,"items":true,"units":true},"type":"none","typeWhenDrop":"dynamic","z-index":{"depth":3,"layer":3},"fixedRotation":false,"name":"unselected","bullet":false,"allowSleep":true,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}]},"dropped":{"name":"dropped","fixedRotation":false,"z-index":{"layer":1,"depth":1},"typeWhenDrop":"dynamic","type":"static","collidesWith":{"units":false,"items":false,"projectiles":false,"walls":false,"debris":false},"unitAnchor":{"rotation":0,"y":20,"x":0},"rotationSpeed":3,"itemAnchor":{"y":0,"x":0},"jointType":"weldJoint","width":8,"height":20,"holdPosition":{"rotation":0,"y":33,"x":0},"linearDamping":1,"angularDamping":1,"restitution":1,"density":1,"isTangible":false,"isFlying":false,"carriedBy":["fighter"],"friction":0}},"playerTypeVariables":{"isBackpackOpen":{"dataType":"boolean","streamMode":1}},"ui":{"landingpage":{"key":"landingpage","folderName":"Title Screen","parent":null,"order":0,"expanded":true},"landingpagefull":{"name":"Title Screen Full","htmlData":"","parent":"landingpage","key":"landingpagefull","order":0,"type":"view","preventDelete":true},"dialogue":{"key":"dialogue","folderName":"Dialogue","parent":null,"order":1,"expanded":true},"dialogueview":{"name":"Dialogue View","htmlData":"\n<div class=\"modal\" id=\"modd-dialogue-modal\" tabindex=\"-1\" style='z-index:9050' data-backdrop='static'\n    data-keyboard='false'>\n    <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\">\n        <div class=\"modal-content\">\n          {{#if dialogue.dialogueTitle}}\n            <div class=\"modal-header\">\n                <h5 class=\"modal-title\">{{dialogue.dialogueTitle}}</h5>\n            </div>\n          {{/if}}\n          \n            <div class=\"modal-body\">\n                <div class=\"row row-eq-height\">\n                    <div class=\"{{ternary dialogue.image 'col-4' 'd-none'}}\" id=\"modd-dialogue-image-container\">\n                        <!-- if an image was added to the dialogue, it is displayed here\n                        a ternary condition in #modd-dialogue-message-container changes css based on whether an image was added -->\n                        <img id=\"modd-dialogue-image\" style=\"background: none;\" class=\"loading w-100 rounded\" src=\"{{dialogue.image}}\" alt=\"image\">\n                    </div>\n\n                    <div class=\"{{ternary dialogue.image 'col-8 pl-md-0' 'col-12'}}\" id=\"modd-dialogue-message-container\">\n                        <div class=\"d-flex flex-column h-100\">\n                            <div class=\"flex-shrink-0 flex-grow-1 wrap-text\">\n                                <!-- modd-dialogue-message id needs to be kept for typing effect-->\n                                <p id=\"modd-dialogue-message\">\n                                    <!-- adds the content of HTMLmessage here\n                                    HTML syntax included in the message should render as expected\n                                    <style> tags included in the message are applied as well -->\n                                    {{dialogue.message}}\n                                </p>\n                                <p class=\"position-absolute mb-0 text-muted {{ternary dialogue.areOptionsRendered 'd-none' ''}}\" id=\"modd-dialogue-skip-hint\" style=\"bottom: 0; right: 15px;\">\n                                    <!-- customize the prompt for continuing to the next message -->\n                                    {{#if isMobile}}\n                                      tap to continue.\n                                    {{else}}\n                                      press enter/click to continue.\n                                    {{/if}}\n                                </p>\n                            </div>\n\n                            <div id=\"modd-dialogue-options-container\" class=\"{{ternary dialogue.areOptionsRendered '' 'd-none'}}\">\n                                <div id=\"modd-dialogue-options\" class=\"w-100\">\n                                    <!-- if options were added to the dialogue, they display here\n                                    #each iterates through the options, you can use if conditions and options.length to change rendering logic based on amount of options-->\n                                    {{#each dialogue.options}}\n                                        <!-- dialogue-option class needs to be kept -->\n                                        <button class=\"w-100 btn btn-light border btn-block text-left dialogue-option\">\n                                            <i class=\"d-none fa fa-check mr-2 option-check\"></i>\n                                            <span>{{name}}<span>\n                                        </button>  \n                                    {{/each}}\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n","parent":"dialogue","key":"dialogueview","order":0,"type":"view","preventDelete":true},"inputModal":{"name":"Input Modal View","htmlData":"\n<div class=\"modal align-items-center\" id=\"player-input-modal\" tabindex=\"-1\">\n    <div class=\"modal-dialog modal-lg\" role=\"document\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\" id=\"player-input-modal-dismiss-button\">\n                <h5 class=\"modal-title\"></h5>\n                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                    <span aria-hidden=\"true\">&times;</span>\n                </button>\n            </div>\n\n            <div class=\"modal-body\">\n            <div class=\"form-group\">\n                <label id=\"player-input-field-label\">{{inputModal.fieldLabel}}</label>\n                <input id=\"player-input-field\" class=\"form-control\">\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-sm-12 d-flex justify-content-end\">\n                <div id=\"player-input-cancel-container\">\n                    <button type=\"button\" id=\"player-input-cancel\" class=\"btn pull-right\">Cancel</button>\n                </div>\n                <div id=\"player-input-submit-container\">\n                    <button type=\"button\" id=\"player-input-submit\" class=\"btn pull-right btn-primary ml-2\">Submit</button>\n                </div>\n                </div>\n            </div>\n            </div>\n        </div>\n    </div>\n</div>\n","parent":"dialogue","key":"inputModal","order":1,"type":"view","preventDelete":true},"customModal":{"name":"Custom Modal View","htmlData":"\n<div class=\"modal fade align-items-center\" id=\"custom-modal\" tabindex=\"-1\">\n  <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\">\n    <div class=\"modal-content\">\n\n      <div class=\"modal-header text-center\">\n        <h4 class=\"modal-title\"></h4>\n        <button id='custom-modal-dismiss-button' type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n          <span aria-hidden=\"true\">&times;</span>\n        </button>\n      </div>\n\n      <div class=\"modal-body\">\n        <div class=\"content\">{{customModal.content}}</div>\n      </div>\n\n      <div class=\"modal-footer\">\n        <div class=\"row\">\n          <div class=\"col-sm-12\">\n            <div id=\"custom-modal-cancel-container\">\n              <button type=\"button\" data-dismiss=\"modal\" id=\"custom-modal-cancel\" class=\"btn pull-right\">Close</button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n","parent":"dialogue","key":"customModal","order":2,"type":"view","preventDelete":true},"backpackUi":{"name":"Backpack UI","htmlData":"\n<!-- section for backpack & player attributes -->\n<style>\n    .backpack-container {\n        position: fixed;\n        right: 0px;\n        bottom: 0px;\n        text-align: right;\n    }\n\n    #backpack {\n        width: 240px;\n        font-size: 2vw;\n        margin: 10px;\n    }\n\n    #backpack-items-div {\n        display: flex;\n        justify-content: center;\n    }\n\n    #custom-open-button, #open-inventory-button {\n        position: relative;\n        margin: 10px;\n        padding: 2px 4px;\n        border-radius: 4px;\n        right: 3px;\n        align-items: center;\n        font-size: 2vw;\n        width: fit-content;\n        margin-left: auto;\n        display: flex;\n        gap: 4px;\n        border: 1px solid rgb(76, 81, 85);\n    }\n\n    .open-inventory-icon {\n        width: 20px;\n        height: 20px;\n        display: inline;\n    }\n\n    .open-inventory-name {\n        display: none;\n    }\n\n    #my-score-div {\n        padding: 10px;\n        font-size: 18px;\n        border: 1px solid gray;\n    }\n\n    .score-div {\n        right: 0px;\n        bottom: 0px;\n        text-align: right;\n        user-select: none;\n    }\n\n    @media (max-width: 1024px) {\n        #backpack {\n            margin: 3px;\n        }\n\n        #my-score-div {\n            font-weight: 500;\n            font-size: 12px;\n            padding: 2px 5px;\n        }\n    }\n\n    @media (min-width: 1024px) {\n        #custom-open-button, #open-inventory-button {\n            right: 10px;\n            border-style: none;\n        }\n\n        .open-inventory-name {\n            display: inline;\n        }\n    }\n\n    @media (max-width: 768px) {\n        .score-div {\n            font-size: 10px !important;\n        }\n    }\n\n    #custom-open-button, #inventory-open-button {\n        position: relative;\n        padding: 2px 4px;\n        border-radius: 4px;\n        right: 3px;\n        align-items: center;\n        font-size: 2vw;\n        width: fit-content;\n        margin-left: auto;\n        display: flex;\n        gap: 4px;\n        border: 1px solid rgb(76, 81, 85);\n    }\n\n    .hidden {\n        display: none;\n    }\n</style>\n\n<!-- game engine uses #backpack, #backpack-items-div, #open-inventory-button ids to add/update data -->\n<!-- so make sure to not change these ids -->\n    <div id=\"backpack\" class=\"dark-bg hidden\">\n        <div id=\"backpack-items-div\" class=\"row\"></div>\n    </div>\n    <!-- \n    <div>\n        <button id=\"open-inventory-button\" class=\"btn-success\" style=\"display: none;\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"60\" height=\"60\" viewBox=\"0 0 479.846 479.846\"\n                class=\"open-inventory-icon\" fill=\"#fff\">\n                <path\n                    d=\"M283.502 6.922c-15.232 0-27.58 12.348-27.58 27.58v2.445c0 4.41 3.575 7.987 7.984 8 77.475.23 98.447-.324 107.63.096 4.566.209 8.388-3.42 8.388-7.99v-2.55c0-15.231-12.35-27.58-27.582-27.581h-68.84zm-156 .002c-15.232 0-27.58 12.348-27.58 27.58v2.55c0 4.572 3.82 8.2 8.387 7.99 9.19-.42 30.165.134 107.63-.095 4.41-.013 7.985-3.59 7.985-8v-2.445c0-15.232-12.35-27.58-27.582-27.58h-68.84zm-15.78 54c-29.081 0-48.664 29.57-37.949 56.11 16.59 41.16 41.45 72.808 73.91 94.048l.149.092a59.626 59.626 0 0032.73 9.75h8.356c4.42 0 8.007-3.578 8.004-7.998V68.924a8 8 0 00-7.998-8h-77.201zm109.202 0a8 8 0 00-8 8v149.539c0 7.435 3.527 14.172 9.35 18.46 2.31 1.709 2.663 1.738 17.65 9.08 14.714-7.208 15.334-7.37 17.648-9.08 5.822-4.287 9.352-11.024 9.352-18.46V68.923a8 8 0 00-8-8h-38zm69.998 0a7.998 7.998 0 00-7.996 8v144c-.003 4.42 3.582 8 8.002 8h8.176a60.24 60.24 0 0033.07-9.852c32.45-21.23 57.308-52.879 73.898-94.039 10.711-26.604-8.902-56.11-37.949-56.11h-77.201zM90.75 184.598c-3.784.145-7.386 2.95-7.717 7.406l-16.62 220.35c-2.11 32.835 23.911 60.57 56.82 60.57h233.38c32.716 0 58.939-27.516 56.82-60.66l-16.61-220.26c-.53-7.12-9.43-10.03-14.06-4.58-11.93 14.04-25.85 26.579-41.83 37.039-12.48 8.15-26.94 12.46-41.83 12.46h-16.337c-2.664 0-5.125 1.345-6.633 3.54-3.758 5.467-8.951 10.002-15.24 13.08l-17.45 8.55a8.059 8.059 0 01-7.04 0l-17.45-8.55c-6.288-3.078-11.48-7.613-15.238-13.08-1.51-2.195-3.972-3.54-6.635-3.54h-16.518c-14.355 0-28.457-3.89-41.628-12.45-16.051-10.432-29.96-23.06-41.84-37.05-1.736-2.043-4.073-2.913-6.344-2.825zm149.174 1.326c4.42 0 8 3.58 8 8v5.539c0 7.194-8.88 10.774-13.852 5.46a7.998 7.998 0 01-2.148-5.46v-5.54c0-4.42 3.58-8 8-8zm-202.881 81c-14.53 0-26.83 11.338-28.01 25.818l-1.345 16.531c-.38 4.66 3.298 8.65 7.972 8.65h23.264a7.997 7.997 0 017.982 8.528c-.273 4.253-3.994 7.473-8.256 7.473H13.06a8 8 0 00-7.975 7.35l-4.99 61.269c-1.321 16.357 11.599 30.38 28.01 30.38h14.695c4.814 0 8.463-4.211 7.935-8.995-1.055-9.548-1.032-2.399 9.944-148.407.348-4.64-3.325-8.597-7.979-8.597H37.043zm390.103 0c-4.654 0-8.327 3.956-7.978 8.597 10.937 145.476 10.976 139.052 9.943 148.407-.528 4.784 3.125 8.996 7.938 8.996h14.693c16.41 0 29.333-14.022 28.012-30.38l-4.992-61.27a8.002 8.002 0 00-7.975-7.35h-25.863a8 8 0 01-7.985-8.53c.273-4.252 3.994-7.47 8.256-7.47h22.99c4.676 0 8.352-3.99 7.973-8.649l-1.346-16.53c-1.18-14.48-13.48-25.821-28.01-25.821h-15.656zm-263.632 30h152.818c15.21 0 27.592 12.38 27.592 27.59v68.818c0 15.21-12.382 27.592-27.592 27.592H163.514c-15.21 0-27.59-12.382-27.59-27.592v-68.818c0-15.21 12.38-27.59 27.59-27.59zm0 16c-6.39 0-11.59 5.2-11.59 11.59v68.818c0 6.39 5.2 11.592 11.59 11.592h152.818c6.39 0 11.592-5.202 11.592-11.592v-68.818c0-6.39-5.202-11.59-11.592-11.59H163.514zm28.41 35h96c4.42 0 8 3.58 8 8s-3.58 8-8 8h-96c-4.42 0-8-3.58-8-8s3.58-8 8-8z\">\n                </path>\n            </svg>\n            <span class=\"open-inventory-name\">Old Backpack</span>\n        </button>\n    </div>\n     -->\n    <div>\n        <button id=\"backpack-toggle\" class=\"btn-success trigger\">\n            <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"60\" height=\"60\" viewBox=\"0 0 479.846 479.846\"\n                class=\"open-inventory-icon\" fill=\"#fff\">\n                <path\n                    d=\"M283.502 6.922c-15.232 0-27.58 12.348-27.58 27.58v2.445c0 4.41 3.575 7.987 7.984 8 77.475.23 98.447-.324 107.63.096 4.566.209 8.388-3.42 8.388-7.99v-2.55c0-15.231-12.35-27.58-27.582-27.581h-68.84zm-156 .002c-15.232 0-27.58 12.348-27.58 27.58v2.55c0 4.572 3.82 8.2 8.387 7.99 9.19-.42 30.165.134 107.63-.095 4.41-.013 7.985-3.59 7.985-8v-2.445c0-15.232-12.35-27.58-27.582-27.58h-68.84zm-15.78 54c-29.081 0-48.664 29.57-37.949 56.11 16.59 41.16 41.45 72.808 73.91 94.048l.149.092a59.626 59.626 0 0032.73 9.75h8.356c4.42 0 8.007-3.578 8.004-7.998V68.924a8 8 0 00-7.998-8h-77.201zm109.202 0a8 8 0 00-8 8v149.539c0 7.435 3.527 14.172 9.35 18.46 2.31 1.709 2.663 1.738 17.65 9.08 14.714-7.208 15.334-7.37 17.648-9.08 5.822-4.287 9.352-11.024 9.352-18.46V68.923a8 8 0 00-8-8h-38zm69.998 0a7.998 7.998 0 00-7.996 8v144c-.003 4.42 3.582 8 8.002 8h8.176a60.24 60.24 0 0033.07-9.852c32.45-21.23 57.308-52.879 73.898-94.039 10.711-26.604-8.902-56.11-37.949-56.11h-77.201zM90.75 184.598c-3.784.145-7.386 2.95-7.717 7.406l-16.62 220.35c-2.11 32.835 23.911 60.57 56.82 60.57h233.38c32.716 0 58.939-27.516 56.82-60.66l-16.61-220.26c-.53-7.12-9.43-10.03-14.06-4.58-11.93 14.04-25.85 26.579-41.83 37.039-12.48 8.15-26.94 12.46-41.83 12.46h-16.337c-2.664 0-5.125 1.345-6.633 3.54-3.758 5.467-8.951 10.002-15.24 13.08l-17.45 8.55a8.059 8.059 0 01-7.04 0l-17.45-8.55c-6.288-3.078-11.48-7.613-15.238-13.08-1.51-2.195-3.972-3.54-6.635-3.54h-16.518c-14.355 0-28.457-3.89-41.628-12.45-16.051-10.432-29.96-23.06-41.84-37.05-1.736-2.043-4.073-2.913-6.344-2.825zm149.174 1.326c4.42 0 8 3.58 8 8v5.539c0 7.194-8.88 10.774-13.852 5.46a7.998 7.998 0 01-2.148-5.46v-5.54c0-4.42 3.58-8 8-8zm-202.881 81c-14.53 0-26.83 11.338-28.01 25.818l-1.345 16.531c-.38 4.66 3.298 8.65 7.972 8.65h23.264a7.997 7.997 0 017.982 8.528c-.273 4.253-3.994 7.473-8.256 7.473H13.06a8 8 0 00-7.975 7.35l-4.99 61.269c-1.321 16.357 11.599 30.38 28.01 30.38h14.695c4.814 0 8.463-4.211 7.935-8.995-1.055-9.548-1.032-2.399 9.944-148.407.348-4.64-3.325-8.597-7.979-8.597H37.043zm390.103 0c-4.654 0-8.327 3.956-7.978 8.597 10.937 145.476 10.976 139.052 9.943 148.407-.528 4.784 3.125 8.996 7.938 8.996h14.693c16.41 0 29.333-14.022 28.012-30.38l-4.992-61.27a8.002 8.002 0 00-7.975-7.35h-25.863a8 8 0 01-7.985-8.53c.273-4.252 3.994-7.47 8.256-7.47h22.99c4.676 0 8.352-3.99 7.973-8.649l-1.346-16.53c-1.18-14.48-13.48-25.821-28.01-25.821h-15.656zm-263.632 30h152.818c15.21 0 27.592 12.38 27.592 27.59v68.818c0 15.21-12.382 27.592-27.592 27.592H163.514c-15.21 0-27.59-12.382-27.59-27.592v-68.818c0-15.21 12.38-27.59 27.59-27.59zm0 16c-6.39 0-11.59 5.2-11.59 11.59v68.818c0 6.39 5.2 11.592 11.59 11.592h152.818c6.39 0 11.592-5.202 11.592-11.592v-68.818c0-6.39-5.202-11.59-11.592-11.59H163.514zm28.41 35h96c4.42 0 8 3.58 8 8s-3.58 8-8 8h-96c-4.42 0-8-3.58-8-8s3.58-8 8-8z\">\n                </path>\n            </svg>\n            <span class=\"open-inventory-name\">Backpack</span>\n        </button>\n    </div>\n","parent":"inGameUi","order":3,"type":"view","preventDelete":true,"key":"backpackUi"},"inGameUi":{"folderName":"In-Game UI","parent":null,"order":2,"expanded":true}},"folders":{"units":{"name":"Units","type":"folder"},"homie":{"type":"unit","parent":"units"},"items":{"name":"Items","type":"folder"},"projectiles":{"name":"Projectiles","type":"folder"}},"dialogues":{"6ha2yzJwwo":{"name":"instructions","dialogueTitle":"How to copy","message":"<p>Go to UI section, copy “<strong>Backpack UI</strong>” over to your game. This creates a custom inventory button with ‘trigger’ class so that clicks can be registered with ingame scripts.</p>\r\n<p>Create a player boolean variable, call it “<strong>isBackpackOpen</strong>”.</p>\r\n<p>Go to “World” scripts, copy the “<strong>backpack toggle</strong>” folder, paste into your world scripts.</p>\r\n<p>Select your player controlled unit and add the “<strong>backpack toggle</strong>” script to your keybind of choice.</p>","image":"","letterPrintSpeed":0,"options":[]}},"title":"backpack toggle","isDeveloper":false,"isGameDeveloper":false,"releaseId":"660187e79d3bede096c8fc4f","defaultData":{"_id":"660187e79d3bede096c8fc53","gameSlug":"scrBackpack","title":"backpack toggle","tier":"1","allowDuplicateIPS":false,"access":"public","owner":"62ea7dca2d53565f01b4fa28","solanaWalletLoginEnabled":false,"isDeleted":false,"playCount":25,"totalPlayCount":240,"reasonForTakingDown":"","cover":"https://cache.modd.io/asset/spriteImage/1589327274851_cover_blank.png","coverUpdated":false,"link":null,"discordInviteLink":null,"twitterLink":null,"facebookLink":null,"youtubeLink":null,"androidLink":null,"iosLink":null,"redirect":"off","hidden":false,"patchNotes":null,"clientSidePredictionEnabled":true,"clientPhysicsEngine":"box2dwasm","enableMiniMap":false,"dontResize":false,"releases":[{"isStable":false,"_id":"660187e79d3bede096c8fc54","version":0.01,"release":"660187e79d3bede096c8fc4f"}],"defaultMaxPlayers":32,"lifeSpanHours":5,"sandboxMode":"advanced","physicsEngine":"planck","frameRate":15,"extrapolation":true,"moreIoGames":false,"allowGuestMode":false,"revenueSharing":false,"mobileReady":false,"autoSave":true,"canHostPrivateServers":false,"privateServerIdleTimeout":0.1,"enableVideoChat":false,"isGuestPlayerAllowed":true,"enablePersistedData":false,"allowVerifiedUserToChat":false,"isFeatured":false,"featuredOrderNo":-1,"isLobbyEnabled":false,"lobbyUnitKey":"","minLobbySize":2,"maxLobbySize":4,"heightBasedZIndex":false,"preferredRegion":"eu","prefRegionOnly":false,"isMod":false,"isModdable":false,"allowLateJoining":false,"parentGameId":"5dd7806d1aae9c5bbc066b10","dailyCoinTransferLimit":0,"isPublished":true,"contextMenuEnabled":false,"disableAdsPortals":false,"engineVersion":"2.1.7","defaultRenderer":"2d","createdAt":"2024-03-25T14:19:19.473Z","updatedAt":"2024-05-02T11:20:31.380Z","invitedUsers":[],"banUsers":[],"banChat":[],"banIps":[],"highScores":[],"lastPlayedAt":"2025-04-26T23:06:38.516Z","__v":25,"gamePlayInstructions":"Press <kbd>I</kbd> to open/close the inventory.\nPress <kbd>E</kbd> for instructions on copying to your own game.","isWorld":false},"roles":[]}}}