diff --git a/game.json b/game.json index dd64712..c420965 100644 --- a/game.json +++ b/game.json @@ -654,6 +654,51 @@ "name": "невидимка.png", "smoothed": true, "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "лук.png", + "kind": "image", + "metadata": "", + "name": "лук.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "стрела.png", + "kind": "image", + "metadata": "", + "name": "стрела.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "тетева-0.png", + "kind": "image", + "metadata": "", + "name": "тетева-0.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "тетева-1.png", + "kind": "image", + "metadata": "", + "name": "тетева-1.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "окно-1.png", + "kind": "image", + "metadata": "", + "name": "окно-1.png", + "smoothed": true, + "userAdded": true } ], "resourceFolders": [] @@ -686,7 +731,7 @@ "gridWidth": 32, "snap": true, "windowMask": false, - "zoomFactor": 0.2302 + "zoomFactor": 1.2524 }, "objectsGroups": [], "variables": [ @@ -760,6 +805,67 @@ "value": "\"\"" } ] + }, + { + "name": "Лук", + "children": [ + { + "name": "Заряжен", + "value": "1" + }, + { + "name": "Стрела", + "children": [ + { + "name": "X", + "value": "771" + }, + { + "name": "Y", + "value": "171" + } + ] + } + ] + }, + { + "name": "Молоко", + "children": [ + { + "name": "Конец", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + }, + { + "name": "Опрокинуто", + "value": "" + }, + { + "name": "Скорость", + "value": "" + }, + { + "name": "Цель", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + } + ] } ], "instances": [ @@ -804,8 +910,8 @@ "name": "KO", "persistentUuid": "c5eaa6c9-a5cd-4683-b811-a516b3d2a9a5", "width": 0, - "x": 170, - "y": 381, + "x": 38, + "y": 359, "zOrder": 4, "numberProperties": [], "stringProperties": [], @@ -1099,22 +1205,6 @@ "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, @@ -1268,6 +1358,102 @@ "value": "0" } ] + }, + { + "angle": 180, + "customSize": true, + "height": 180, + "layer": "", + "locked": false, + "name": "JIYK", + "persistentUuid": "a76af484-2f5d-42a6-834e-be9c6110b706", + "width": 32, + "x": 818, + "y": 90, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 185, + "customSize": true, + "height": 25, + "layer": "", + "locked": false, + "name": "CTPEJIA", + "persistentUuid": "1eef32ea-5940-466b-a478-c9863e61ea51", + "width": 190, + "x": 771, + "y": 171, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 183, + "customSize": true, + "height": 159, + "layer": "", + "locked": false, + "name": "TETEBA", + "persistentUuid": "44e47754-258f-456b-8963-8dcc010765aa", + "width": 35, + "x": 791, + "y": 98, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 92, + "layer": "", + "locked": false, + "name": "KOT2", + "persistentUuid": "19b2ff6d-a86f-4740-89fb-07d3df912e6b", + "width": 182, + "x": 367, + "y": 162, + "zOrder": 19, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 78, + "layer": "", + "locked": false, + "name": "MOJIOKO", + "persistentUuid": "f5b3c478-1b0b-4cf7-b7c2-b90e4453bdc0", + "width": 49, + "x": 266, + "y": 394, + "zOrder": 20, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 44, + "layer": "", + "locked": false, + "name": "JIYIIIA", + "persistentUuid": "8d75872d-97eb-4f9f-9132-73fff11237fe", + "width": 103, + "x": 298, + "y": 447, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } ], "objects": [ @@ -1850,6 +2036,35 @@ ] } ] + }, + { + "name": "Разбито", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "окно-1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] } ] }, @@ -2272,53 +2487,316 @@ ] } ] - } - ], - "events": [ + }, { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "name": "JIYK", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ { - "type": { - "inverted": false, - "value": "DepartScene" - }, - "parameters": [ - "" - ], - "subInstructions": [] + "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": [] + } + ] + } + ] } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "Surface" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "OT" - ], - "subInstructions": [] - }, + ] + }, + { + "name": "CTPEJIA", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "JIY" + "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": "TETEBA", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "Заряд", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "тетева-0.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Разряд", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "тетева-1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "name": "KOT2", + "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": "MOJIOKO", + "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": "JIYIIIA", + "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": [] + } + ] + } + ] + } + ] + } + ], + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "DepartScene" + }, + "parameters": [ + "" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "Surface" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OT" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "JIY" ], "subInstructions": [] }, @@ -3432,18 +3910,6 @@ "" ], "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "ModVarSceneTxt" - }, - "parameters": [ - "OT.1", - "=", - "ToString(CameraRotation(\"\", 0))" - ], - "subInstructions": [] } ], "events": [] @@ -3569,7 +4035,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": false, + "folded": true, "name": "ОТЛАДКА", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -3639,6 +4105,576 @@ } ], "parameters": [] + }, + { + "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": "CollisionNP" + }, + "parameters": [ + "KO", + "CTPEJIA", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IsFalling" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Лук.Заряжен", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "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": [ + "Лук.Заряжен", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Лук.Стрела.X", + "=", + "1165" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Лук.Стрела.Y", + "=", + "230" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAnimationName" + }, + "parameters": [ + "TETEBA", + "\"Разряд\"" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAnimationName" + }, + "parameters": [ + "Window", + "\"Разбито\"" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreXY" + }, + "parameters": [ + "CTPEJIA", + "=", + "lerp(CTPEJIA.X(), Variable(Лук.Стрела.X), 0.3)", + "=", + "lerp(CTPEJIA.Y(), Variable(Лук.Стрела.Y), 0.3)" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "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": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Внизу", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Цель.Y", + "=", + "KOT2.Y()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Скорость", + "=", + "0.3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Конец.Y", + "=", + "390" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "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": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Скорость", + "=", + "0.5" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Конец.Y", + "=", + "412" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Конец.Угол", + "=", + "95" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Угол", + "=", + "MOJIOKO.Angle()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Y", + "=", + "MOJIOKO.Y()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "JIYIIIA" + ], + "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", + "MOJIOKO", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ChangePlan" + }, + "parameters": [ + "MOJIOKO", + "=", + "3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Y", + "=", + "Variable(Молоко.Конец.Y)" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Угол", + "=", + "Variable(Молоко.Конец.Угол)" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "MOJIOKO", + "=", + "lerp(MOJIOKO.Y(), Variable(Молоко.Цель.Y), Variable(Молоко.Скорость))" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "MOJIOKO", + "=", + "lerp(MOJIOKO.Angle(), Variable(Молоко.Цель.Угол), Variable(Молоко.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Angle" + }, + "parameters": [ + "MOJIOKO", + ">", + "Variable(Молоко.Цель.Угол)-1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "JIYIIIA", + "" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] } ], "layers": [ diff --git a/game.json.autosave b/game.json.autosave index 527d090..c420965 100644 --- a/game.json.autosave +++ b/game.json.autosave @@ -654,6 +654,51 @@ "name": "невидимка.png", "smoothed": true, "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "лук.png", + "kind": "image", + "metadata": "", + "name": "лук.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "стрела.png", + "kind": "image", + "metadata": "", + "name": "стрела.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "тетева-0.png", + "kind": "image", + "metadata": "", + "name": "тетева-0.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "тетева-1.png", + "kind": "image", + "metadata": "", + "name": "тетева-1.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "окно-1.png", + "kind": "image", + "metadata": "", + "name": "окно-1.png", + "smoothed": true, + "userAdded": true } ], "resourceFolders": [] @@ -686,7 +731,7 @@ "gridWidth": 32, "snap": true, "windowMask": false, - "zoomFactor": 0.2302 + "zoomFactor": 1.2524 }, "objectsGroups": [], "variables": [ @@ -760,6 +805,67 @@ "value": "\"\"" } ] + }, + { + "name": "Лук", + "children": [ + { + "name": "Заряжен", + "value": "1" + }, + { + "name": "Стрела", + "children": [ + { + "name": "X", + "value": "771" + }, + { + "name": "Y", + "value": "171" + } + ] + } + ] + }, + { + "name": "Молоко", + "children": [ + { + "name": "Конец", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + }, + { + "name": "Опрокинуто", + "value": "" + }, + { + "name": "Скорость", + "value": "" + }, + { + "name": "Цель", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + } + ] } ], "instances": [ @@ -804,8 +910,8 @@ "name": "KO", "persistentUuid": "c5eaa6c9-a5cd-4683-b811-a516b3d2a9a5", "width": 0, - "x": 170, - "y": 381, + "x": 38, + "y": 359, "zOrder": 4, "numberProperties": [], "stringProperties": [], @@ -1099,22 +1205,6 @@ "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, @@ -1268,6 +1358,102 @@ "value": "0" } ] + }, + { + "angle": 180, + "customSize": true, + "height": 180, + "layer": "", + "locked": false, + "name": "JIYK", + "persistentUuid": "a76af484-2f5d-42a6-834e-be9c6110b706", + "width": 32, + "x": 818, + "y": 90, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 185, + "customSize": true, + "height": 25, + "layer": "", + "locked": false, + "name": "CTPEJIA", + "persistentUuid": "1eef32ea-5940-466b-a478-c9863e61ea51", + "width": 190, + "x": 771, + "y": 171, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 183, + "customSize": true, + "height": 159, + "layer": "", + "locked": false, + "name": "TETEBA", + "persistentUuid": "44e47754-258f-456b-8963-8dcc010765aa", + "width": 35, + "x": 791, + "y": 98, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 92, + "layer": "", + "locked": false, + "name": "KOT2", + "persistentUuid": "19b2ff6d-a86f-4740-89fb-07d3df912e6b", + "width": 182, + "x": 367, + "y": 162, + "zOrder": 19, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 78, + "layer": "", + "locked": false, + "name": "MOJIOKO", + "persistentUuid": "f5b3c478-1b0b-4cf7-b7c2-b90e4453bdc0", + "width": 49, + "x": 266, + "y": 394, + "zOrder": 20, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 44, + "layer": "", + "locked": false, + "name": "JIYIIIA", + "persistentUuid": "8d75872d-97eb-4f9f-9132-73fff11237fe", + "width": 103, + "x": 298, + "y": 447, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } ], "objects": [ @@ -1850,6 +2036,35 @@ ] } ] + }, + { + "name": "Разбито", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "окно-1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] } ] }, @@ -2272,53 +2487,316 @@ ] } ] - } - ], - "events": [ + }, { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "name": "JIYK", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ { - "type": { - "inverted": false, - "value": "DepartScene" - }, - "parameters": [ - "" - ], - "subInstructions": [] + "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": [] + } + ] + } + ] } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "Surface" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "OT" - ], - "subInstructions": [] - }, + ] + }, + { + "name": "CTPEJIA", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ { - "type": { - "inverted": false, - "value": "Cache" - }, - "parameters": [ - "JIY" + "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": "TETEBA", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "behaviors": [], + "animations": [ + { + "name": "Заряд", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "тетева-0.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Разряд", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "тетева-1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "name": "KOT2", + "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": "MOJIOKO", + "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": "JIYIIIA", + "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": [] + } + ] + } + ] + } + ] + } + ], + "events": [ + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "DepartScene" + }, + "parameters": [ + "" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "Surface" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OT" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "JIY" ], "subInstructions": [] }, @@ -3432,18 +3910,6 @@ "" ], "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "ModVarSceneTxt" - }, - "parameters": [ - "OT.1", - "=", - "ToString(CameraRotation(\"\", 0))" - ], - "subInstructions": [] } ], "events": [] @@ -3569,7 +4035,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": false, + "folded": true, "name": "ОТЛАДКА", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -3578,16 +4044,7 @@ "disabled": false, "folded": false, "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": "/*\nvar OT = runtimeScene.getVariables()._variables.items[\"OT\"];\nif (!(OT._children[\"0\"]._str === OT._children[\"1\"]._str))\n{\n OT._children[\"0\"]._str = OT._children[\"1\"]._str;\n console.debug(\"OT:\", OT._children[\"1\"]._str);\n}\n*/", - "parameterObjects": "", - "useStrict": true, - "eventsSheetExpanded": false - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": "var OT = runtimeScene.getVariables().get(\"OT\");\nvar OT0 = OT.getChild(\"0\");\nvar OT1 = OT.getChild(\"1\");\nif (OT0.getAsString() != OT1.getAsString())\n{\n OT0.setString(OT1.getAsString());\n console.debug(\"OT:\", OT0.getAsString());\n}\n", + "inlineCode": "var OT = runtimeScene.getVariables().get(\"OT\");\nvar OT0 = OT.getChild(\"0\");\nvar OT1 = OT.getChild(\"1\");\nif (OT0.getAsString() != OT1.getAsString())\n{\n OT0.setString(OT1.getAsString());\n console.debug(\"OT:\", OT0.getAsString());\n}", "parameterObjects": "", "useStrict": true, "eventsSheetExpanded": false @@ -3648,6 +4105,576 @@ } ], "parameters": [] + }, + { + "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": "CollisionNP" + }, + "parameters": [ + "KO", + "CTPEJIA", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IsFalling" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Лук.Заряжен", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "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": [ + "Лук.Заряжен", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Лук.Стрела.X", + "=", + "1165" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Лук.Стрела.Y", + "=", + "230" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAnimationName" + }, + "parameters": [ + "TETEBA", + "\"Разряд\"" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAnimationName" + }, + "parameters": [ + "Window", + "\"Разбито\"" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreXY" + }, + "parameters": [ + "CTPEJIA", + "=", + "lerp(CTPEJIA.X(), Variable(Лук.Стрела.X), 0.3)", + "=", + "lerp(CTPEJIA.Y(), Variable(Лук.Стрела.Y), 0.3)" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "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": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Внизу", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Цель.Y", + "=", + "KOT2.Y()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Скорость", + "=", + "0.3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Кот.Конец.Y", + "=", + "390" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "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": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Скорость", + "=", + "0.5" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Конец.Y", + "=", + "412" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Конец.Угол", + "=", + "95" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Угол", + "=", + "MOJIOKO.Angle()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Y", + "=", + "MOJIOKO.Y()" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "JIYIIIA" + ], + "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", + "MOJIOKO", + "", + "", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "0" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ChangePlan" + }, + "parameters": [ + "MOJIOKO", + "=", + "3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Y", + "=", + "Variable(Молоко.Конец.Y)" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Молоко.Цель.Угол", + "=", + "Variable(Молоко.Конец.Угол)" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "MOJIOKO", + "=", + "lerp(MOJIOKO.Y(), Variable(Молоко.Цель.Y), Variable(Молоко.Скорость))" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "MOJIOKO", + "=", + "lerp(MOJIOKO.Angle(), Variable(Молоко.Цель.Угол), Variable(Молоко.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Молоко.Опрокинуто", + "=", + "1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Angle" + }, + "parameters": [ + "MOJIOKO", + ">", + "Variable(Молоко.Цель.Угол)-1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "JIYIIIA", + "" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] } ], "layers": [ diff --git a/лук.png b/лук.png new file mode 100644 index 0000000..3f3b5cc Binary files /dev/null and b/лук.png differ diff --git a/лук.xcf b/лук.xcf new file mode 100644 index 0000000..6d08d7c Binary files /dev/null and b/лук.xcf differ diff --git a/окно-1.png b/окно-1.png new file mode 100644 index 0000000..ecd8cc3 Binary files /dev/null and b/окно-1.png differ diff --git a/окно.xcf b/окно.xcf index fea9a2b..2586772 100644 Binary files a/окно.xcf and b/окно.xcf differ diff --git a/стрела.png b/стрела.png new file mode 100644 index 0000000..9cf2588 Binary files /dev/null and b/стрела.png differ diff --git a/стрела.xcf b/стрела.xcf new file mode 100644 index 0000000..9c98ee8 Binary files /dev/null and b/стрела.xcf differ diff --git a/тетева-0.png b/тетева-0.png new file mode 100644 index 0000000..f8ed5cb Binary files /dev/null and b/тетева-0.png differ diff --git a/тетева-1.png b/тетева-1.png new file mode 100644 index 0000000..7551459 Binary files /dev/null and b/тетева-1.png differ diff --git a/тетева.xcf b/тетева.xcf new file mode 100644 index 0000000..0f28c29 Binary files /dev/null and b/тетева.xcf differ