33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
|
[gd_scene load_steps=5 format=3 uid="uid://dx2wpxj51mnju"]
|
||
|
|
||
|
[ext_resource type="Texture2D" uid="uid://b63im173j48xu" path="res://assets/resources.png" id="1_1hbe6"]
|
||
|
[ext_resource type="Script" uid="uid://c5sb5760mlui6" path="res://scripts/Projectile.gd" id="1_3ndsa"]
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_17rhs"]
|
||
|
atlas = ExtResource("1_1hbe6")
|
||
|
region = Rect2(64, 0, 64, 64)
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8j1ou"]
|
||
|
size = Vector2(12, 23)
|
||
|
|
||
|
[node name="Bullet" type="RigidBody2D"]
|
||
|
collision_layer = 8
|
||
|
collision_mask = 3
|
||
|
contact_monitor = true
|
||
|
max_contacts_reported = 3
|
||
|
script = ExtResource("1_3ndsa")
|
||
|
cancel_speed = 200.0
|
||
|
lethal_speed = 250.0
|
||
|
|
||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
rotation = 1.5708
|
||
|
scale = Vector2(0.5, 0.5)
|
||
|
texture = SubResource("AtlasTexture_17rhs")
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
position = Vector2(-1.5, 0)
|
||
|
rotation = 1.5708
|
||
|
shape = SubResource("RectangleShape2D_8j1ou")
|
||
|
|
||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|