[gd_scene load_steps=12 format=1] [ext_resource path="res://scripts/asteroid.gd" type="Script" id=1] [ext_resource path="res://sprites/asteroid.png" type="Texture" id=2] [ext_resource path="res://colors/ramp_asteroid.tres" type="ColorRamp" id=3] [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 points = Vector2Array( 6.56525, 2.73226, 5.8742, 6.37177, 2.05041, 6.18749, 5.73599, 0.659113 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 points = Vector2Array( 5.73599, 0.659113, -5.27712, 1.15746, -7.82946, -3.23257, -7.62617, -6.45307, -4.46126, -8.03552, -0.326464, -6.8104, 6.42704, -3.80966 ) [sub_resource type="ConvexPolygonShape2D" id=3] custom_solver_bias = 0.0 points = Vector2Array( 5.73599, 0.659113, 2.05041, 6.18749, -2.55657, 6.46391, -4.30723, 5.49644, -5.27712, 1.15746 ) [sub_resource type="ConvexPolygonShape2D" id=4] custom_solver_bias = 0.0 points = Vector2Array( 3.84713, -7.17275, 6.42704, -3.80966, -0.326464, -6.8104, 1.00076, -7.62715 ) [sub_resource type="ConvexPolygonShape2D" id=5] custom_solver_bias = 0.0 points = Vector2Array( 7.80711, -1.2916, 7.64198, 8.18441, 2.46873, 7.91971, -6.74257, 4.46547, -7.99866, -0.0355129, -4.88121, -8.72659, -1.57482, -7.87638, 7.3862, -4.60423 ) [sub_resource type="ConvexPolygonShape2D" id=6] custom_solver_bias = 0.0 points = Vector2Array( -9.60462, -4.09765, -9.41569, -7.97084, -4.88121, -8.72659, -7.99866, -0.0355129 ) [sub_resource type="ConvexPolygonShape2D" id=7] custom_solver_bias = 0.0 points = Vector2Array( 2.46873, 7.91971, -3.8117, 8.44308, -6.74257, 4.46547 ) [sub_resource type="ConvexPolygonShape2D" id=8] custom_solver_bias = 0.0 points = Vector2Array( 4.65796, -8.01454, 7.3862, -4.60423, -1.57482, -7.87638, 2.01497, -9.2934 ) [node name="Asteroid" type="KinematicBody2D"] input/pickable = false shapes/0/shape = SubResource( 1 ) shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false shapes/1/shape = SubResource( 2 ) shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/1/trigger = false shapes/2/shape = SubResource( 3 ) shapes/2/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/2/trigger = false shapes/3/shape = SubResource( 4 ) shapes/3/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/3/trigger = false collision/layers = 1 collision/mask = 1024 collision/margin = 0.08 script/script = ExtResource( 1 ) speed_min = 5 speed_max = 20 [node name="Sprite" type="Sprite" parent="."] transform/scale = Vector2( 0.25, 0.25 ) texture = ExtResource( 2 ) [node name="FireParticlesBack" type="Particles2D" parent="."] transform/pos = Vector2( -0.649553, -0.311569 ) transform/rot = -180.0 z/z = -1 config/amount = 32 config/lifetime = 1.0 config/process_mode = 1 config/half_extents = Vector2( 5, 2 ) params/direction = 0.0 params/spread = 0.0 params/linear_velocity = 20.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.2 params/hue_variation = 0.0 params/anim_speed_scale = 1.0 params/anim_initial_pos = 0.0 randomness/linear_velocity = 1.0 color/color_ramp = ExtResource( 3 ) [node name="FireParticlesFront" type="Particles2D" parent="."] transform/pos = Vector2( 0.892595, 5.7285 ) transform/rot = -180.0 z/z = 1 config/amount = 16 config/lifetime = 0.4 config/process_mode = 1 config/half_extents = Vector2( 5, 2 ) params/direction = 0.0 params/spread = 20.0 params/linear_velocity = 20.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 randomness/linear_velocity = 1.0 color/color_ramp = ExtResource( 3 ) [node name="CollisionArea" type="Area2D" parent="."] transform/pos = Vector2( 0.472342, -0.566811 ) input/pickable = true shapes/0/shape = SubResource( 5 ) shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = true shapes/1/shape = SubResource( 6 ) shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/1/trigger = true shapes/2/shape = SubResource( 7 ) shapes/2/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/2/trigger = true shapes/3/shape = SubResource( 8 ) shapes/3/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) shapes/3/trigger = true gravity_vec = Vector2( 0, 1 ) gravity = 98.0 linear_damp = 0.1 angular_damp = 1.0 collision/mask = 1024 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CollisionArea"] visibility/visible = false build_mode = 0 polygon = Vector2Array( -9.60462, -4.09765, -7.99866, -0.0355129, -6.74257, 4.46547, -3.8117, 8.44308, 2.46873, 7.91971, 7.64198, 8.18441, 7.80711, -1.2916, 7.3862, -4.60423, 4.65796, -8.01454, 2.01497, -9.2934, -1.57482, -7.87638, -4.88121, -8.72659, -9.41569, -7.97084 ) shape_range = Vector2( 0, 3 ) trigger = true