[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( 6.56525, 2.73226, 5.8742, 6.37177, 2.05041, 6.18749, 5.73599, 0.659113 ) [sub_resource type="ConvexPolygonShape2D" id=6] 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=7] 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=8] custom_solver_bias = 0.0 points = Vector2Array( 3.84713, -7.17275, 6.42704, -3.80966, -0.326464, -6.8104, 1.00076, -7.62715 ) [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 = 45 [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 = 64 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 = 32 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="."] 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( -7.82946, -3.23257, -5.27712, 1.15746, -4.30723, 5.49644, -2.55657, 6.46391, 2.05041, 6.18749, 5.8742, 6.37177, 6.56525, 2.73226, 5.73599, 0.659113, 6.42704, -3.80966, 3.84713, -7.17275, 1.00076, -7.62715, -0.326464, -6.8104, -4.46126, -8.03552, -7.62617, -6.45307 ) shape_range = Vector2( 0, 3 ) trigger = true