This commit is contained in:
2021-03-15 23:37:43 +03:00
parent 6368f2fab9
commit 28823ef75c
6 changed files with 258 additions and 6 deletions

112
game.json
View File

@@ -3307,6 +3307,15 @@
"name": "вещи/пугало.png", "name": "вещи/пугало.png",
"smoothed": true, "smoothed": true,
"userAdded": true "userAdded": true
},
{
"alwaysLoaded": false,
"file": "вещи/забор_40,50,0.png",
"kind": "image",
"metadata": "",
"name": "вещи/забор_40,50,0.png",
"smoothed": true,
"userAdded": true
} }
], ],
"resourceFolders": [] "resourceFolders": []
@@ -12109,7 +12118,7 @@
"gridWidth": 32, "gridWidth": 32,
"snap": true, "snap": true,
"windowMask": false, "windowMask": false,
"zoomFactor": 1.059 "zoomFactor": 1.0434
}, },
"objectsGroups": [], "objectsGroups": [],
"variables": [], "variables": [],
@@ -12187,8 +12196,8 @@
"name": "CTEHA", "name": "CTEHA",
"persistentUuid": "ec04bbea-cdb1-4bc0-a3cd-8cb85a0a887e", "persistentUuid": "ec04bbea-cdb1-4bc0-a3cd-8cb85a0a887e",
"width": 8, "width": 8,
"x": 41, "x": -268,
"y": -118, "y": -115,
"zOrder": 51, "zOrder": 51,
"numberProperties": [], "numberProperties": [],
"stringProperties": [], "stringProperties": [],
@@ -12821,6 +12830,64 @@
"numberProperties": [], "numberProperties": [],
"stringProperties": [], "stringProperties": [],
"initialVariables": [] "initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "_3A6OP_HAKJIOH",
"persistentUuid": "7175bda4-f0f2-42b8-98dd-57231e3c6e5c",
"width": 0,
"x": -374,
"y": 277,
"zOrder": 10,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 202,
"layer": "",
"locked": false,
"name": "nODCOJIHYX",
"persistentUuid": "c70faea4-46c8-44e0-b6ba-5cf302c9243d",
"width": 91,
"x": -443,
"y": 438,
"zOrder": 11,
"numberProperties": [],
"stringProperties": [],
"initialVariables": [
{
"name": "Перевернуть",
"value": "1"
}
]
},
{
"angle": 0,
"customSize": true,
"height": 202,
"layer": "",
"locked": false,
"name": "nODCOJIHYX",
"persistentUuid": "4d851ffd-a270-4a53-9139-9501699aea2e",
"width": 91,
"x": -381,
"y": 400,
"zOrder": 11,
"numberProperties": [],
"stringProperties": [],
"initialVariables": [
{
"name": "Перевернуть",
"value": ""
}
]
} }
], ],
"objects": [ "objects": [
@@ -15927,6 +15994,45 @@
] ]
} }
] ]
},
{
"name": "_3A6OP_HAKJIOH",
"tags": "",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"animations": [
{
"name": "",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 0.08,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "вещи/забор_40,50,0.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 0,
"y": 0
},
"centerPoint": {
"automatic": true,
"name": "centre",
"x": 0,
"y": 0
},
"customCollisionMask": []
}
]
}
]
}
]
} }
], ],
"events": [ "events": [

View File

@@ -3307,6 +3307,15 @@
"name": "вещи/пугало.png", "name": "вещи/пугало.png",
"smoothed": true, "smoothed": true,
"userAdded": true "userAdded": true
},
{
"alwaysLoaded": false,
"file": "вещи/забор_40,50,0.png",
"kind": "image",
"metadata": "",
"name": "вещи/забор_40,50,0.png",
"smoothed": true,
"userAdded": true
} }
], ],
"resourceFolders": [] "resourceFolders": []
@@ -12109,7 +12118,7 @@
"gridWidth": 32, "gridWidth": 32,
"snap": true, "snap": true,
"windowMask": false, "windowMask": false,
"zoomFactor": 1.059 "zoomFactor": 1.0434
}, },
"objectsGroups": [], "objectsGroups": [],
"variables": [], "variables": [],
@@ -12187,8 +12196,8 @@
"name": "CTEHA", "name": "CTEHA",
"persistentUuid": "ec04bbea-cdb1-4bc0-a3cd-8cb85a0a887e", "persistentUuid": "ec04bbea-cdb1-4bc0-a3cd-8cb85a0a887e",
"width": 8, "width": 8,
"x": 41, "x": -268,
"y": -118, "y": -115,
"zOrder": 51, "zOrder": 51,
"numberProperties": [], "numberProperties": [],
"stringProperties": [], "stringProperties": [],
@@ -12821,6 +12830,64 @@
"numberProperties": [], "numberProperties": [],
"stringProperties": [], "stringProperties": [],
"initialVariables": [] "initialVariables": []
},
{
"angle": 0,
"customSize": false,
"height": 0,
"layer": "",
"locked": false,
"name": "_3A6OP_HAKJIOH",
"persistentUuid": "7175bda4-f0f2-42b8-98dd-57231e3c6e5c",
"width": 0,
"x": -374,
"y": 277,
"zOrder": 10,
"numberProperties": [],
"stringProperties": [],
"initialVariables": []
},
{
"angle": 0,
"customSize": true,
"height": 202,
"layer": "",
"locked": false,
"name": "nODCOJIHYX",
"persistentUuid": "c70faea4-46c8-44e0-b6ba-5cf302c9243d",
"width": 91,
"x": -443,
"y": 438,
"zOrder": 11,
"numberProperties": [],
"stringProperties": [],
"initialVariables": [
{
"name": "Перевернуть",
"value": "1"
}
]
},
{
"angle": 0,
"customSize": true,
"height": 202,
"layer": "",
"locked": false,
"name": "nODCOJIHYX",
"persistentUuid": "4d851ffd-a270-4a53-9139-9501699aea2e",
"width": 91,
"x": -381,
"y": 400,
"zOrder": 11,
"numberProperties": [],
"stringProperties": [],
"initialVariables": [
{
"name": "Перевернуть",
"value": ""
}
]
} }
], ],
"objects": [ "objects": [
@@ -15927,6 +15994,45 @@
] ]
} }
] ]
},
{
"name": "_3A6OP_HAKJIOH",
"tags": "",
"type": "Sprite",
"updateIfNotVisible": false,
"variables": [],
"behaviors": [],
"animations": [
{
"name": "",
"useMultipleDirections": false,
"directions": [
{
"looping": false,
"timeBetweenFrames": 0.08,
"sprites": [
{
"hasCustomCollisionMask": false,
"image": "вещи/забор_40,50,0.png",
"points": [],
"originPoint": {
"name": "origine",
"x": 0,
"y": 0
},
"centerPoint": {
"automatic": true,
"name": "centre",
"x": 0,
"y": 0
},
"customCollisionMask": []
}
]
}
]
}
]
} }
], ],
"events": [ "events": [

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<p>X: <input id="x" type="number" min="-360" max="360" value="0"></p>
<p>Y: <input id="y" type="number" min="-360" max="360" value="0"></p>
<p>Z: <input id="z" type="number" min="-360" max="360" value="0"></p>
<br>
<br>
<br>
<br>
<p><img id="изо" src="вещи/перекладины.png"></p>
<script>
function rotate3D()
{
var x = document.getElementById("x").value;
var y = document.getElementById("y").value;
var z = document.getElementById("z").value;
var изо = document.getElementById("изо");
изо.style.transform = `rotateX(${x}deg) rotateY(${y}deg) rotateZ(${z}deg)`;
}
var x = document.getElementById("x");
x.oninput = function() {
rotate3D();
}
var y = document.getElementById("y");
y.oninput = function() {
rotate3D();
}
var z = document.getElementById("z");
z.oninput = function() {
rotate3D();
}
rotate3D();
</script>
</body>
</html>