blergh
This commit is contained in:
1
player/pickup/HealthPickup.gltf
Normal file
1
player/pickup/HealthPickup.gltf
Normal file
File diff suppressed because one or more lines are too long
36
player/pickup/HealthPickup.gltf.import
Normal file
36
player/pickup/HealthPickup.gltf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://btimsrtpykehv"
|
||||
path="res://.godot/imported/HealthPickup.gltf-2c1e7d646dfcc91839ef4b12b4b21b5a.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/pickup/HealthPickup.gltf"
|
||||
dest_files=["res://.godot/imported/HealthPickup.gltf-2c1e7d646dfcc91839ef4b12b4b21b5a.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
BIN
player/pickup/HealthPickup_0.png
Normal file
BIN
player/pickup/HealthPickup_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
38
player/pickup/HealthPickup_0.png.import
Normal file
38
player/pickup/HealthPickup_0.png.import
Normal file
@@ -0,0 +1,38 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ch3f7fgb8vjf"
|
||||
path.s3tc="res://.godot/imported/HealthPickup_0.png-d0226eab55f583d1ac8fd5099b1b8d03.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "bcba089f73d750a5aaea7e864d992542"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/pickup/HealthPickup_0.png"
|
||||
dest_files=["res://.godot/imported/HealthPickup_0.png-d0226eab55f583d1ac8fd5099b1b8d03.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
13
player/pickup/health_pickup.gd
Normal file
13
player/pickup/health_pickup.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
extends Area3D
|
||||
class_name HealthPickup
|
||||
|
||||
@export var value : int = 500
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
102
player/pickup/health_pickup.tscn
Normal file
102
player/pickup/health_pickup.tscn
Normal file
@@ -0,0 +1,102 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://c6uobc6kd3v0t"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://btimsrtpykehv" path="res://player/pickup/HealthPickup.gltf" id="1_8xcsi"]
|
||||
[ext_resource type="Script" path="res://player/pickup/health_pickup.gd" id="1_ip3u3"]
|
||||
[ext_resource type="Texture2D" uid="uid://byda217s5cq8v" path="res://effects/light_01.png" id="2_2ivc6"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sj4ns"]
|
||||
transparency = 1
|
||||
shading_mode = 0
|
||||
albedo_color = Color(0.623529, 1, 1, 1)
|
||||
albedo_texture = ExtResource("2_2ivc6")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_icasn"]
|
||||
material = SubResource("StandardMaterial3D_sj4ns")
|
||||
size = Vector2(3, 3)
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_2mnc6"]
|
||||
radius = 1.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6bb8s"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("blockbench_export:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("blockbench_export:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_s83ec"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("blockbench_export:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0.5, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("blockbench_export:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, -3.14159, 0), Vector3(0, -6.28319, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mb1pw"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_6bb8s"),
|
||||
"idle": SubResource("Animation_s83ec")
|
||||
}
|
||||
|
||||
[node name="HealthPickup" type="Area3D"]
|
||||
collision_layer = 128
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_ip3u3")
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("1_8xcsi")]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="blockbench_export"]
|
||||
transform = Transform3D(1, 0, 7.45058e-09, 0, 1, 0, -7.45058e-09, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_icasn")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("SphereShape3D_2mnc6")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_mb1pw")
|
||||
}
|
||||
autoplay = "idle"
|
||||
126
player/pickup/minigun_pickup.tscn
Normal file
126
player/pickup/minigun_pickup.tscn
Normal file
@@ -0,0 +1,126 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://cm2k4whjr4jbm"]
|
||||
|
||||
[ext_resource type="Script" path="res://player/pickup/weapon_pickup.gd" id="1_5nqsp"]
|
||||
[ext_resource type="PackedScene" uid="uid://copmw7akys6hi" path="res://player/pickup/minigunpickup.gltf" id="2_w18s1"]
|
||||
[ext_resource type="AudioStream" uid="uid://bo224qk0te7h3" path="res://player/pickup/reload.ogg" id="3_vrtw7"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_hyxwk"]
|
||||
radius = 1.0
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2b65r"]
|
||||
load_path = "res://.godot/imported/light_01.png-043e946f6df880e55d2a4615e19b1007.s3tc.ctex"
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_65ex1"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_color = Color(1, 0.889936, 0.611993, 1)
|
||||
albedo_texture = SubResource("CompressedTexture2D_2b65r")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_6n3gu"]
|
||||
material = SubResource("StandardMaterial3D_65ex1")
|
||||
size = Vector2(3, 3)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_unsla"]
|
||||
length = 0.001
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Node3D:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Node3D:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_gajwr"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Node3D:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0.5, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Node3D:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 3.14159, 0), Vector3(0, 6.28319, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ah1ey"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_unsla"),
|
||||
"idle": SubResource("Animation_gajwr")
|
||||
}
|
||||
|
||||
[node name="MinigunPickup" type="Area3D"]
|
||||
collision_layer = 256
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_5nqsp")
|
||||
signal_name = "minigun"
|
||||
value = 100
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_hyxwk")
|
||||
|
||||
[node name="Node3D" type="Node3D" parent="."]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D"]
|
||||
transform = Transform3D(1, 0, 7.45058e-09, 0, 1, 0, -7.45058e-09, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_6n3gu")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Node3D"]
|
||||
transform = Transform3D(1, 0, 7.45058e-09, 0, 1, 0, -7.45058e-09, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_6n3gu")
|
||||
|
||||
[node name="blockbench_export" parent="Node3D" instance=ExtResource("2_w18s1")]
|
||||
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0.3)
|
||||
|
||||
[node name="blockbench_export2" parent="Node3D" instance=ExtResource("2_w18s1")]
|
||||
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
|
||||
|
||||
[node name="blockbench_export3" parent="Node3D" instance=ExtResource("2_w18s1")]
|
||||
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, -0.3)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ah1ey")
|
||||
}
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_vrtw7")
|
||||
max_polyphony = 2
|
||||
bus = &"SFX"
|
||||
1
player/pickup/minigunpickup.gltf
Normal file
1
player/pickup/minigunpickup.gltf
Normal file
File diff suppressed because one or more lines are too long
36
player/pickup/minigunpickup.gltf.import
Normal file
36
player/pickup/minigunpickup.gltf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://copmw7akys6hi"
|
||||
path="res://.godot/imported/minigunpickup.gltf-66cb63de4f33114aea7012605e0bf320.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/pickup/minigunpickup.gltf"
|
||||
dest_files=["res://.godot/imported/minigunpickup.gltf-66cb63de4f33114aea7012605e0bf320.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
BIN
player/pickup/minigunpickup_0.png
Normal file
BIN
player/pickup/minigunpickup_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
38
player/pickup/minigunpickup_0.png.import
Normal file
38
player/pickup/minigunpickup_0.png.import
Normal file
@@ -0,0 +1,38 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b76wr8vjkf2ag"
|
||||
path.s3tc="res://.godot/imported/minigunpickup_0.png-60892a2e6d681b078deba8302a471ada.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "0e260541caa6d26cf6b3b5f7065f12cf"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/pickup/minigunpickup_0.png"
|
||||
dest_files=["res://.godot/imported/minigunpickup_0.png-60892a2e6d681b078deba8302a471ada.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
126
player/pickup/missile_pickup.tscn
Normal file
126
player/pickup/missile_pickup.tscn
Normal file
@@ -0,0 +1,126 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://b84kb2tvtcvvs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqay3fxs1k6sp" path="res://player/weapons/missile/missile.gltf" id="1_252rl"]
|
||||
[ext_resource type="Script" path="res://player/pickup/weapon_pickup.gd" id="1_lfmny"]
|
||||
[ext_resource type="AudioStream" uid="uid://bo224qk0te7h3" path="res://player/pickup/reload.ogg" id="3_6gai8"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_hyxwk"]
|
||||
radius = 1.0
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2b65r"]
|
||||
load_path = "res://.godot/imported/light_01.png-043e946f6df880e55d2a4615e19b1007.s3tc.ctex"
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_65ex1"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_color = Color(1, 0.435294, 0.0313726, 1)
|
||||
albedo_texture = SubResource("CompressedTexture2D_2b65r")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_6n3gu"]
|
||||
material = SubResource("StandardMaterial3D_65ex1")
|
||||
size = Vector2(3, 3)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_unsla"]
|
||||
length = 0.001
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Node3D:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Node3D:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_gajwr"]
|
||||
resource_name = "idle"
|
||||
length = 2.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Node3D:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 0.5, 0), Vector3(0, 0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Node3D:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 1, 2),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 3.14159, 0), Vector3(0, 6.28319, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ah1ey"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_unsla"),
|
||||
"idle": SubResource("Animation_gajwr")
|
||||
}
|
||||
|
||||
[node name="MissilePickup" type="Area3D"]
|
||||
collision_layer = 256
|
||||
collision_mask = 0
|
||||
script = ExtResource("1_lfmny")
|
||||
signal_name = "missile"
|
||||
value = 15
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_hyxwk")
|
||||
|
||||
[node name="Node3D" type="Node3D" parent="."]
|
||||
|
||||
[node name="blockbench_export" parent="Node3D" instance=ExtResource("1_252rl")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.2, 0, 0)
|
||||
|
||||
[node name="blockbench_export3" parent="Node3D" instance=ExtResource("1_252rl")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
||||
|
||||
[node name="blockbench_export2" parent="Node3D" instance=ExtResource("1_252rl")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.2, 0, 0)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Node3D"]
|
||||
transform = Transform3D(1, 0, 7.45058e-09, 0, 1, 0, -7.45058e-09, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_6n3gu")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Node3D"]
|
||||
transform = Transform3D(1, 0, 7.45058e-09, 0, 1, 0, -7.45058e-09, 0, 1, 0, 0, 0)
|
||||
mesh = SubResource("QuadMesh_6n3gu")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ah1ey")
|
||||
}
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_6gai8")
|
||||
max_polyphony = 2
|
||||
bus = &"SFX"
|
||||
BIN
player/pickup/reload.ogg
Normal file
BIN
player/pickup/reload.ogg
Normal file
Binary file not shown.
19
player/pickup/reload.ogg.import
Normal file
19
player/pickup/reload.ogg.import
Normal file
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://bo224qk0te7h3"
|
||||
path="res://.godot/imported/reload.ogg-6a97a2c4d386ad5a6fbef255f5f91d2a.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/pickup/reload.ogg"
|
||||
dest_files=["res://.godot/imported/reload.ogg-6a97a2c4d386ad5a6fbef255f5f91d2a.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
11
player/pickup/weapon_pickup.gd
Normal file
11
player/pickup/weapon_pickup.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Area3D
|
||||
class_name WeaponPickup
|
||||
|
||||
@export var signal_name : String
|
||||
@export var value : int
|
||||
|
||||
func activate():
|
||||
$AudioStreamPlayer.play()
|
||||
$Node3D.queue_free()
|
||||
$CollisionShape3D.queue_free()
|
||||
$AudioStreamPlayer.finished.connect(queue_free)
|
||||
Reference in New Issue
Block a user