diff --git a/game.json b/game.json index 095105a..d3b340e 100644 --- a/game.json +++ b/game.json @@ -582,6 +582,24 @@ "name": "кот_лижет_лужу_без_языка.png", "smoothed": true, "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "мышь.png", + "kind": "image", + "metadata": "", + "name": "мышь.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "крышка-подпола.png", + "kind": "image", + "metadata": "", + "name": "крышка-подпола.png", + "smoothed": true, + "userAdded": true } ], "resourceFolders": [] @@ -614,7 +632,7 @@ "gridWidth": 32, "snap": true, "windowMask": false, - "zoomFactor": 1 + "zoomFactor": 0.9838 }, "objectsGroups": [], "variables": [ @@ -653,6 +671,15 @@ { "name": "CK_AH_K", "value": "0.05" + }, + { + "name": "KP_nO", + "children": [ + { + "name": "YrOJI", + "value": "0" + } + ] } ], "instances": [ @@ -680,8 +707,8 @@ "locked": false, "name": "nOJI", "persistentUuid": "3cec120a-dfae-46ec-8a05-845983c7004a", - "width": 2000, - "x": -440, + "width": 1550, + "x": 20, "y": 578, "zOrder": 2, "numberProperties": [], @@ -697,8 +724,8 @@ "name": "KO", "persistentUuid": "c5eaa6c9-a5cd-4683-b811-a516b3d2a9a5", "width": 0, - "x": -64, - "y": 355, + "x": 170, + "y": 381, "zOrder": 4, "numberProperties": [], "stringProperties": [], @@ -857,7 +884,7 @@ "name": "Door", "persistentUuid": "5736b160-2e89-403e-a85e-babd7cae1e39", "width": 211, - "x": -312, + "x": -362, "y": 196, "zOrder": 1, "numberProperties": [], @@ -1039,6 +1066,117 @@ "numberProperties": [], "stringProperties": [], "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 46, + "layer": "", + "locked": false, + "name": "MbILLIb", + "persistentUuid": "e926c918-25b5-4811-b949-22fac3e0360d", + "width": 65, + "x": 275, + "y": 196, + "zOrder": 13, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 24, + "layer": "", + "locked": false, + "name": "KP_nO", + "persistentUuid": "9376c29c-24ed-43bd-80ee-ac7fdf192a72", + "width": 146, + "x": -118, + "y": 562, + "zOrder": 14, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 90, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "3c346b07-3862-41ee-86bc-64cebe6deb05", + "width": 600, + "x": -443, + "y": 876, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "1" + } + ] + }, + { + "angle": 0, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "b994eaf9-2590-4e2a-872c-61819094d76d", + "width": 340, + "x": -442, + "y": 578, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "53277b24-9e54-4d54-b323-51857940bead", + "width": 110, + "x": -100, + "y": 578, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "0" + } + ] + }, + { + "angle": 90, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "d39d296a-bac7-4739-97ed-43e1e35ce265", + "width": 600, + "x": -254, + "y": 879, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "1" + } + ] } ], "objects": [ @@ -1088,7 +1226,12 @@ "texture": "пол.jpg", "type": "TiledSpriteObject::TiledSprite", "width": 100, - "variables": [], + "variables": [ + { + "name": "LLIAXTA", + "value": "-1" + } + ], "behaviors": [ { "name": "Platform", @@ -1858,6 +2001,95 @@ ] } ] + }, + { + "name": "MbILLIb", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "мышь.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "name": "KP_nO", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "крышка-подпола.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": false, + "name": "centre", + "x": 52.6836, + "y": 53.8514 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [] + } + ] + } + ] } ], "events": [ @@ -2387,18 +2619,6 @@ "lerp(MO.Y(), Variable(MO_Y), Variable(CK_AH))" ], "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "OT", - "=", - "ToString(MO.Y())" - ], - "subInstructions": [] } ], "events": [] @@ -2585,7 +2805,17 @@ "subInstructions": [] } ], - "events": [] + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": "const KO = runtimeScene.getObjects(\"KO\");\nif (KO.length === 0) return;\nconsole.debug(\"KO pos:\", KO[0].getX(), KO[0].getY());", + "parameterObjects": "", + "useStrict": true, + "eventsSheetExpanded": false + } + ] }, { "disabled": false, @@ -2621,6 +2851,292 @@ } ], "events": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": false, + "name": "ШАХТА", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "DepartScene" + }, + "parameters": [ + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "nOJI" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IsFalling" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "CollisionNP" + }, + "parameters": [ + "KO", + "KP_nO", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "TextObject::String" + }, + "parameters": [ + "OT", + "=", + "\"прыжок+падение+столкновение\"" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "KP_nO", + "=", + "lerp(KP_nO.Angle(), Variable(KP_nO.YrOJI), 0.1)" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "TextObject::String" + }, + "parameters": [ + "OT", + "=", + "ToString(KP_nO.Angle())" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreX" + }, + "parameters": [ + "nOJI", + "=", + "-300" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "nOJI" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "nOJI", + "" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] } ], "layers": [ diff --git a/game.json.autosave b/game.json.autosave index 095105a..d3b340e 100644 --- a/game.json.autosave +++ b/game.json.autosave @@ -582,6 +582,24 @@ "name": "кот_лижет_лужу_без_языка.png", "smoothed": true, "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "мышь.png", + "kind": "image", + "metadata": "", + "name": "мышь.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "крышка-подпола.png", + "kind": "image", + "metadata": "", + "name": "крышка-подпола.png", + "smoothed": true, + "userAdded": true } ], "resourceFolders": [] @@ -614,7 +632,7 @@ "gridWidth": 32, "snap": true, "windowMask": false, - "zoomFactor": 1 + "zoomFactor": 0.9838 }, "objectsGroups": [], "variables": [ @@ -653,6 +671,15 @@ { "name": "CK_AH_K", "value": "0.05" + }, + { + "name": "KP_nO", + "children": [ + { + "name": "YrOJI", + "value": "0" + } + ] } ], "instances": [ @@ -680,8 +707,8 @@ "locked": false, "name": "nOJI", "persistentUuid": "3cec120a-dfae-46ec-8a05-845983c7004a", - "width": 2000, - "x": -440, + "width": 1550, + "x": 20, "y": 578, "zOrder": 2, "numberProperties": [], @@ -697,8 +724,8 @@ "name": "KO", "persistentUuid": "c5eaa6c9-a5cd-4683-b811-a516b3d2a9a5", "width": 0, - "x": -64, - "y": 355, + "x": 170, + "y": 381, "zOrder": 4, "numberProperties": [], "stringProperties": [], @@ -857,7 +884,7 @@ "name": "Door", "persistentUuid": "5736b160-2e89-403e-a85e-babd7cae1e39", "width": 211, - "x": -312, + "x": -362, "y": 196, "zOrder": 1, "numberProperties": [], @@ -1039,6 +1066,117 @@ "numberProperties": [], "stringProperties": [], "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 46, + "layer": "", + "locked": false, + "name": "MbILLIb", + "persistentUuid": "e926c918-25b5-4811-b949-22fac3e0360d", + "width": 65, + "x": 275, + "y": 196, + "zOrder": 13, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 24, + "layer": "", + "locked": false, + "name": "KP_nO", + "persistentUuid": "9376c29c-24ed-43bd-80ee-ac7fdf192a72", + "width": 146, + "x": -118, + "y": 562, + "zOrder": 14, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 90, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "3c346b07-3862-41ee-86bc-64cebe6deb05", + "width": 600, + "x": -443, + "y": 876, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "1" + } + ] + }, + { + "angle": 0, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "b994eaf9-2590-4e2a-872c-61819094d76d", + "width": 340, + "x": -442, + "y": 578, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "53277b24-9e54-4d54-b323-51857940bead", + "width": 110, + "x": -100, + "y": 578, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "0" + } + ] + }, + { + "angle": 90, + "customSize": true, + "height": 22, + "layer": "", + "locked": false, + "name": "nOJI", + "persistentUuid": "d39d296a-bac7-4739-97ed-43e1e35ce265", + "width": 600, + "x": -254, + "y": 879, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [ + { + "name": "LLIAXTA", + "value": "1" + } + ] } ], "objects": [ @@ -1088,7 +1226,12 @@ "texture": "пол.jpg", "type": "TiledSpriteObject::TiledSprite", "width": 100, - "variables": [], + "variables": [ + { + "name": "LLIAXTA", + "value": "-1" + } + ], "behaviors": [ { "name": "Platform", @@ -1858,6 +2001,95 @@ ] } ] + }, + { + "name": "MbILLIb", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "мышь.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "name": "KP_nO", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "крышка-подпола.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": false, + "name": "centre", + "x": 52.6836, + "y": 53.8514 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [] + } + ] + } + ] } ], "events": [ @@ -2387,18 +2619,6 @@ "lerp(MO.Y(), Variable(MO_Y), Variable(CK_AH))" ], "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "OT", - "=", - "ToString(MO.Y())" - ], - "subInstructions": [] } ], "events": [] @@ -2585,7 +2805,17 @@ "subInstructions": [] } ], - "events": [] + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": "const KO = runtimeScene.getObjects(\"KO\");\nif (KO.length === 0) return;\nconsole.debug(\"KO pos:\", KO[0].getX(), KO[0].getY());", + "parameterObjects": "", + "useStrict": true, + "eventsSheetExpanded": false + } + ] }, { "disabled": false, @@ -2621,6 +2851,292 @@ } ], "events": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": false, + "name": "ШАХТА", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "DepartScene" + }, + "parameters": [ + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "nOJI" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IsFalling" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "CollisionNP" + }, + "parameters": [ + "KO", + "KP_nO", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "TextObject::String" + }, + "parameters": [ + "OT", + "=", + "\"прыжок+падение+столкновение\"" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "KP_nO", + "=", + "lerp(KP_nO.Angle(), Variable(KP_nO.YrOJI), 0.1)" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "TextObject::String" + }, + "parameters": [ + "OT", + "=", + "ToString(KP_nO.Angle())" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreX" + }, + "parameters": [ + "nOJI", + "=", + "-300" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "nOJI" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "KP_nO.YrOJI", + "=", + "-90" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarObjet" + }, + "parameters": [ + "nOJI", + "LLIAXTA", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "nOJI", + "" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] } ], "layers": [ diff --git a/крышка-подпола.png b/крышка-подпола.png new file mode 100644 index 0000000..e13e6a2 Binary files /dev/null and b/крышка-подпола.png differ diff --git a/крышка-подпола.xcf b/крышка-подпола.xcf new file mode 100644 index 0000000..0772e3a Binary files /dev/null and b/крышка-подпола.xcf differ diff --git a/мышь.png b/мышь.png new file mode 100644 index 0000000..fac55cb Binary files /dev/null and b/мышь.png differ diff --git a/мышь.xcf b/мышь.xcf new file mode 100644 index 0000000..465f282 Binary files /dev/null and b/мышь.xcf differ