[gd_scene load_steps=7 format=1] [ext_resource path="res://EnemyGrunt.gd" type="Script" id=1] [ext_resource path="res://raw/enemy_grunt.png" type="Texture" id=2] [ext_resource path="res://raw/exhaust.png" type="Texture" id=3] [ext_resource path="res://Gun.gd" type="Script" id=4] [sub_resource type="RectangleShape2D" id=1] custom_solver_bias = 0.0 extents = Vector2( 8.55915, 8.40247 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 points = Vector2Array( 0, -10, 8.66025, 5, -8.66025, 5 ) [node name="EnemyGrunt" type="KinematicBody2D"] transform/pos = Vector2( 0.12851, 0 ) transform/scale = Vector2( 2, 2 ) input/pickable = false shapes/0/shape = SubResource( 1 ) shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false collision/layers = 2 collision/mask = 2 collision/margin = 0.08 script/script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) trigger = false _update_shape_index = 0 [node name="Ship" type="Sprite" parent="."] texture = ExtResource( 2 ) [node name="Particles2D" type="Particles2D" parent="Ship"] transform/pos = Vector2( 0, -5.43192 ) transform/rot = 180.0 config/amount = 32 config/lifetime = 1.0 config/process_mode = 1 config/local_space = false config/texture = ExtResource( 3 ) params/direction = 0.0 params/spread = 50.0 params/linear_velocity = 32.0 params/spin_velocity = 0.0 params/orbit_velocity = 0.0 params/gravity_direction = 0.0 params/gravity_strength = 9.8 params/radial_accel = 0.0 params/tangential_accel = 0.0 params/damping = 0.0 params/initial_angle = 0.0 params/initial_size = 1.5 params/final_size = 0.0 params/hue_variation = 0.0 params/anim_speed_scale = 1.0 params/anim_initial_pos = 0.0 [node name="Gun" type="Node2D" parent="Ship"] transform/pos = Vector2( 0, 12.2383 ) script/script = ExtResource( 4 ) [node name="Area2D" type="Area2D" parent="."] input/pickable = true shapes/0/shape = SubResource( 2 ) shapes/0/transform = Matrix32( 4, 0, 0, 16, 0.173824, 148.748 ) shapes/0/trigger = true gravity_vec = Vector2( 0, 1 ) gravity = 98.0 linear_damp = 0.1 angular_damp = 1.0 [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] transform/pos = Vector2( 0.173824, 148.748 ) transform/scale = Vector2( 4, 16 ) shape = SubResource( 2 ) trigger = true _update_shape_index = 0