game1/Scenes/bullet.tscn
2025-08-25 21:07:18 -04:00

28 lines
923 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://vycud8mssmb3"]
[ext_resource type="Script" uid="uid://doxxkkrf00ef2" path="res://scripts/bullet.gd" id="1_xjght"]
[ext_resource type="Texture2D" uid="uid://bhbxm8xtwu53h" path="res://Assets/Graphics/Environment/objects/pixel_bullet.png" id="2_oduel"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4mw4s"]
radius = 4.9812
height = 21.9964
[node name="bullet" type="Area2D"]
show_behind_parent = true
z_index = 1
position = Vector2(1, -1)
script = ExtResource("1_xjght")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.58879
shape = SubResource("CapsuleShape2D_4mw4s")
[node name="bullet_graphic" type="Sprite2D" parent="."]
position = Vector2(-6, -5)
rotation = 3.14159
scale = Vector2(0.2, 0.2)
texture = ExtResource("2_oduel")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]