CyberInvaders/assets/misc/SimpleGunShot.tscn

28 lines
954 B
Plaintext
Raw Normal View History

[gd_scene load_steps=6 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://src/misc/SimpleGunShotHitbox.gd" type="Script" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 1.00781, 1.99957 )
[node name="SimpleGunShot" type="KinematicBody2D"]
visible = false
collision_layer = 0
collision_mask = 20
script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="GunShotHitbox" parent="." instance=ExtResource( 2 )]
script = ExtResource( 4 )
[node name="CollisionShape2D" parent="GunShotHitbox" index="0"]
shape = SubResource( 1 )
[connection signal="area_entered" from="GunShotHitbox" to="GunShotHitbox" method="_on_Hitbox_area_entered"]
[editable path="GunShotHitbox"]