game: add shooting

This commit is contained in:
2025-08-14 20:29:46 +02:00
parent 8077ba9c39
commit ca9f189696
12 changed files with 362 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://co2f5i23gyp03"]
[gd_scene load_steps=8 format=3 uid="uid://co2f5i23gyp03"]
[ext_resource type="PackedScene" uid="uid://dkldpdufpl28x" path="res://player.tscn" id="1_f3sb7"]
[ext_resource type="Material" uid="uid://b22qolgtk5f6c" path="res://box.tres" id="1_fj7yv"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_f3sb7"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
@@ -18,6 +19,9 @@ glow_enabled = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f3sb7"]
albedo_color = Color(0.398875, 0.46629, 0.228578, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tlwt5"]
albedo_color = Color(1.01075e-06, 0.511717, 0.523072, 1)
[node name="World" type="Node3D"]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
@@ -36,26 +40,32 @@ material = SubResource("StandardMaterial3D_f3sb7")
[node name="Wall1" type="CSGBox3D" parent="Ground"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.61707, -49.5431)
size = Vector3(100, 10, 1)
material = SubResource("StandardMaterial3D_tlwt5")
[node name="Wall2" type="CSGBox3D" parent="Ground"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.61706, 49.9496)
size = Vector3(100, 10, 1)
material = SubResource("StandardMaterial3D_tlwt5")
[node name="Wall3" type="CSGBox3D" parent="Ground"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 49.4113, -4.61706, 0.548481)
size = Vector3(100, 10, 1)
material = SubResource("StandardMaterial3D_tlwt5")
[node name="Wall4" type="CSGBox3D" parent="Ground"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -48.8424, -4.61706, 0.548481)
size = Vector3(100, 10, 1)
material = SubResource("StandardMaterial3D_tlwt5")
[node name="CSGBox3D" type="CSGBox3D" parent="Ground"]
transform = Transform3D(1, 0, 0, 0, -1, -8.74228e-08, 0, 8.74228e-08, -1, 0, -0.970131, 27.9382)
size = Vector3(5, 1, 5)
material = ExtResource("1_fj7yv")
[node name="CSGBox3D2" type="CSGBox3D" parent="Ground"]
transform = Transform3D(1, 0, 0, 0, -1, -8.74228e-08, 0, 8.74228e-08, -1, 10.554, -2.97013, 27.9382)
size = Vector3(5, 5, 5)
material = ExtResource("1_fj7yv")
[node name="Player" parent="." instance=ExtResource("1_f3sb7")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55964, 0)