JanuaryGame/GodotProject/scenes/bullet.tscn

25 lines
928 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://c7v063yofnirp"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_au5n7"]
[ext_resource type="Texture2D" uid="uid://bk0aakyo6grve" path="res://assets/graphics/projectiles/pixel_bullet.png" id="2_pcjo1"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hrjpd"]
size = Vector2(14, 6)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_au5n7")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_hrjpd")
debug_color = Color(0.92607, 0.250785, 0.273463, 0.42)
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(-5, -3)
rotation = 3.14159
scale = Vector2(0.117753, 0.117753)
texture = ExtResource("2_pcjo1")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]