2025-02-05 14:05:36 -05:00
|
|
|
[gd_scene load_steps=13 format=3 uid="uid://c6ybtahxwpukd"]
|
2024-04-16 20:29:45 -04:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://bullet.gd" id="1_3q13i"]
|
2024-05-07 14:29:47 -04:00
|
|
|
[ext_resource type="Texture2D" uid="uid://fgfa8x6icumw" path="res://bullets.png" id="2_unua3"]
|
2024-04-16 20:29:45 -04:00
|
|
|
[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="4_h1jno"]
|
|
|
|
[ext_resource type="Script" path="res://TrajectoryDisplay.gd" id="5_0jcwc"]
|
|
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_xnhwp"]
|
|
|
|
friction = 0.0
|
|
|
|
bounce = 1.0
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_b5cca"]
|
|
|
|
radius = 13.0
|
|
|
|
|
2024-05-07 14:29:47 -04:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8myh4"]
|
|
|
|
atlas = ExtResource("2_unua3")
|
|
|
|
region = Rect2(0, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ldqff"]
|
|
|
|
atlas = ExtResource("2_unua3")
|
|
|
|
region = Rect2(40, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_u3ov1"]
|
|
|
|
atlas = ExtResource("2_unua3")
|
|
|
|
region = Rect2(80, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ia1sw"]
|
|
|
|
atlas = ExtResource("2_unua3")
|
|
|
|
region = Rect2(120, 0, 40, 40)
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_pacu6"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_8myh4")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ldqff")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_u3ov1")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": SubResource("AtlasTexture_ia1sw")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"default",
|
|
|
|
"speed": 7.0
|
|
|
|
}]
|
|
|
|
|
2025-02-05 14:05:36 -05:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_13gk7"]
|
|
|
|
radius = 30.0
|
|
|
|
|
2024-04-24 14:57:29 -04:00
|
|
|
[node name="Bullet" type="RigidBody2D" groups=["bullet"]]
|
2024-04-16 20:29:45 -04:00
|
|
|
collision_layer = 2
|
|
|
|
physics_material_override = SubResource("PhysicsMaterial_xnhwp")
|
|
|
|
gravity_scale = 1.66533e-16
|
|
|
|
max_contacts_reported = 1
|
|
|
|
contact_monitor = true
|
|
|
|
linear_velocity = Vector2(2.08165e-12, 2.08165e-12)
|
|
|
|
script = ExtResource("1_3q13i")
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
rotation = -1.5708
|
|
|
|
shape = SubResource("CircleShape2D_b5cca")
|
|
|
|
|
2024-04-18 19:45:52 -04:00
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
position = Vector2(-0.0234375, -0.00781251)
|
|
|
|
rotation = 1.5708
|
|
|
|
scale = Vector2(4, 4)
|
2024-05-07 14:29:47 -04:00
|
|
|
sprite_frames = SubResource("SpriteFrames_pacu6")
|
|
|
|
autoplay = "default"
|
2024-04-18 19:45:52 -04:00
|
|
|
offset = Vector2(7.05637, 10.7826)
|
2024-04-16 20:29:45 -04:00
|
|
|
|
|
|
|
[node name="TrajectoryDisplay" type="Line2D" parent="."]
|
|
|
|
z_index = -1
|
|
|
|
texture_repeat = 2
|
|
|
|
position = Vector2(-2, 0)
|
2024-04-20 09:45:17 -04:00
|
|
|
points = PackedVector2Array(0, 0, 100, 0)
|
2024-04-16 20:29:45 -04:00
|
|
|
width = 50.0
|
|
|
|
default_color = Color(0.909804, 0.717647, 0.337255, 0.529412)
|
|
|
|
texture = ExtResource("4_h1jno")
|
|
|
|
texture_mode = 1
|
|
|
|
script = ExtResource("5_0jcwc")
|
|
|
|
|
2025-02-05 14:05:36 -05:00
|
|
|
[node name="ShapeCast2D" type="ShapeCast2D" parent="TrajectoryDisplay"]
|
|
|
|
shape = SubResource("CircleShape2D_13gk7")
|
|
|
|
target_position = Vector2(500, 2.08165e-12)
|
2024-04-16 20:29:45 -04:00
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="hit"]
|