Lessons/tutorial---basic-player-traits/bullet.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

35 lines
1020 B
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://dphnf0cjfrcu7"]
[ext_resource type="Script" path="res://bullet.gd" id="1_cpge0"]
[ext_resource type="Texture2D" uid="uid://bixef7um6g62c" path="res://assets/helenknives.png" id="2_cxno8"]
[sub_resource type="SpriteFrames" id="SpriteFrames_8byar"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_cxno8")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_sehhp"]
radius = 10.9589
height = 43.5616
[node name="bullet" type="Area2D"]
script = ExtResource("1_cpge0")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(1, 1, 1, 0.509804)
sprite_frames = SubResource("SpriteFrames_8byar")
offset = Vector2(3.465, 0)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -10)
scale = Vector2(1.095, 1.095)
shape = SubResource("CapsuleShape2D_sehhp")
one_way_collision_margin = 0.0
debug_color = Color(0, 0.641316, 0.336247, 0.42)