diff --git a/Level/Interactables/Key/Key.tscn b/Level/Interactables/Key/Key.tscn index 2769fde..e6970f3 100644 --- a/Level/Interactables/Key/Key.tscn +++ b/Level/Interactables/Key/Key.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://Level/Interactables/Key/Key.gd" type="Script" id=1] [ext_resource path="res://Resources/Models/key/Material.material" type="Material" id=2] [ext_resource path="res://Materials/Glow.tres" type="Material" id=3] [ext_resource path="res://Resources/Models/key/key.dae" type="PackedScene" id=4] +[ext_resource path="res://Particles/Sparkle.tscn" type="PackedScene" id=5] [sub_resource type="ArrayMesh" id=1] resource_name = "Cube.001" @@ -60,3 +61,5 @@ visible = false [node name="CollisionShape" type="CollisionShape" parent="."] transform = Transform( 0.02, 0, 0, 0, 0.12, 0, 0, 0, 0.05, 0, 0, 0 ) shape = SubResource( 3 ) + +[node name="Sparkle" parent="." instance=ExtResource( 5 )] diff --git a/Level/Interactables/Keycard/Keycard.tscn b/Level/Interactables/Keycard/Keycard.tscn index 9976c75..4bb5ac1 100644 --- a/Level/Interactables/Keycard/Keycard.tscn +++ b/Level/Interactables/Keycard/Keycard.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://Level/Interactables/Keycard/Keycard.gd" type="Script" id=1] [ext_resource path="res://Resources/Models/keycard/Material_002.material" type="Material" id=2] [ext_resource path="res://Resources/Models/keycard/Material.material" type="Material" id=3] [ext_resource path="res://Materials/Glow.tres" type="Material" id=4] [ext_resource path="res://Resources/Models/keycard/keycard.dae" type="PackedScene" id=5] +[ext_resource path="res://Particles/Sparkle.tscn" type="PackedScene" id=6] [sub_resource type="ArrayMesh" id=1] resource_name = "Cube" @@ -75,3 +76,5 @@ visible = false [node name="CollisionShape" type="CollisionShape" parent="."] transform = Transform( 0.02, 0, 0, 0, 0.08, 0, 0, 0, 0.12, 0, 0, 0 ) shape = SubResource( 3 ) + +[node name="Sparkle" parent="." instance=ExtResource( 6 )] diff --git a/Level/World.tscn b/Level/World.tscn index fb6034e..a850e91 100644 --- a/Level/World.tscn +++ b/Level/World.tscn @@ -45,7 +45,6 @@ _data = { transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, 7 ) [node name="Collectibles" type="Spatial" parent="."] -editor/display_folded = true transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, 15.0831, 1.63203, 13.0809 ) [node name="Keycard" parent="Collectibles" groups=[ @@ -245,6 +244,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 73, 0, -88 ) [node name="Factory" parent="NavigationMeshInstance/BuildingBlocks" instance=ExtResource( 9 )] [node name="Ground" type="MeshInstance" parent="NavigationMeshInstance"] +editor/display_folded = true transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -83.9196, -0.0216179, -105.861 ) layers = 3 mesh = SubResource( 3 ) diff --git a/Particles/Sparkle.tscn b/Particles/Sparkle.tscn new file mode 100644 index 0000000..025d5be --- /dev/null +++ b/Particles/Sparkle.tscn @@ -0,0 +1,61 @@ +[gd_scene load_steps=8 format=2] + +[ext_resource path="res://Resources/Textures/sparkle.png" type="Texture" id=1] + +[sub_resource type="SpatialMaterial" id=1] +flags_transparent = true +flags_unshaded = true +vertex_color_use_as_albedo = true +params_blend_mode = 1 +params_billboard_mode = 3 +particles_anim_h_frames = 1 +particles_anim_v_frames = 1 +particles_anim_loop = false +albedo_texture = ExtResource( 1 ) + +[sub_resource type="Curve" id=2] +_data = [ Vector2( 0, 0.2745 ), 0.0, 0.0, 0, 0, Vector2( 0.487893, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.0897 ), 0.0, 0.0, 0, 0 ] + +[sub_resource type="CurveTexture" id=3] +curve = SubResource( 2 ) + +[sub_resource type="ParticlesMaterial" id=4] +emission_shape = 1 +emission_sphere_radius = 0.16 +spread = 0.0 +gravity = Vector3( 0, 5, 0 ) +angular_velocity = 40.0 +angular_velocity_random = 1.0 +linear_accel = -3.0 +scale = 0.05 +scale_random = 0.01 +scale_curve = SubResource( 3 ) + +[sub_resource type="QuadMesh" id=5] + +[sub_resource type="ParticlesMaterial" id=6] +emission_shape = 1 +emission_sphere_radius = 0.16 +spread = 0.0 +gravity = Vector3( 0, 5, 0 ) +angular_velocity = 40.0 +angular_velocity_random = 1.0 +linear_accel = -3.0 +scale = 0.05 +scale_random = 0.01 +scale_curve = SubResource( 3 ) +color = Color( 0.992157, 1, 0, 1 ) + +[node name="Sparkle" type="Spatial"] + +[node name="White" type="Particles" parent="."] +layers = 3 +material_override = SubResource( 1 ) +process_material = SubResource( 4 ) +draw_pass_1 = SubResource( 5 ) + +[node name="Yellow" type="Particles" parent="."] +layers = 3 +material_override = SubResource( 1 ) +process_material = SubResource( 6 ) +draw_pass_1 = SubResource( 5 ) diff --git a/Resources/Textures/sparkle.png b/Resources/Textures/sparkle.png new file mode 100644 index 0000000..6eed1c8 Binary files /dev/null and b/Resources/Textures/sparkle.png differ diff --git a/Resources/Textures/sparkle.png.import b/Resources/Textures/sparkle.png.import new file mode 100644 index 0000000..96fb10e --- /dev/null +++ b/Resources/Textures/sparkle.png.import @@ -0,0 +1,36 @@ +[remap] + +importer="texture" +type="StreamTexture" +path.s3tc="res://.import/sparkle.png-cd980144f9f0a21866fe5ba0957c2b83.s3tc.stex" +path.etc2="res://.import/sparkle.png-cd980144f9f0a21866fe5ba0957c2b83.etc2.stex" +metadata={ +"imported_formats": [ "s3tc", "etc2" ], +"vram_texture": true +} + +[deps] + +source_file="res://Resources/Textures/sparkle.png" +dest_files=[ "res://.import/sparkle.png-cd980144f9f0a21866fe5ba0957c2b83.s3tc.stex", "res://.import/sparkle.png-cd980144f9f0a21866fe5ba0957c2b83.etc2.stex" ] + +[params] + +compress/mode=2 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=true +flags/filter=true +flags/mipmaps=true +flags/anisotropic=false +flags/srgb=1 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0