Lessons/tutorial---basic-player-traits/player.tscn
axel 8fce988954 BULLET!
Added bullet template
created a scene for the player character to move around in
added the ability for the player character to shoot
2024-11-21 18:38:01 -08:00

44 lines
1.3 KiB
Plaintext

[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"]
[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,
"texture": ExtResource("2_k2fmb")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_emqsv"]
radius = 67.42
[sub_resource type="CircleShape2D" id="CircleShape2D_tnmln"]
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="."]
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)