This commit is contained in:
Steven Long
2023-07-17 09:22:46 -07:00
4 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<Project Sdk="Godot.NET.Sdk/4.1.0">
<Project Sdk="Godot.NET.Sdk/4.0.3">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>

9
Sandbox.csproj.old.1 Normal file
View File

@@ -0,0 +1,9 @@
<Project Sdk="Godot.NET.Sdk/4.1.0">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
<ItemGroup>
<Folder Include="Scenes\" />
</ItemGroup>
</Project>

View File

@@ -34,7 +34,7 @@ public partial class Player : CharacterBody3D
_weaponType = _projectiles.First();
}
public override void _UnhandledInput(InputEvent @event)
public override void _Process(double delta)
{
if (Input.IsActionJustPressed("quit"))
GetTree().Quit();

View File

@@ -12,7 +12,7 @@ config_version=5
config/name="Sandbox"
run/main_scene="res://Scenes/Main.tscn"
config/features=PackedStringArray("4.1", "C#", "Forward Plus")
config/features=PackedStringArray("4.0", "C#", "Forward Plus")
[dotnet]
@@ -81,5 +81,6 @@ shoot={
switch={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":88,"key_label":0,"unicode":120,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":3,"pressure":0.0,"pressed":true,"script":null)
]
}