mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://dxq1b4cth265d"]
|
|
|
|
[ext_resource type="Script" uid="uid://e3fsq0i746o1" path="res://bullets.gd" id="2"]
|
|
[ext_resource type="Texture2D" uid="uid://c33jd3nwdqtb4" path="res://face_happy.png" id="3"]
|
|
[ext_resource type="Texture2D" uid="uid://b63ok8dbyysfs" path="res://face_sad.png" id="4"]
|
|
[ext_resource type="Script" uid="uid://eu1k1ulu68o2" path="res://player.gd" id="5"]
|
|
|
|
[sub_resource type="SpriteFrames" id="1"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="2"]
|
|
radius = 27.0
|
|
|
|
[node name="Shower" type="Node2D"]
|
|
|
|
[node name="Bullets" type="Node2D" parent="."]
|
|
script = ExtResource("2")
|
|
|
|
[node name="Player" type="Area2D" parent="."]
|
|
script = ExtResource("5")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player"]
|
|
sprite_frames = SubResource("1")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
shape = SubResource("2")
|
|
|
|
[connection signal="body_shape_entered" from="Player" to="Player" method="_on_body_shape_entered"]
|
|
[connection signal="body_shape_exited" from="Player" to="Player" method="_on_body_shape_exited"]
|