Throw item

This commit is contained in:
2024-09-01 17:51:16 -07:00
parent dc3639ad6e
commit dc9d9c4589
7 changed files with 130 additions and 6 deletions

View File

@@ -12,6 +12,8 @@ namespace GameJamDungeon
}
public readonly record struct MovementComputed(Basis Rotation, Vector3 Velocity);
public readonly record struct ThrowItem;
}
}
}

View File

@@ -24,6 +24,9 @@ namespace GameJamDungeon
if (Godot.Input.IsActionPressed(GameInputs.Sprint))
velocity *= 3;
if (Godot.Input.IsActionJustPressed(GameInputs.Throw))
Output(new Output.ThrowItem());
Output(new Output.MovementComputed(transform.Basis, velocity));
return ToSelf();