CyberInvaders/assets/misc/SimpleGunShot.tscn

38 lines
1.3 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/misc/SimpleGunShot.png" type="Texture" id=1]
[ext_resource path="res://assets/misc/Hitbox.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/misc/SimpleGunShot.gd" type="Script" id=3]
[ext_resource path="res://assets/misc/Hurtbox.tscn" type="PackedScene" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 1.00781, 1.99957 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 1, 2 )
[node name="SimpleGunShot" type="KinematicBody2D"]
collision_mask = 20
script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="GunShotHitbox" parent="." instance=ExtResource( 2 )]
visible = false
collision_mask = 20
[node name="CollisionShape2D" parent="GunShotHitbox" index="0"]
shape = SubResource( 1 )
[node name="GunShotHurtbox" parent="." instance=ExtResource( 5 )]
collision_layer = 0
collision_mask = 4
[node name="CollisionShape2D2" type="CollisionShape2D" parent="GunShotHurtbox"]
shape = SubResource( 2 )
[connection signal="body_entered" from="GunShotHitbox" to="." method="_on_GunShotHitbox_body_entered"]
[connection signal="body_entered" from="GunShotHurtbox" to="." method="_on_Hurtbox_body_entered"]
[editable path="GunShotHitbox"]