MarchGame/scenes/bullet.tscn

25 lines
1009 B
Plaintext

[gd_scene format=3 uid="uid://ium8i6770pf4"]
[ext_resource type="Script" uid="uid://bfuhpow7x2xr1" path="res://scripts/bullet.gd" id="1_mkf8s"]
[ext_resource type="Texture2D" uid="uid://dgt4wqlv6dc04" path="res://assets/graphics/projectiles/pixel_bullet.png" id="2_y25gk"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h1aey"]
size = Vector2(12, 6)
[node name="Bullet" type="Area2D" unique_id=1756277677]
script = ExtResource("1_mkf8s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=646324606]
shape = SubResource("RectangleShape2D_h1aey")
debug_color = Color(0.93031675, 0.24960315, 0.23292288, 0.41960785)
[node name="bulletGraphic" type="Sprite2D" parent="." unique_id=1676462394]
texture_filter = 1
position = Vector2(-0.21197891, -0.023043156)
rotation = -3.1378267
scale = Vector2(0.10053524, 0.115774006)
texture = ExtResource("2_y25gk")
offset = Vector2(37.789795, 25.590113)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]