game1/Scenes/bullet.tscn

28 lines
923 B
Plaintext
Raw Normal View History

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