periodic update for my own sanity

This commit is contained in:
allylikesfrogs 2023-05-02 22:04:18 -07:00
parent 0b1e41fb61
commit 36e5300300
2 changed files with 31 additions and 4 deletions

View File

@ -40,6 +40,15 @@
"processors": "", "processors": "",
"interactions": "", "interactions": "",
"initialStateCheck": false "initialStateCheck": false
},
{
"name": "ClarinetDive",
"type": "Button",
"id": "559aad1e-5ce8-4aa1-9442-12f6f51fceca",
"expectedControlType": "Button",
"processors": "",
"interactions": "",
"initialStateCheck": false
} }
], ],
"bindings": [ "bindings": [
@ -196,6 +205,17 @@
"action": "Jump", "action": "Jump",
"isComposite": false, "isComposite": false,
"isPartOfComposite": false "isPartOfComposite": false
},
{
"name": "",
"id": "679f7163-1cdf-4ae4-b4f4-133d1b2514a6",
"path": "<Keyboard>/#(J)",
"interactions": "",
"processors": "",
"groups": "",
"action": "ClarinetDive",
"isComposite": false,
"isPartOfComposite": false
} }
] ]
}, },

View File

@ -90,9 +90,10 @@ public class PlayerBehavior : MonoBehaviour
unlockedClarinet = stateController.unlockedClarinet; unlockedClarinet = stateController.unlockedClarinet;
if(playerIsAlive) if(playerIsAlive)
{ {
// if key pressed J if (playerInput.actions["ClarinetDive"].WasPressedThisFrame())
// launch down at 45 degree angle {
// use: player facing, velocity, start/end points? UseClarinet();
}
} }
} }
@ -141,7 +142,13 @@ public class PlayerBehavior : MonoBehaviour
void UseClarinet() void UseClarinet()
{ {
// if key pressed J
// launch down at 45 degree angle
// use: player facing, velocity, start dash function, end dash function
if (!playerController.IsGrounded())
{
//
}
} }
void ThrowTambourine() { void ThrowTambourine() {