NovemberGodotGame/fabigame/scenes/bullet.tscn

25 lines
861 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://b2tgt64a7m32v"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_jag7h"]
[ext_resource type="Texture2D" uid="uid://chjhyldrqmyfi" path="res://assets/graphics/projectiles/pixel_bullet.png" id="2_fl8or"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eswsk"]
size = Vector2(5, 2)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_jag7h")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 0)
shape = SubResource("RectangleShape2D_eswsk")
debug_color = Color(0.827451, 1, 0, 0.419608)
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(-2, -1)
rotation = 3.14159
scale = Vector2(0.04, 0.04)
texture = ExtResource("2_fl8or")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]