fixed being able to use the snow blower and watering can in a cutscene

This commit is contained in:
Ell 2021-03-18 21:45:31 +01:00
parent 1995ebcbbb
commit af52284c52
3 changed files with 23 additions and 16 deletions

View file

@ -7,6 +7,12 @@
"commands": [
"gamebundle"
]
},
"butlerdotnet": {
"version": "1.0.1",
"commands": [
"dotnet-butler"
]
}
}
}

View file

@ -128,6 +128,7 @@ namespace GreatSpringGameJam {
// item usage
HeldItem? usingItem = null;
if (!GameImpl.Instance.IsInCutscene) {
var rot = this.GetHeldRotation();
var rotVec = new Vector2(MathF.Cos(rot), MathF.Sin(rot));
if (MlemGame.Input.IsDown(MouseButton.Left)) {
@ -143,6 +144,7 @@ namespace GreatSpringGameJam {
this.Map.AddEntity(new WaterDrop(this.Map, this.Position + Vector2.One / 2 + rotVec * 0.65F, vel));
}
}
}
for (var i = 0; i < HeldSounds.Length; i++) {
if (usingItem == (HeldItem) i) {
HeldSounds[i].Play();

View file

@ -1,6 +1,5 @@
cd GreatSpringGameJam
dotnet gamebundle -wlm
butler push bin/Bundled/win ellpeck/a-breath-of-spring-air:win --fix-permissions
butler push bin/Bundled/linux ellpeck/a-breath-of-spring-air:linux --fix-permissions
butler push bin/Bundled/mac ellpeck/a-breath-of-spring-air:mac --fix-permissions
dotnet butler push bin/Bundled/win ellpeck/a-breath-of-spring-air:win --fix-permissions
dotnet butler push bin/Bundled/linux ellpeck/a-breath-of-spring-air:linux --fix-permissions
dotnet butler push bin/Bundled/mac ellpeck/a-breath-of-spring-air:mac --fix-permissions