diff --git a/assets/coin.gd b/assets/coin.gd index 2c54ddd..30e1e2d 100644 --- a/assets/coin.gd +++ b/assets/coin.gd @@ -1,7 +1,15 @@ extends RigidBody2D +@export var Particles: PackedScene func _on_body_entered(body: Node) -> void: - print("aaa") if abs(linear_velocity.x) > 200 or abs(linear_velocity.y) > 200: %AudioStreamPlayer.play() + +func _on_area_2d_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void: + if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT: + if event.pressed: + var particles = Particles.instantiate() + particles.global_position = global_position + get_parent().add_child(particles) + queue_free() diff --git a/assets/coin.tscn b/assets/coin.tscn index a49a53f..4de1358 100644 --- a/assets/coin.tscn +++ b/assets/coin.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=67 format=3 uid="uid://d3e7g42ja172n"] +[gd_scene load_steps=69 format=3 uid="uid://d3e7g42ja172n"] [ext_resource type="Texture2D" uid="uid://dde5y52arb7gv" path="res://assets/coin/32x32/kern00.png" id="1_7k24t"] [ext_resource type="Script" uid="uid://bkcmu4w4qres" path="res://assets/coin.gd" id="1_wfxl6"] +[ext_resource type="PackedScene" uid="uid://7tn5hqexpcpy" path="res://objects/particles/coinparticles.tscn" id="2_3rofp"] [ext_resource type="Texture2D" uid="uid://dpuspvsihppck" path="res://assets/coin/32x32/kern01.png" id="2_a8cij"] [ext_resource type="Texture2D" uid="uid://dgvsqv6gnww2r" path="res://assets/coin/32x32/kern02.png" id="3_xgl08"] [ext_resource type="Texture2D" uid="uid://3fkjt7kdhhxh" path="res://assets/coin/32x32/kern03.png" id="4_wfxl6"] @@ -257,10 +258,14 @@ animations = [{ [sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_3rofp"] random_pitch = 1.5 +random_volume_offset_db = 5.0 streams_count = 2 stream_0/stream = ExtResource("60_xgl08") stream_1/stream = ExtResource("61_wfxl6") +[sub_resource type="CircleShape2D" id="CircleShape2D_3rofp"] +radius = 35.0143 + [node name="RigidBody2D" type="RigidBody2D"] collision_layer = 2 collision_mask = 2 @@ -269,6 +274,7 @@ can_sleep = false contact_monitor = true max_contacts_reported = 1 script = ExtResource("1_wfxl6") +Particles = ExtResource("2_3rofp") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, -1) @@ -283,4 +289,10 @@ frame_progress = 0.706514 unique_name_in_owner = true stream = SubResource("AudioStreamRandomizer_3rofp") +[node name="Area2D" type="Area2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +shape = SubResource("CircleShape2D_3rofp") + [connection signal="body_entered" from="." to="." method="_on_body_entered"] +[connection signal="input_event" from="Area2D" to="." method="_on_area_2d_input_event"] diff --git a/assets/coin.tscn1324181308.tmp b/assets/coin.tscn1324181308.tmp new file mode 100644 index 0000000..8bc1d1b --- /dev/null +++ b/assets/coin.tscn1324181308.tmp @@ -0,0 +1,298 @@ +[gd_scene load_steps=69 format=3 uid="uid://d3e7g42ja172n"] + +[ext_resource type="Texture2D" uid="uid://dde5y52arb7gv" path="res://assets/coin/32x32/kern00.png" id="1_7k24t"] +[ext_resource type="Script" uid="uid://bkcmu4w4qres" path="res://assets/coin.gd" id="1_wfxl6"] +[ext_resource type="PackedScene" uid="uid://7tn5hqexpcpy" path="res://objects/particles/coinparticles.tscn" id="2_3rofp"] +[ext_resource type="Texture2D" uid="uid://dpuspvsihppck" path="res://assets/coin/32x32/kern01.png" id="2_a8cij"] +[ext_resource type="Texture2D" uid="uid://dgvsqv6gnww2r" path="res://assets/coin/32x32/kern02.png" id="3_xgl08"] +[ext_resource type="Texture2D" uid="uid://3fkjt7kdhhxh" path="res://assets/coin/32x32/kern03.png" id="4_wfxl6"] +[ext_resource type="Texture2D" uid="uid://bb7pwukp7syda" path="res://assets/coin/32x32/kern04.png" id="5_3rofp"] +[ext_resource type="Texture2D" uid="uid://c03vrjdpetxhu" path="res://assets/coin/32x32/kern05.png" id="6_hvyyd"] +[ext_resource type="Texture2D" uid="uid://5wojxd4x5uoj" path="res://assets/coin/32x32/kern06.png" id="7_mlu6k"] +[ext_resource type="Texture2D" uid="uid://0iw50oxbku8s" path="res://assets/coin/32x32/kern07.png" id="8_7dg76"] +[ext_resource type="Texture2D" uid="uid://dnquv8if8hrwe" path="res://assets/coin/32x32/kern08.png" id="9_rwolg"] +[ext_resource type="Texture2D" uid="uid://bkv8gh43wrlrt" path="res://assets/coin/32x32/kern09.png" id="10_8mw4u"] +[ext_resource type="Texture2D" uid="uid://ddps78o1il1av" path="res://assets/coin/32x32/kern10.png" id="11_bv0us"] +[ext_resource type="Texture2D" uid="uid://dcuys0a0lsjmn" path="res://assets/coin/32x32/kern11.png" id="12_v5ali"] +[ext_resource type="Texture2D" uid="uid://bpb8r3b3o3jts" path="res://assets/coin/32x32/kern12.png" id="13_ggcrs"] +[ext_resource type="Texture2D" uid="uid://byfxm4jyefgqq" path="res://assets/coin/32x32/kern13.png" id="14_lgd6u"] +[ext_resource type="Texture2D" uid="uid://bj1qohb1ug73v" path="res://assets/coin/32x32/kern14.png" id="15_uhcxw"] +[ext_resource type="Texture2D" uid="uid://dtqjpqlj6jkiw" path="res://assets/coin/32x32/kern15.png" id="16_ldnsf"] +[ext_resource type="Texture2D" uid="uid://blassvx0mmg4u" path="res://assets/coin/32x32/kern16.png" id="17_dwf82"] +[ext_resource type="Texture2D" uid="uid://bwss21eihccvs" path="res://assets/coin/32x32/kern17.png" id="18_f6neo"] +[ext_resource type="Texture2D" uid="uid://c8bnlxjvwrf2u" path="res://assets/coin/32x32/kern18.png" id="19_5xf6l"] +[ext_resource type="Texture2D" uid="uid://b83bjp6hlslan" path="res://assets/coin/32x32/kern19.png" id="20_n30y5"] +[ext_resource type="Texture2D" uid="uid://bupntk65rogjf" path="res://assets/coin/32x32/kern20.png" id="21_fydi8"] +[ext_resource type="Texture2D" uid="uid://dyfnupka4opbm" path="res://assets/coin/32x32/kern21.png" id="22_2l5e7"] +[ext_resource type="Texture2D" uid="uid://c1qfrs382bdqn" path="res://assets/coin/32x32/kern22.png" id="23_3eker"] +[ext_resource type="Texture2D" uid="uid://m0jxb71ytuwe" path="res://assets/coin/32x32/kern23.png" id="24_xxalv"] +[ext_resource type="Texture2D" uid="uid://h5kvm7klm1mx" path="res://assets/coin/32x32/kern24.png" id="25_27855"] +[ext_resource type="Texture2D" uid="uid://b3v2xsv0wkd7k" path="res://assets/coin/32x32/kern25.png" id="26_auhly"] +[ext_resource type="Texture2D" uid="uid://c168jc4vm2io6" path="res://assets/coin/32x32/kern26.png" id="27_4o8vm"] +[ext_resource type="Texture2D" uid="uid://c13ywctl6navi" path="res://assets/coin/32x32/kern27.png" id="28_qn34p"] +[ext_resource type="Texture2D" uid="uid://bn4rl6wroqnlb" path="res://assets/coin/32x32/kern28.png" id="29_t8wvq"] +[ext_resource type="Texture2D" uid="uid://dvonefiadnrad" path="res://assets/coin/32x32/kern29.png" id="30_l0nl5"] +[ext_resource type="Texture2D" uid="uid://bqki105oqewb4" path="res://assets/coin/32x32/kern30.png" id="31_ewkb6"] +[ext_resource type="Texture2D" uid="uid://ykpiy6tofi0a" path="res://assets/coin/32x32/kern31.png" id="32_aata5"] +[ext_resource type="Texture2D" uid="uid://cpn0pwp7bwxhf" path="res://assets/coin/32x32/kern32.png" id="33_jd5c3"] +[ext_resource type="Texture2D" uid="uid://d0ln237lpia7a" path="res://assets/coin/32x32/kern33.png" id="34_kn5g2"] +[ext_resource type="Texture2D" uid="uid://dkigyx57johp1" path="res://assets/coin/32x32/kern34.png" id="35_pirji"] +[ext_resource type="Texture2D" uid="uid://b3yjj8n103gk4" path="res://assets/coin/32x32/kern35.png" id="36_xgf20"] +[ext_resource type="Texture2D" uid="uid://bcdv0jsdgoke5" path="res://assets/coin/32x32/kern36.png" id="37_j5lae"] +[ext_resource type="Texture2D" uid="uid://5qgwf21yiu1e" path="res://assets/coin/32x32/kern37.png" id="38_0jtmx"] +[ext_resource type="Texture2D" uid="uid://c0livctw3g2j5" path="res://assets/coin/32x32/kern38.png" id="39_yqkk5"] +[ext_resource type="Texture2D" uid="uid://dtkd41naiojsc" path="res://assets/coin/32x32/kern39.png" id="40_bxy7q"] +[ext_resource type="Texture2D" uid="uid://ckra4mry5lqu7" path="res://assets/coin/32x32/kern40.png" id="41_dsr28"] +[ext_resource type="Texture2D" uid="uid://dinyl5bfl6q2w" path="res://assets/coin/32x32/kern41.png" id="42_7eoqq"] +[ext_resource type="Texture2D" uid="uid://cv35oedawnfpv" path="res://assets/coin/32x32/kern42.png" id="43_isvka"] +[ext_resource type="Texture2D" uid="uid://dclypukhns5rf" path="res://assets/coin/32x32/kern43.png" id="44_30g3h"] +[ext_resource type="Texture2D" uid="uid://dsio52pvjboal" path="res://assets/coin/32x32/kern44.png" id="45_e731x"] +[ext_resource type="Texture2D" uid="uid://cdwr1h3dqnnrw" path="res://assets/coin/32x32/kern45.png" id="46_misfe"] +[ext_resource type="Texture2D" uid="uid://c4f04m7h05xbs" path="res://assets/coin/32x32/kern46.png" id="47_rggw1"] +[ext_resource type="Texture2D" uid="uid://dl4yqmb7nbl0t" path="res://assets/coin/32x32/kern47.png" id="48_4ofu4"] +[ext_resource type="Texture2D" uid="uid://lwfjtkgkvq24" path="res://assets/coin/32x32/kern48.png" id="49_mskaf"] +[ext_resource type="Texture2D" uid="uid://duhljadrhfhwl" path="res://assets/coin/32x32/kern49.png" id="50_jybeq"] +[ext_resource type="Texture2D" uid="uid://b7ccnkc5j0os" path="res://assets/coin/32x32/kern50.png" id="51_obdf5"] +[ext_resource type="Texture2D" uid="uid://c4raloxcgsly7" path="res://assets/coin/32x32/kern51.png" id="52_dgw0c"] +[ext_resource type="Texture2D" uid="uid://dssa8ra2352y1" path="res://assets/coin/32x32/kern52.png" id="53_rgfiq"] +[ext_resource type="Texture2D" uid="uid://7x2w07lyb18o" path="res://assets/coin/32x32/kern53.png" id="54_437h1"] +[ext_resource type="Texture2D" uid="uid://i3j5iqod63e7" path="res://assets/coin/32x32/kern54.png" id="55_hat7l"] +[ext_resource type="Texture2D" uid="uid://c4eaomvu8qyym" path="res://assets/coin/32x32/kern55.png" id="56_7xrr5"] +[ext_resource type="Texture2D" uid="uid://b0mt5gjq8yyg4" path="res://assets/coin/32x32/kern56.png" id="57_n14es"] +[ext_resource type="Texture2D" uid="uid://3tj06mwsi51y" path="res://assets/coin/32x32/kern57.png" id="58_00jri"] +[ext_resource type="Texture2D" uid="uid://dsar2j88hbb3l" path="res://assets/coin/32x32/kern58.png" id="59_5elhm"] +[ext_resource type="AudioStream" uid="uid://dh2bohnhcrwl7" path="res://assets/sounds/coin/Key.wav" id="60_xgl08"] +[ext_resource type="AudioStream" uid="uid://obooc8dcgcr2" path="res://assets/sounds/coin/scoin.wav" id="61_wfxl6"] + +[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_7k24t"] +friction = 0.36 +bounce = 0.9 + +[sub_resource type="CircleShape2D" id="CircleShape2D_a8cij"] +radius = 13.0384 + +[sub_resource type="SpriteFrames" id="SpriteFrames_eiyxk"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("1_7k24t") +}, { +"duration": 1.0, +"texture": ExtResource("2_a8cij") +}, { +"duration": 1.0, +"texture": ExtResource("3_xgl08") +}, { +"duration": 1.0, +"texture": ExtResource("4_wfxl6") +}, { +"duration": 1.0, +"texture": ExtResource("5_3rofp") +}, { +"duration": 1.0, +"texture": ExtResource("6_hvyyd") +}, { +"duration": 1.0, +"texture": ExtResource("7_mlu6k") +}, { +"duration": 1.0, +"texture": ExtResource("8_7dg76") +}, { +"duration": 1.0, +"texture": ExtResource("9_rwolg") +}, { +"duration": 1.0, +"texture": ExtResource("10_8mw4u") +}, { +"duration": 1.0, +"texture": ExtResource("11_bv0us") +}, { +"duration": 1.0, +"texture": ExtResource("12_v5ali") +}, { +"duration": 1.0, +"texture": ExtResource("13_ggcrs") +}, { +"duration": 1.0, +"texture": ExtResource("14_lgd6u") +}, { +"duration": 1.0, +"texture": ExtResource("15_uhcxw") +}, { +"duration": 1.0, +"texture": ExtResource("16_ldnsf") +}, { +"duration": 1.0, +"texture": ExtResource("17_dwf82") +}, { +"duration": 1.0, +"texture": ExtResource("18_f6neo") +}, { +"duration": 1.0, +"texture": ExtResource("19_5xf6l") +}, { +"duration": 1.0, +"texture": ExtResource("20_n30y5") +}, { +"duration": 1.0, +"texture": ExtResource("21_fydi8") +}, { +"duration": 1.0, +"texture": ExtResource("22_2l5e7") +}, { +"duration": 1.0, +"texture": ExtResource("23_3eker") +}, { +"duration": 1.0, +"texture": ExtResource("24_xxalv") +}, { +"duration": 1.0, +"texture": ExtResource("25_27855") +}, { +"duration": 1.0, +"texture": ExtResource("26_auhly") +}, { +"duration": 1.0, +"texture": ExtResource("27_4o8vm") +}, { +"duration": 1.0, +"texture": ExtResource("28_qn34p") +}, { +"duration": 1.0, +"texture": ExtResource("29_t8wvq") +}, { +"duration": 1.0, +"texture": ExtResource("30_l0nl5") +}, { +"duration": 1.0, +"texture": ExtResource("31_ewkb6") +}, { +"duration": 1.0, +"texture": ExtResource("32_aata5") +}, { +"duration": 1.0, +"texture": ExtResource("33_jd5c3") +}, { +"duration": 1.0, +"texture": ExtResource("34_kn5g2") +}, { +"duration": 1.0, +"texture": ExtResource("35_pirji") +}, { +"duration": 1.0, +"texture": ExtResource("36_xgf20") +}, { +"duration": 1.0, +"texture": ExtResource("37_j5lae") +}, { +"duration": 1.0, +"texture": ExtResource("38_0jtmx") +}, { +"duration": 1.0, +"texture": ExtResource("39_yqkk5") +}, { +"duration": 1.0, +"texture": ExtResource("40_bxy7q") +}, { +"duration": 1.0, +"texture": ExtResource("41_dsr28") +}, { +"duration": 1.0, +"texture": ExtResource("42_7eoqq") +}, { +"duration": 1.0, +"texture": ExtResource("43_isvka") +}, { +"duration": 1.0, +"texture": ExtResource("44_30g3h") +}, { +"duration": 1.0, +"texture": ExtResource("45_e731x") +}, { +"duration": 1.0, +"texture": ExtResource("46_misfe") +}, { +"duration": 1.0, +"texture": ExtResource("47_rggw1") +}, { +"duration": 1.0, +"texture": ExtResource("48_4ofu4") +}, { +"duration": 1.0, +"texture": ExtResource("49_mskaf") +}, { +"duration": 1.0, +"texture": ExtResource("50_jybeq") +}, { +"duration": 1.0, +"texture": ExtResource("51_obdf5") +}, { +"duration": 1.0, +"texture": ExtResource("52_dgw0c") +}, { +"duration": 1.0, +"texture": ExtResource("53_rgfiq") +}, { +"duration": 1.0, +"texture": ExtResource("54_437h1") +}, { +"duration": 1.0, +"texture": ExtResource("55_hat7l") +}, { +"duration": 1.0, +"texture": ExtResource("56_7xrr5") +}, { +"duration": 1.0, +"texture": ExtResource("57_n14es") +}, { +"duration": 1.0, +"texture": ExtResource("58_00jri") +}, { +"duration": 1.0, +"texture": ExtResource("59_5elhm") +}], +"loop": true, +"name": &"default", +"speed": 60.0 +}] + +[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_3rofp"] +random_pitch = 1.5 +random_volume_offset_db = 5.0 +streams_count = 2 +stream_0/stream = ExtResource("60_xgl08") +stream_1/stream = ExtResource("61_wfxl6") + +[sub_resource type="CircleShape2D" id="CircleShape2D_3rofp"] +radius = 28.0179 + +[node name="RigidBody2D" type="RigidBody2D"] +collision_layer = 2 +collision_mask = 2 +physics_material_override = SubResource("PhysicsMaterial_7k24t") +can_sleep = false +contact_monitor = true +max_contacts_reported = 1 +script = ExtResource("1_wfxl6") +Particles = ExtResource("2_3rofp") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2(0, -1) +shape = SubResource("CircleShape2D_a8cij") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +sprite_frames = SubResource("SpriteFrames_eiyxk") +autoplay = "default" +frame_progress = 0.706514 + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +unique_name_in_owner = true +stream = SubResource("AudioStreamRandomizer_3rofp") + +[node name="Area2D" type="Area2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +shape = SubResource("CircleShape2D_3rofp") + +[connection signal="body_entered" from="." to="." method="_on_body_entered"] +[connection signal="input_event" from="Area2D" to="." method="_on_area_2d_input_event"] diff --git a/assets/coin/coin_particles.png b/assets/coin/coin_particles.png new file mode 100644 index 0000000..958fb1c Binary files /dev/null and b/assets/coin/coin_particles.png differ diff --git a/assets/coin/coin_particles.png.import b/assets/coin/coin_particles.png.import new file mode 100644 index 0000000..1d43552 --- /dev/null +++ b/assets/coin/coin_particles.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dno3lbn6pruvi" +path="res://.godot/imported/coin_particles.png-e887db4431b14bdfd7f962dd00db5595.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/coin/coin_particles.png" +dest_files=["res://.godot/imported/coin_particles.png-e887db4431b14bdfd7f962dd00db5595.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +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=1 diff --git a/assets/sounds/coin/collect_coin.wav b/assets/sounds/coin/collect_coin.wav new file mode 100644 index 0000000..a037297 Binary files /dev/null and b/assets/sounds/coin/collect_coin.wav differ diff --git a/assets/sounds/coin/collect_coin.wav.import b/assets/sounds/coin/collect_coin.wav.import new file mode 100644 index 0000000..8924020 --- /dev/null +++ b/assets/sounds/coin/collect_coin.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ddqywicil65up" +path="res://.godot/imported/collect_coin.wav-0818724e8104f0d02096e05bfa14f95e.sample" + +[deps] + +source_file="res://assets/sounds/coin/collect_coin.wav" +dest_files=["res://.godot/imported/collect_coin.wav-0818724e8104f0d02096e05bfa14f95e.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=2 diff --git a/default_bus_layout.tres b/default_bus_layout.tres index 45195f5..0ec0996 100644 --- a/default_bus_layout.tres +++ b/default_bus_layout.tres @@ -20,6 +20,7 @@ pre_gain = 30.27 post_gain = -25.3 [resource] +bus/0/volume_db = -21.8348 bus/1/name = &"New Bus" bus/1/solo = false bus/1/mute = false diff --git a/objects/particles/coinparticles.gd b/objects/particles/coinparticles.gd new file mode 100644 index 0000000..f8a4092 --- /dev/null +++ b/objects/particles/coinparticles.gd @@ -0,0 +1,7 @@ +extends CPUParticles2D + +func _ready() -> void: + emitting = true + +func _on_finished() -> void: + queue_free() diff --git a/objects/particles/coinparticles.gd.uid b/objects/particles/coinparticles.gd.uid new file mode 100644 index 0000000..af8dcc8 --- /dev/null +++ b/objects/particles/coinparticles.gd.uid @@ -0,0 +1 @@ +uid://m1qh02lo1tp5 diff --git a/objects/particles/coinparticles.tscn b/objects/particles/coinparticles.tscn new file mode 100644 index 0000000..3ff5e11 --- /dev/null +++ b/objects/particles/coinparticles.tscn @@ -0,0 +1,46 @@ +[gd_scene load_steps=7 format=3 uid="uid://7tn5hqexpcpy"] + +[ext_resource type="Texture2D" uid="uid://dno3lbn6pruvi" path="res://assets/coin/coin_particles.png" id="1_pjt1y"] +[ext_resource type="Script" uid="uid://m1qh02lo1tp5" path="res://objects/particles/coinparticles.gd" id="2_7b2lc"] +[ext_resource type="AudioStream" uid="uid://ddqywicil65up" path="res://assets/sounds/coin/collect_coin.wav" id="3_geflo"] + +[sub_resource type="Curve" id="Curve_7b2lc"] +_limits = [-360.0, 360.0, 0.0, 1.0] +_data = [Vector2(0, -360), 0.0, 0.0, 0, 0, Vector2(0.689266, 360), 0.0, 0.0, 0, 0, Vector2(0.819209, 360), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="Curve" id="Curve_geflo"] +_limits = [0.0, 0.629214, 0.0, 1.0] +_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.231638, 0.615074), 0.0, 0.0, 0, 0, Vector2(0.632768, 0.00706983), 0.0, 0.0, 0, 0] +point_count = 3 + +[sub_resource type="Gradient" id="Gradient_u1vah"] +offsets = PackedFloat32Array(0, 0.119205, 0.337748, 0.543046, 0.682119, 0.807947) +colors = PackedColorArray(1, 1, 1, 1, 1, 0.619608, 0.403922, 1, 1, 1, 0, 1, 1, 0.729412, 1, 1, 1, 0.932353, 0, 1, 1, 1, 1, 1) + +[node name="CoinParticles" type="CPUParticles2D"] +emitting = false +amount = 22 +texture = ExtResource("1_pjt1y") +one_shot = true +explosiveness = 1.0 +lifetime_randomness = 1.0 +direction = Vector2(0, 0) +spread = 180.0 +gravity = Vector2(0, 100) +initial_velocity_min = 90.91 +initial_velocity_max = 262.63 +angle_max = 720.0 +angle_curve = SubResource("Curve_7b2lc") +scale_amount_min = 0.6 +scale_amount_max = 0.6 +scale_amount_curve = SubResource("Curve_geflo") +color_ramp = SubResource("Gradient_u1vah") +script = ExtResource("2_7b2lc") + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("3_geflo") +volume_db = 24.0 +autoplay = true + +[connection signal="finished" from="." to="." method="_on_finished"] diff --git a/test_scene_scholar.tscn b/test_scene_scholar.tscn index 54e5557..3f4ba72 100644 --- a/test_scene_scholar.tscn +++ b/test_scene_scholar.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=4 format=3 uid="uid://c5is82tirrhqf"] +[gd_scene load_steps=4 format=3 uid="uid://cfltr0v4ntlq2"] -[ext_resource type="PackedScene" uid="uid://bgo5hhh00twsn" path="res://objects/horse/test_horse.tscn" id="1_ii5g4"] +[ext_resource type="PackedScene" path="res://objects/horse/test_horse.tscn" id="1_ii5g4"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ii5g4"] size = Vector2(151, 657)