[gd_scene load_steps=9 format=2] [ext_resource path="res://assets/contraption/bumper.png" type="Texture" id=1] [ext_resource path="res://assets/meta/new_dynamicfont.tres" type="DynamicFont" id=2] [ext_resource path="res://src/Actors/Enemies/Machines/Turret.gd" type="Script" id=3] [ext_resource path="res://src/Actors/Enemies/Machines/TurretStateMachine.gd" type="Script" id=4] [ext_resource path="res://assets/enemy/laserpoint.png" type="Texture" id=5] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 108.869, 37.8566 ) [sub_resource type="Animation" id=3] resource_name = "Turret Returning" length = 3.3 tracks/0/type = "value" tracks/0/path = NodePath(".:rotation_degrees") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 3.3 ), "transitions": PoolRealArray( 1.1 ), "update": 3, "values": [ 0.0 ] } [sub_resource type="Animation" id=2] resource_name = "Turret Rotation" length = 12.2 loop = true tracks/0/type = "value" tracks/0/path = NodePath(".:rotation_degrees") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 6.1 ), "transitions": PoolRealArray( 0.9, 1.1 ), "update": 0, "values": [ 0.0, 90.0 ] } [node name="Turret" type="KinematicBody2D" groups=["enemy"]] collision_layer = 2 collision_mask = 3 script = ExtResource( 3 ) [node name="Turret" type="Sprite" parent="."] scale = Vector2( 0.612294, 1 ) texture = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0, -0.103346 ) scale = Vector2( 0.310271, 1.02855 ) shape = SubResource( 1 ) [node name="TurretStateMachine" type="Node" parent="."] script = ExtResource( 4 ) [node name="StateLabel" type="Label" parent="."] margin_left = -35.7329 margin_top = -52.7099 margin_right = 37.2671 margin_bottom = -38.7099 custom_colors/font_color = Color( 0, 0, 0, 1 ) custom_fonts/font = ExtResource( 2 ) text = "Ihre Werbung" align = 1 valign = 1 [node name="LockOnTimer" type="Timer" parent="."] wait_time = 0.633 one_shot = true [node name="Muzzle" type="Position2D" parent="."] position = Vector2( 0, 39 ) [node name="SightLostTimer" type="Timer" parent="."] wait_time = 3.33 one_shot = true [node name="AnimationPlayer" type="AnimationPlayer" parent="."] pause_mode = 1 playback_process_mode = 0 "anims/Turret Returning" = SubResource( 3 ) "anims/Turret Rotation" = SubResource( 2 ) [node name="FiringRateTimer" type="Timer" parent="."] wait_time = 0.1 [node name="Aimline" type="RayCast2D" parent="."] enabled = true cast_to = Vector2( 0, 100000 ) collision_mask = 123 [node name="SightCone" type="Node2D" parent="."] [node name="Sightline1" type="RayCast2D" parent="SightCone"] rotation = 0.0698132 enabled = true cast_to = Vector2( 0, 100000 ) collision_mask = 123 [node name="Sightline2" type="RayCast2D" parent="SightCone"] rotation = -0.0698132 enabled = true cast_to = Vector2( 0, 100000 ) collision_mask = 121 [node name="Laserpoint" type="Sprite" parent="."] z_index = -1 texture = ExtResource( 5 ) [connection signal="timeout" from="FiringRateTimer" to="." method="_on_FiringRateTimer_timeout"]