july-game/scenes/bullet.tscn

26 lines
917 B
Plaintext
Raw Normal View History

[gd_scene load_steps=4 format=3 uid="uid://dmhto2dvjub1j"]
2025-08-12 01:03:09 +00:00
[ext_resource type="Script" uid="uid://do4exob6g0cfd" path="res://scripts/bullet.gd" id="1_mkf8s"]
[ext_resource type="Texture2D" uid="uid://dkeuhhrqbo1yg" path="res://assets/graphics/objects/bullet.png" id="2_y25gk"]
2025-08-12 01:03:09 +00:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_h1aey"]
radius = 1.99136
height = 17.9993
[node name="Area2D" type="Area2D"]
script = ExtResource("1_mkf8s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.57936
shape = SubResource("CapsuleShape2D_h1aey")
[node name="BulletGraphic" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(-3, -3)
rotation = 3.14159
scale = Vector2(0.1, 0.1)
texture = ExtResource("2_y25gk")
2025-08-12 01:03:09 +00:00
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="bulletHitSignal" from="." to="." method="_on_bullet_hit_signal"]