
1.实现走动 (1.识别摇杆方向给予物体X方向的速度 (2.使用赋予速度的方式使其移动 (3.不管摇杆深度,只管摇杆方向 2.实现跳跃 (1.只能跳跃一段 (2.只有着地的时候能够跳跃 (3.使用赋予速度的方法使其跳跃 3.增大了重力系数以增加2D游戏感
135 lines
4.6 KiB
Plaintext
135 lines
4.6 KiB
Plaintext
{
|
|
"name": "Player",
|
|
"maps": [
|
|
{
|
|
"name": "Normal",
|
|
"id": "bb06cb9c-bdca-4709-b1aa-457d12d70255",
|
|
"actions": [
|
|
{
|
|
"name": "Move",
|
|
"type": "Button",
|
|
"id": "4e75a7bf-f61d-4467-b879-29135d8cd3d0",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": ""
|
|
},
|
|
{
|
|
"name": "Jump",
|
|
"type": "Button",
|
|
"id": "24250c6f-6747-478e-b81d-935903c236bf",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": ""
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"name": "键盘",
|
|
"id": "aab0762b-c5b8-4cbf-a345-04491807edd8",
|
|
"path": "1DAxis",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Move",
|
|
"isComposite": true,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "negative",
|
|
"id": "502ab101-3e1c-47c5-8097-d026396c86bd",
|
|
"path": "<Keyboard>/a",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Play",
|
|
"action": "Move",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "positive",
|
|
"id": "e22fc4aa-94a8-448b-b0d8-94ab256cc513",
|
|
"path": "<Keyboard>/d",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Play",
|
|
"action": "Move",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "手柄",
|
|
"id": "29d79b45-4963-4fe0-8b84-fe2781deb94e",
|
|
"path": "1DAxis",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Move",
|
|
"isComposite": true,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "negative",
|
|
"id": "9fd08809-1fed-492c-a498-e52c1201c234",
|
|
"path": "<Gamepad>/leftStick/left",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Play",
|
|
"action": "Move",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "positive",
|
|
"id": "5581306c-cc74-4e79-ab4e-96385ffb026c",
|
|
"path": "<Gamepad>/leftStick/right",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Play",
|
|
"action": "Move",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "52d29d03-d5c1-4c8b-a2d0-222c4691b2e0",
|
|
"path": "<Gamepad>/buttonSouth",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Jump",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "e5c34c35-2a26-401f-b1d0-5ce3d0eacf41",
|
|
"path": "<Keyboard>/k",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Jump",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"controlSchemes": [
|
|
{
|
|
"name": "Play",
|
|
"bindingGroup": "Play",
|
|
"devices": [
|
|
{
|
|
"devicePath": "<Gamepad>",
|
|
"isOptional": false,
|
|
"isOR": false
|
|
},
|
|
{
|
|
"devicePath": "<Keyboard>",
|
|
"isOptional": true,
|
|
"isOR": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |