123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- [gd_scene load_steps=9 format=3 uid="uid://c3dh7xb6ef76q"]
- [ext_resource type="Texture2D" uid="uid://cj2absxg54f75" path="res://level/coin.webp" id="1"]
- [ext_resource type="AudioStream" uid="uid://w4j7xs5uhoer" path="res://player/coin_pickup.wav" id="3"]
- [ext_resource type="Script" path="res://level/coin.gd" id="4"]
- [sub_resource type="Animation" id="Animation_4kkvr"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath(".:monitoring")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [true]
- }
- [sub_resource type="Animation" id="1"]
- resource_name = "picked"
- length = 1.5
- step = 0.25
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite2D:frame")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 1.25),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [0, 11]
- }
- tracks/1/type = "method"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath(".")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(1),
- "transitions": PackedFloat32Array(1),
- "values": [{
- "args": [],
- "method": &"queue_free"
- }]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath("Sprite2D:self_modulate")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0, 0.5),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
- }
- tracks/3/type = "value"
- tracks/3/imported = false
- tracks/3/enabled = true
- tracks/3/path = NodePath(".:monitoring")
- tracks/3/interp = 1
- tracks/3/loop_wrap = true
- tracks/3/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [false]
- }
- tracks/4/type = "value"
- tracks/4/imported = false
- tracks/4/enabled = true
- tracks/4/path = NodePath("Sprite2D:position")
- tracks/4/interp = 1
- tracks/4/loop_wrap = true
- tracks/4/keys = {
- "times": PackedFloat32Array(0, 1.5),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Vector2(0, 0), Vector2(0, -42)]
- }
- tracks/5/type = "audio"
- tracks/5/imported = false
- tracks/5/enabled = true
- tracks/5/path = NodePath("Pickup")
- tracks/5/interp = 1
- tracks/5/loop_wrap = true
- tracks/5/keys = {
- "clips": [{
- "end_offset": 0.0,
- "start_offset": 0.0,
- "stream": ExtResource("3")
- }],
- "times": PackedFloat32Array(0)
- }
- tracks/5/use_blend = true
- [sub_resource type="Animation" id="2"]
- loop_mode = 1
- step = 0.25
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("Sprite2D:frame")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.16675, 0.3335, 0.50025, 0.667, 0.83375, 1.0005),
- "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
- "update": 1,
- "values": [0, 1, 2, 3, 2, 1, 0]
- }
- tracks/1/type = "value"
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/path = NodePath("Sprite2D:position")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 2,
- "values": [Vector2(0, 0)]
- }
- tracks/2/type = "value"
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/path = NodePath("Sprite2D:self_modulate")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 2,
- "values": [Color(1, 1, 1, 1)]
- }
- tracks/3/type = "value"
- tracks/3/imported = false
- tracks/3/enabled = true
- tracks/3/path = NodePath(".:monitoring")
- tracks/3/interp = 1
- tracks/3/loop_wrap = true
- tracks/3/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 2,
- "values": [true]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_i7oeb"]
- _data = {
- "RESET": SubResource("Animation_4kkvr"),
- "picked": SubResource("1"),
- "spinning": SubResource("2")
- }
- [sub_resource type="CircleShape2D" id="3"]
- radius = 10.0499
- [node name="Coin" type="Area2D"]
- collision_layer = 0
- monitorable = false
- script = ExtResource("4")
- [node name="Sprite2D" type="Sprite2D" parent="."]
- scale = Vector2(0.65, 0.65)
- texture = ExtResource("1")
- hframes = 8
- vframes = 2
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- "": SubResource("AnimationLibrary_i7oeb")
- }
- autoplay = "spinning"
- [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
- shape = SubResource("3")
- [node name="Pickup" type="AudioStreamPlayer2D" parent="."]
- [connection signal="body_entered" from="." to="." method="_on_body_entered"]
|