1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-24 17:14:22 +00:00
looping-for-loops/Objects/SpecialObjects/Player.tscn

90 lines
2.6 KiB
Text
Raw Normal View History

2020-10-05 21:54:45 +00:00
[gd_scene load_steps=10 format=2]
2020-10-03 01:20:01 +00:00
2020-10-05 13:14:17 +00:00
[ext_resource path="res://Sprites/Gatto/Donut.tres" type="SpriteFrames" id=1]
2020-10-04 14:35:24 +00:00
[ext_resource path="res://Objects/SpecialObjects/Player.gd" type="Script" id=2]
2020-10-05 13:14:17 +00:00
[ext_resource path="res://Sprites/Gatto/Body.tres" type="SpriteFrames" id=3]
[ext_resource path="res://Sprites/Gatto/Legs.tres" type="SpriteFrames" id=4]
2020-10-05 21:54:45 +00:00
[ext_resource path="res://Sprites/white.png" type="Texture" id=5]
2020-10-04 14:35:24 +00:00
2020-10-05 20:20:12 +00:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 19, 19 )
2020-10-05 20:20:12 +00:00
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 17, 17 )
2020-10-03 01:20:01 +00:00
2020-10-05 21:54:45 +00:00
[sub_resource type="Animation" id=3]
resource_name = "FadeToBlack"
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 0 ), Color( 0, 0, 0, 1 ) ]
}
[sub_resource type="Animation" id=4]
resource_name = "FadeToWhite"
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
2020-10-03 01:20:01 +00:00
[node name="Player" type="KinematicBody2D"]
z_index = 1
2020-10-03 01:20:01 +00:00
collision_layer = 2
collision_mask = 2147483677
script = ExtResource( 2 )
2020-10-05 20:20:12 +00:00
jump_speed = 496.0
2020-10-03 01:20:01 +00:00
2020-10-05 13:14:17 +00:00
[node name="Body" type="AnimatedSprite" parent="."]
frames = ExtResource( 3 )
animation = "neutral"
2020-10-05 13:14:17 +00:00
playing = true
[node name="Donut" type="AnimatedSprite" parent="."]
z_index = 1
frames = ExtResource( 1 )
animation = "neutral"
playing = true
[node name="Legs" type="AnimatedSprite" parent="."]
z_index = 2
frames = ExtResource( 4 )
animation = "neutral"
playing = true
2020-10-03 01:20:01 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2020-10-05 20:20:12 +00:00
shape = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
input_pickable = false
collision_layer = 2
collision_mask = 29
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
2020-10-05 20:20:12 +00:00
shape = SubResource( 2 )
2020-10-05 21:54:45 +00:00
[node name="FadeTo" type="Sprite" parent="."]
modulate = Color( 0, 0, 0, 0 )
z_index = 4096
texture = ExtResource( 5 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="FadeTo"]
anims/FadeToBlack = SubResource( 3 )
anims/FadeToWhite = SubResource( 4 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
2020-10-05 21:54:45 +00:00
[connection signal="animation_finished" from="FadeTo/AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]