-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbullet.tscn
22 lines (15 loc) · 933 Bytes
/
bullet.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[gd_scene load_steps=4 format=3 uid="uid://xd342n6x27ic"]
[ext_resource type="Script" path="res://bullet.gd" id="1_83jfg"]
[ext_resource type="Texture2D" uid="uid://g7mxfk1egvfn" path="res://Mini Pixel Pack 3/Projectiles/Player_charged_beam (16 x 16).png" id="2_50fd8"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2l1tc"]
size = Vector2(4, 8)
[node name="Bullet" type="Area2D"]
script = ExtResource("1_83jfg")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_50fd8")
hframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_2l1tc")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]