31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://do4a4d3u60iy1"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/bullet.gd" id="1_utvym"]
|
|
[ext_resource type="Texture2D" uid="uid://d07qtvmhqjjts" path="res://Textures/Bullet.png" id="2_xbn07"]
|
|
[ext_resource type="AudioStream" uid="uid://b4r0manp60hb4" path="res://Sound/HitHurt.ogg" id="3_qwtek"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ad2gx"]
|
|
radius = 14.0
|
|
|
|
[node name="Bullet" type="RigidBody2D" groups=["Bullet"]]
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
gravity_scale = 0.0
|
|
lock_rotation = true
|
|
contact_monitor = true
|
|
max_contacts_reported = 1
|
|
script = ExtResource("1_utvym")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_ad2gx")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(1.42109e-14, 1)
|
|
scale = Vector2(0.034, 0.034)
|
|
texture = ExtResource("2_xbn07")
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("3_qwtek")
|
|
volume_db = -5.0
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|