CyberTower/scenes/objects/bullet.tscn

29 lines
922 B
Plaintext
Raw Normal View History

2024-02-16 12:35:30 +00:00
[gd_scene load_steps=4 format=3 uid="uid://h4fxpxqc6bpt"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_7ic61"]
2024-02-16 15:35:39 +00:00
[ext_resource type="Texture2D" uid="uid://voltvmrkr73s" path="res://assets/images/bullet.svg" id="1_tytsj"]
2024-02-16 12:35:30 +00:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r7dy5"]
size = Vector2(8, 24)
[node name="Bullet" type="CharacterBody2D"]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_7ic61")
[node name="BulletSprite" type="Sprite2D" parent="."]
position = Vector2(2.08165e-12, 2.08165e-12)
rotation = 1.5708
scale = Vector2(0.25, 0.25)
texture = ExtResource("1_tytsj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("RectangleShape2D_r7dy5")
[node name="DisposeTimer" type="Timer" parent="."]
2024-02-16 15:35:39 +00:00
one_shot = true
2024-02-16 12:35:30 +00:00
autostart = true
[connection signal="timeout" from="DisposeTimer" to="." method="_on_timed_out"]