Lessons/tutorial---basic-player-traits/player.tscn

44 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=7 format=3 uid="uid://dn6vstynf4qyu"]
[ext_resource type="Script" path="res://player.gd" id="1_ro1ml"]
[ext_resource type="PackedScene" uid="uid://dphnf0cjfrcu7" path="res://bullet.tscn" id="2_5m6h0"]
2024-10-18 04:04:28 +00:00
[ext_resource type="Texture2D" uid="uid://c01t7u0aoeir7" path="res://assets/HelenMidQuality.png" id="2_k2fmb"]
[sub_resource type="SpriteFrames" id="SpriteFrames_77x2a"]
animations = [{
"frames": [{
"duration": 1.0,
2024-10-18 04:04:28 +00:00
"texture": ExtResource("2_k2fmb")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_emqsv"]
2024-10-18 04:04:28 +00:00
radius = 67.42
[sub_resource type="CircleShape2D" id="CircleShape2D_tnmln"]
2024-10-18 04:04:28 +00:00
radius = 9.06
[node name="Player" type="Area2D"]
z_index = 1
script = ExtResource("1_ro1ml")
bullet = ExtResource("2_5m6h0")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
2024-10-18 04:04:28 +00:00
position = Vector2(3.08, 0)
scale = Vector2(0.65, 0.65)
sprite_frames = SubResource("SpriteFrames_77x2a")
[node name="GrazeBox" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_emqsv")
[node name="KillBox" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_tnmln")
debug_color = Color(0.966315, 0, 0.481295, 0.42)
[node name="FrontBulletSource" type="Marker2D" parent="."]
position = Vector2(0, -50)