diff --git a/game.json b/game.json index 8f52cc1..5a78e4b 100644 --- a/game.json +++ b/game.json @@ -708,6 +708,31 @@ "name": "вещи/самовар.png", "smoothed": true, "userAdded": true + }, + { + "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 + }, + { + "file": "звуки/прыжок.wav", + "kind": "audio", + "metadata": "", + "name": "звуки/прыжок.wav", + "userAdded": true } ], "resourceFolders": [] @@ -784,24 +809,32 @@ ] }, { - "name": "Лук", + "name": "Стрела", "children": [ { - "name": "Заряжен", - "value": "1" + "name": "Прыжки", + "value": "" + }, + { + "name": "Скорость", + "value": "" }, { - "name": "Стрела", + "name": "Цель", "children": [ { "name": "X", - "value": "771" + "value": "" }, { "name": "Y", - "value": "171" + "value": "" } ] + }, + { + "name": "Шаг", + "value": "" } ] }, @@ -865,6 +898,45 @@ ] } ] + }, + { + "name": "Окно", + "children": [ + { + "name": "Скорость", + "value": "" + }, + { + "name": "Цель", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + }, + { + "name": "Шаг", + "value": "" + } + ] + }, + { + "name": "Колобок", + "children": [ + { + "name": "НачалоПрыжка", + "value": "" + }, + { + "name": "Шаг", + "value": "" + } + ] } ], "instances": [ @@ -1082,7 +1154,7 @@ "height": 236, "layer": "", "locked": false, - "name": "Window", + "name": "OKHO", "persistentUuid": "0cbbe175-be2d-451b-a8d0-4dd76fecb4b5", "width": 205, "x": 1218, @@ -1263,7 +1335,7 @@ "height": 236, "layer": "", "locked": false, - "name": "Window", + "name": "OKHO", "persistentUuid": "7e25b080-682c-4d73-9af8-1bf71db5607c", "width": 205, "x": 610, @@ -1321,7 +1393,7 @@ "width": 190, "x": 771, "y": 171, - "zOrder": 2, + "zOrder": 3, "numberProperties": [], "stringProperties": [], "initialVariables": [] @@ -1399,8 +1471,8 @@ "name": "CAMOBAP", "persistentUuid": "f5e4ab5f-a0a0-4785-b0f8-14c9cedfdee3", "width": 73, - "x": 1267, - "y": 256, + "x": 524, + "y": 231, "zOrder": 2, "numberProperties": [], "stringProperties": [], @@ -1409,15 +1481,31 @@ { "angle": 0, "customSize": true, - "height": 8, + "height": 226, "layer": "", "locked": false, - "name": "Surface", - "persistentUuid": "34e5f069-1b4e-470d-a229-136ca8f2b57f", - "width": 58, - "x": 1273, - "y": 278, - "zOrder": 22, + "name": "OKHO_PA36uTO", + "persistentUuid": "1bb05d09-687b-4b7d-874f-c528294d5e89", + "width": 212, + "x": 1212, + "y": 171, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 220, + "layer": "", + "locked": false, + "name": "OKHO_BbIJIOMAHO", + "persistentUuid": "ab9e4d4a-d343-4f50-800b-4f092fc939a4", + "width": 205, + "x": 1216, + "y": 174, + "zOrder": 3, "numberProperties": [], "stringProperties": [], "initialVariables": [] @@ -1968,7 +2056,7 @@ ] }, { - "name": "Window", + "name": "OKHO", "tags": "", "type": "Sprite", "updateIfNotVisible": false, @@ -2003,35 +2091,6 @@ ] } ] - }, - { - "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": [] - } - ] - } - ] } ] }, @@ -2658,6 +2717,84 @@ ] } ] + }, + { + "name": "OKHO_PA36uTO", + "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": "OKHO_BbIJIOMAHO", + "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": [ @@ -2744,7 +2881,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": true, + "folded": false, "name": "Колобок", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -2790,6 +2927,18 @@ "KO.X()" ], "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Колобок.НачалоПрыжка", + "=", + "0" + ], + "subInstructions": [] } ], "events": [] @@ -2950,9 +3099,31 @@ "PlatformerObject" ], "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [], + "subInstructions": [] } ], "actions": [ + { + "type": { + "inverted": false, + "value": "PlaySound" + }, + "parameters": [ + "", + "звуки/прыжок.wav", + "", + "", + "" + ], + "subInstructions": [] + }, { "type": { "inverted": false, @@ -2966,21 +3137,7 @@ } ], "events": [] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "disabled": false, - "folded": true, - "name": "Шахта", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "disabled": false, "folded": false, @@ -2989,9 +3146,13 @@ { "type": { "inverted": false, - "value": "DepartScene" + "value": "CollisionNP" }, "parameters": [ + "KO", + "OKHO_BbIJIOMAHO", + "", + "", "" ], "subInstructions": [] @@ -2999,33 +3160,123 @@ { "type": { "inverted": false, - "value": "VarObjet" + "value": "PlatformBehavior::IsFalling" }, "parameters": [ - "nOJI", - "LLIAXTA", - "=", - "1" + "KO", + "PlatformerObject" ], "subInstructions": [] - } - ], - "actions": [ + }, { "type": { "inverted": false, - "value": "Cache" + "value": "VarScene" }, "parameters": [ - "nOJI" + "Окно.Шаг", + "=", + "3" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, + "actions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::Gravity" + }, + "parameters": [ + "KO", + "PlatformerObject", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IgnoreDefaultControls" + }, + "parameters": [ + "KO", + "PlatformerObject", + "yes" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [], + "events": [] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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": [ @@ -3581,10 +3832,66 @@ "creationTime": 0, "disabled": false, "folded": true, - "name": "Лук", + "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.3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "=", + "0" + ], + "subInstructions": [] + } + ], + "events": [] + }, { "disabled": false, "folded": false, @@ -3621,9 +3928,9 @@ "value": "VarScene" }, "parameters": [ - "Лук.Заряжен", + "Стрела.Шаг", "=", - "1" + "0" ], "subInstructions": [] } @@ -3657,9 +3964,9 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Заряжен", + "Стрела.Цель.Y", "=", - "0" + "230" ], "subInstructions": [] }, @@ -3669,7 +3976,7 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Стрела.X", + "Стрела.Цель.X", "=", "1165" ], @@ -3681,9 +3988,9 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Стрела.Y", + "Стрела.Шаг", "=", - "230" + "1" ], "subInstructions": [] }, @@ -3697,26 +4004,28 @@ "\"Разряд\"" ], "subInstructions": [] - }, + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { "type": { "inverted": false, - "value": "SetAnimationName" + "value": "VarScene" }, "parameters": [ - "Window", - "\"Разбито\"" + "Стрела.Шаг", + "=", + "1" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], "actions": [ { "type": { @@ -3726,29 +4035,15 @@ "parameters": [ "CTPEJIA", "=", - "lerp(CTPEJIA.X(), Variable(Лук.Стрела.X), 0.3)", + "lerp(CTPEJIA.X(), Variable(Стрела.Цель.X), Variable(Стрела.Скорость))", "=", - "lerp(CTPEJIA.Y(), Variable(Лук.Стрела.Y), 0.3)" + "lerp(CTPEJIA.Y(), Variable(Стрела.Цель.Y), Variable(Стрела.Скорость))" ], "subInstructions": [] } ], "events": [] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "disabled": false, - "folded": true, - "name": "Молоко", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "disabled": false, "folded": false, @@ -3757,48 +4052,50 @@ { "type": { "inverted": false, - "value": "DepartScene" + "value": "PosX" }, "parameters": [ - "" + "CTPEJIA", + ">", + "Variable(Стрела.Цель.X) - 0.1" ], "subInstructions": [] - } - ], - "actions": [ + }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "PosY" }, "parameters": [ - "Молоко.Опрокинуто", - "=", - "0" + "CTPEJIA", + ">", + "Variable(Стрела.Цель.Y) - 0.1" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "VarScene" }, "parameters": [ - "Молоко.Скорость", + "Стрела.Шаг", "=", - "0.5" + "1" ], "subInstructions": [] - }, + } + ], + "actions": [ { "type": { "inverted": false, "value": "ModVarScene" }, "parameters": [ - "Молоко.Конец.Y", + "Стрела.Шаг", "=", - "412" + "2" ], "subInstructions": [] }, @@ -3808,58 +4105,325 @@ "value": "ModVarScene" }, "parameters": [ - "Молоко.Конец.Угол", + "Окно.Шаг", "=", - "95" + "1" ], "subInstructions": [] - }, + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { "type": { "inverted": false, - "value": "ModVarScene" + "value": "CollisionNP" }, "parameters": [ - "Молоко.Цель.Угол", - "=", - "MOJIOKO.Angle()" + "KO", + "CTPEJIA", + "", + "", + "" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "PlatformBehavior::IsFalling" }, "parameters": [ - "Молоко.Цель.Y", - "=", - "MOJIOKO.Y()" + "KO", + "PlatformerObject" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "Cache" + "value": "VarScene" }, "parameters": [ - "JIYIIIA" + "Стрела.Шаг", + "=", + "2" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "actions": [ { "type": { "inverted": false, - "value": "VarScene" + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "+", + "1" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "2" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "=", + "4" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Цель.Y", + "=", + "565" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "3" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "CTPEJIA", + "=", + "lerp(CTPEJIA.Y(), Variable(Стрела.Цель.Y), Variable(Стрела.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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": "VarScene" }, "parameters": [ "Молоко.Опрокинуто", @@ -4078,7 +4642,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": false, + "folded": true, "name": "Кот", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -4312,6 +4876,244 @@ ], "parameters": [] }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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.1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OKHO_PA36uTO" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OKHO_BbIJIOMAHO" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "OKHO_PA36uTO", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "OKHO_BbIJIOMAHO", + "" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Цель.Угол", + "=", + "-100" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Цель.Y", + "=", + "473" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "OKHO_PA36uTO", + "=", + "lerp(OKHO_PA36uTO.Y(), Variable(Окно.Цель.Y), Variable(Окно.Скорость))" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "OKHO_PA36uTO", + "=", + "lerp(OKHO_PA36uTO.Angle(), Variable(Окно.Цель.Угол), Variable(Окно.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "PosY" + }, + "parameters": [ + "OKHO_PA36uTO", + ">", + "Variable(Окно.Цель.Y) - 0.1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "3" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, { "colorB": 228, "colorG": 176, diff --git a/game.json.autosave b/game.json.autosave index 8f52cc1..5a78e4b 100644 --- a/game.json.autosave +++ b/game.json.autosave @@ -708,6 +708,31 @@ "name": "вещи/самовар.png", "smoothed": true, "userAdded": true + }, + { + "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 + }, + { + "file": "звуки/прыжок.wav", + "kind": "audio", + "metadata": "", + "name": "звуки/прыжок.wav", + "userAdded": true } ], "resourceFolders": [] @@ -784,24 +809,32 @@ ] }, { - "name": "Лук", + "name": "Стрела", "children": [ { - "name": "Заряжен", - "value": "1" + "name": "Прыжки", + "value": "" + }, + { + "name": "Скорость", + "value": "" }, { - "name": "Стрела", + "name": "Цель", "children": [ { "name": "X", - "value": "771" + "value": "" }, { "name": "Y", - "value": "171" + "value": "" } ] + }, + { + "name": "Шаг", + "value": "" } ] }, @@ -865,6 +898,45 @@ ] } ] + }, + { + "name": "Окно", + "children": [ + { + "name": "Скорость", + "value": "" + }, + { + "name": "Цель", + "children": [ + { + "name": "Y", + "value": "" + }, + { + "name": "Угол", + "value": "" + } + ] + }, + { + "name": "Шаг", + "value": "" + } + ] + }, + { + "name": "Колобок", + "children": [ + { + "name": "НачалоПрыжка", + "value": "" + }, + { + "name": "Шаг", + "value": "" + } + ] } ], "instances": [ @@ -1082,7 +1154,7 @@ "height": 236, "layer": "", "locked": false, - "name": "Window", + "name": "OKHO", "persistentUuid": "0cbbe175-be2d-451b-a8d0-4dd76fecb4b5", "width": 205, "x": 1218, @@ -1263,7 +1335,7 @@ "height": 236, "layer": "", "locked": false, - "name": "Window", + "name": "OKHO", "persistentUuid": "7e25b080-682c-4d73-9af8-1bf71db5607c", "width": 205, "x": 610, @@ -1321,7 +1393,7 @@ "width": 190, "x": 771, "y": 171, - "zOrder": 2, + "zOrder": 3, "numberProperties": [], "stringProperties": [], "initialVariables": [] @@ -1399,8 +1471,8 @@ "name": "CAMOBAP", "persistentUuid": "f5e4ab5f-a0a0-4785-b0f8-14c9cedfdee3", "width": 73, - "x": 1267, - "y": 256, + "x": 524, + "y": 231, "zOrder": 2, "numberProperties": [], "stringProperties": [], @@ -1409,15 +1481,31 @@ { "angle": 0, "customSize": true, - "height": 8, + "height": 226, "layer": "", "locked": false, - "name": "Surface", - "persistentUuid": "34e5f069-1b4e-470d-a229-136ca8f2b57f", - "width": 58, - "x": 1273, - "y": 278, - "zOrder": 22, + "name": "OKHO_PA36uTO", + "persistentUuid": "1bb05d09-687b-4b7d-874f-c528294d5e89", + "width": 212, + "x": 1212, + "y": 171, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 220, + "layer": "", + "locked": false, + "name": "OKHO_BbIJIOMAHO", + "persistentUuid": "ab9e4d4a-d343-4f50-800b-4f092fc939a4", + "width": 205, + "x": 1216, + "y": 174, + "zOrder": 3, "numberProperties": [], "stringProperties": [], "initialVariables": [] @@ -1968,7 +2056,7 @@ ] }, { - "name": "Window", + "name": "OKHO", "tags": "", "type": "Sprite", "updateIfNotVisible": false, @@ -2003,35 +2091,6 @@ ] } ] - }, - { - "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": [] - } - ] - } - ] } ] }, @@ -2658,6 +2717,84 @@ ] } ] + }, + { + "name": "OKHO_PA36uTO", + "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": "OKHO_BbIJIOMAHO", + "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": [ @@ -2744,7 +2881,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": true, + "folded": false, "name": "Колобок", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -2790,6 +2927,18 @@ "KO.X()" ], "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Колобок.НачалоПрыжка", + "=", + "0" + ], + "subInstructions": [] } ], "events": [] @@ -2950,9 +3099,31 @@ "PlatformerObject" ], "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [], + "subInstructions": [] } ], "actions": [ + { + "type": { + "inverted": false, + "value": "PlaySound" + }, + "parameters": [ + "", + "звуки/прыжок.wav", + "", + "", + "" + ], + "subInstructions": [] + }, { "type": { "inverted": false, @@ -2966,21 +3137,7 @@ } ], "events": [] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "disabled": false, - "folded": true, - "name": "Шахта", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "disabled": false, "folded": false, @@ -2989,9 +3146,13 @@ { "type": { "inverted": false, - "value": "DepartScene" + "value": "CollisionNP" }, "parameters": [ + "KO", + "OKHO_BbIJIOMAHO", + "", + "", "" ], "subInstructions": [] @@ -2999,33 +3160,123 @@ { "type": { "inverted": false, - "value": "VarObjet" + "value": "PlatformBehavior::IsFalling" }, "parameters": [ - "nOJI", - "LLIAXTA", - "=", - "1" + "KO", + "PlatformerObject" ], "subInstructions": [] - } - ], - "actions": [ + }, { "type": { "inverted": false, - "value": "Cache" + "value": "VarScene" }, "parameters": [ - "nOJI" + "Окно.Шаг", + "=", + "3" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, + "actions": [ + { + "type": { + "inverted": false, + "value": "PlatformBehavior::Gravity" + }, + "parameters": [ + "KO", + "PlatformerObject", + "=", + "0" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::IgnoreDefaultControls" + }, + "parameters": [ + "KO", + "PlatformerObject", + "yes" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [], + "events": [] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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": [ @@ -3581,10 +3832,66 @@ "creationTime": 0, "disabled": false, "folded": true, - "name": "Лук", + "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.3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "=", + "0" + ], + "subInstructions": [] + } + ], + "events": [] + }, { "disabled": false, "folded": false, @@ -3621,9 +3928,9 @@ "value": "VarScene" }, "parameters": [ - "Лук.Заряжен", + "Стрела.Шаг", "=", - "1" + "0" ], "subInstructions": [] } @@ -3657,9 +3964,9 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Заряжен", + "Стрела.Цель.Y", "=", - "0" + "230" ], "subInstructions": [] }, @@ -3669,7 +3976,7 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Стрела.X", + "Стрела.Цель.X", "=", "1165" ], @@ -3681,9 +3988,9 @@ "value": "ModVarScene" }, "parameters": [ - "Лук.Стрела.Y", + "Стрела.Шаг", "=", - "230" + "1" ], "subInstructions": [] }, @@ -3697,26 +4004,28 @@ "\"Разряд\"" ], "subInstructions": [] - }, + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { "type": { "inverted": false, - "value": "SetAnimationName" + "value": "VarScene" }, "parameters": [ - "Window", - "\"Разбито\"" + "Стрела.Шаг", + "=", + "1" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], "actions": [ { "type": { @@ -3726,29 +4035,15 @@ "parameters": [ "CTPEJIA", "=", - "lerp(CTPEJIA.X(), Variable(Лук.Стрела.X), 0.3)", + "lerp(CTPEJIA.X(), Variable(Стрела.Цель.X), Variable(Стрела.Скорость))", "=", - "lerp(CTPEJIA.Y(), Variable(Лук.Стрела.Y), 0.3)" + "lerp(CTPEJIA.Y(), Variable(Стрела.Цель.Y), Variable(Стрела.Скорость))" ], "subInstructions": [] } ], "events": [] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "disabled": false, - "folded": true, - "name": "Молоко", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "disabled": false, "folded": false, @@ -3757,48 +4052,50 @@ { "type": { "inverted": false, - "value": "DepartScene" + "value": "PosX" }, "parameters": [ - "" + "CTPEJIA", + ">", + "Variable(Стрела.Цель.X) - 0.1" ], "subInstructions": [] - } - ], - "actions": [ + }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "PosY" }, "parameters": [ - "Молоко.Опрокинуто", - "=", - "0" + "CTPEJIA", + ">", + "Variable(Стрела.Цель.Y) - 0.1" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "VarScene" }, "parameters": [ - "Молоко.Скорость", + "Стрела.Шаг", "=", - "0.5" + "1" ], "subInstructions": [] - }, + } + ], + "actions": [ { "type": { "inverted": false, "value": "ModVarScene" }, "parameters": [ - "Молоко.Конец.Y", + "Стрела.Шаг", "=", - "412" + "2" ], "subInstructions": [] }, @@ -3808,58 +4105,325 @@ "value": "ModVarScene" }, "parameters": [ - "Молоко.Конец.Угол", + "Окно.Шаг", "=", - "95" + "1" ], "subInstructions": [] - }, + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { "type": { "inverted": false, - "value": "ModVarScene" + "value": "CollisionNP" }, "parameters": [ - "Молоко.Цель.Угол", - "=", - "MOJIOKO.Angle()" + "KO", + "CTPEJIA", + "", + "", + "" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "ModVarScene" + "value": "PlatformBehavior::IsFalling" }, "parameters": [ - "Молоко.Цель.Y", - "=", - "MOJIOKO.Y()" + "KO", + "PlatformerObject" ], "subInstructions": [] }, { "type": { "inverted": false, - "value": "Cache" + "value": "VarScene" }, "parameters": [ - "JIYIIIA" + "Стрела.Шаг", + "=", + "2" ], "subInstructions": [] } ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "actions": [ { "type": { "inverted": false, - "value": "VarScene" + "value": "PlatformBehavior::SetCanJump" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "PlatformBehavior::SimulateJumpKey" + }, + "parameters": [ + "KO", + "PlatformerObject" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "+", + "1" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "2" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Прыжки", + "=", + "4" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "3" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Стрела.Цель.Y", + "=", + "565" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Стрела.Шаг", + "=", + "3" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "CTPEJIA", + "=", + "lerp(CTPEJIA.Y(), Variable(Стрела.Цель.Y), Variable(Стрела.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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": "VarScene" }, "parameters": [ "Молоко.Опрокинуто", @@ -4078,7 +4642,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": false, + "folded": true, "name": "Кот", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -4312,6 +4876,244 @@ ], "parameters": [] }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "disabled": false, + "folded": true, + "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.1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OKHO_PA36uTO" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Cache" + }, + "parameters": [ + "OKHO_BbIJIOMAHO" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "1" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "OKHO_PA36uTO", + "" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "Montre" + }, + "parameters": [ + "OKHO_BbIJIOMAHO", + "" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Цель.Угол", + "=", + "-100" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Цель.Y", + "=", + "473" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "MettreY" + }, + "parameters": [ + "OKHO_PA36uTO", + "=", + "lerp(OKHO_PA36uTO.Y(), Variable(Окно.Цель.Y), Variable(Окно.Скорость))" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "SetAngle" + }, + "parameters": [ + "OKHO_PA36uTO", + "=", + "lerp(OKHO_PA36uTO.Angle(), Variable(Окно.Цель.Угол), Variable(Окно.Скорость))" + ], + "subInstructions": [] + } + ], + "events": [] + }, + { + "disabled": false, + "folded": false, + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": false, + "value": "PosY" + }, + "parameters": [ + "OKHO_PA36uTO", + ">", + "Variable(Окно.Цель.Y) - 0.1" + ], + "subInstructions": [] + }, + { + "type": { + "inverted": false, + "value": "VarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "2" + ], + "subInstructions": [] + } + ], + "actions": [ + { + "type": { + "inverted": false, + "value": "ModVarScene" + }, + "parameters": [ + "Окно.Шаг", + "=", + "3" + ], + "subInstructions": [] + } + ], + "events": [] + } + ], + "parameters": [] + }, { "colorB": 228, "colorG": 176, diff --git a/звуки/прыжок.m4a b/звуки/прыжок.m4a new file mode 100644 index 0000000..62eb442 Binary files /dev/null and b/звуки/прыжок.m4a differ diff --git a/звуки/прыжок.wav b/звуки/прыжок.wav new file mode 100644 index 0000000..6ed257e Binary files /dev/null and b/звуки/прыжок.wav differ diff --git a/окно.xcf b/окно.xcf index 2586772..9a8a99a 100644 Binary files a/окно.xcf and b/окно.xcf differ diff --git a/окно_дыра.png b/окно_дыра.png new file mode 100644 index 0000000..acb6b6c Binary files /dev/null and b/окно_дыра.png differ diff --git a/окно_разбитая-часть.png b/окно_разбитая-часть.png new file mode 100644 index 0000000..363dec2 Binary files /dev/null and b/окно_разбитая-часть.png differ