123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- [gd_scene load_steps=10 format=2]
- [ext_resource path="res://bomb.gd" type="Script" id=1]
- [ext_resource path="res://brickfloor.png" type="Texture" id=2]
- [ext_resource path="res://explosion.png" type="Texture" id=3]
- [sub_resource type="RectangleShape2D" id=1]
- custom_solver_bias = 0.0
- extents = Vector2( 8, 96 )
- [sub_resource type="RectangleShape2D" id=2]
- custom_solver_bias = 0.0
- extents = Vector2( 96, 8 )
- [sub_resource type="Curve" id=3]
- min_value = 0.0
- max_value = 2.0
- bake_resolution = 100
- _data = [ Vector2( 0.00150494, 0.398437 ), 0.0, 0.0, 0, 0, Vector2( 0.0152287, 1.42969 ), 0.0, 0.0, 0, 0, Vector2( 0.478607, 1.30078 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.291016 ), 0.0, 0.0, 0, 0 ]
- [sub_resource type="CurveTexture" id=4]
- flags = 4
- width = 2048
- curve = SubResource( 3 )
- [sub_resource type="ParticlesMaterial" id=5]
- render_priority = 0
- trail_divisor = 1
- emission_shape = 2
- emission_box_extents = Vector3( 80, 1, 1 )
- flag_align_y = false
- flag_rotate_y = false
- flag_disable_z = true
- spread = 45.0
- flatness = 0.0
- gravity = Vector3( 0, 0, 0 )
- initial_velocity = 1.0
- initial_velocity_random = 0.0
- angular_velocity = 187.85
- angular_velocity_random = 1.0
- orbit_velocity = 0.0
- orbit_velocity_random = 0.0
- linear_accel = 0.0
- linear_accel_random = 0.0
- radial_accel = 0.0
- radial_accel_random = 0.0
- tangential_accel = 0.0
- tangential_accel_random = 0.0
- damping = 0.0
- damping_random = 0.0
- angle = 0.0
- angle_random = 0.0
- scale = 1.0
- scale_random = 0.0
- scale_curve = SubResource( 4 )
- color = Color( 1, 1, 1, 1 )
- hue_variation = 0.0
- hue_variation_random = 0.0
- anim_speed = 0.0
- anim_speed_random = 0.0
- anim_offset = 0.0
- anim_offset_random = 0.0
- anim_loop = false
- _sections_unfolded = [ "Angular Velocity", "Emission Shape", "Gravity", "Scale" ]
- [sub_resource type="Animation" id=6]
- length = 4.0
- loop = false
- step = 0.1
- tracks/0/type = "value"
- tracks/0/path = NodePath("sprite:self_modulate")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/keys = {
- "times": PoolRealArray( 0, 0.4, 0.6, 0.8, 1.1, 1.3, 1.5, 1.8, 1.9, 2, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 3 ),
- "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
- "update": 0,
- "values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 8, 8, 8, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
- }
- tracks/1/type = "method"
- tracks/1/path = NodePath(".")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/keys = {
- "times": PoolRealArray( 2.8, 3.4 ),
- "transitions": PoolRealArray( 1, 1 ),
- "values": [ {
- "args": [ ],
- "method": "explode"
- }, {
- "args": [ ],
- "method": "done"
- } ]
- }
- tracks/2/type = "value"
- tracks/2/path = NodePath("explosion1:emitting")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/keys = {
- "times": PoolRealArray( 0, 2.8 ),
- "transitions": PoolRealArray( 1, 1 ),
- "update": 1,
- "values": [ false, true ]
- }
- tracks/3/type = "value"
- tracks/3/path = NodePath("explosion2:emitting")
- tracks/3/interp = 1
- tracks/3/loop_wrap = true
- tracks/3/imported = false
- tracks/3/enabled = true
- tracks/3/keys = {
- "times": PoolRealArray( 0, 2.8 ),
- "transitions": PoolRealArray( 1, 1 ),
- "update": 1,
- "values": [ false, true ]
- }
- [node name="bomb" type="Area2D"]
- input_pickable = true
- gravity_vec = Vector2( 0, 1 )
- gravity = 98.0
- linear_damp = 0.1
- angular_damp = 1.0
- audio_bus_override = false
- audio_bus_name = "Master"
- script = ExtResource( 1 )
- [node name="sprite" type="Sprite" parent="." index="0"]
- position = Vector2( -2.92606, -2.92606 )
- texture = ExtResource( 2 )
- region_enabled = true
- region_rect = Rect2( 144, 0, 48, 48 )
- _sections_unfolded = [ "Region" ]
- [node name="shape1" type="CollisionShape2D" parent="." index="1"]
- shape = SubResource( 1 )
- [node name="shape2" type="CollisionShape2D" parent="." index="2"]
- shape = SubResource( 2 )
- [node name="explosion1" type="Particles2D" parent="." index="3"]
- emitting = false
- amount = 8
- lifetime = 0.5
- one_shot = true
- preprocess = 0.0
- speed_scale = 1.0
- explosiveness = 0.95
- randomness = 0.0
- fixed_fps = 0
- fract_delta = true
- visibility_rect = Rect2( -100, -100, 200, 200 )
- local_coords = true
- draw_order = 0
- process_material = SubResource( 5 )
- texture = ExtResource( 3 )
- normal_map = null
- h_frames = 1
- v_frames = 1
- _sections_unfolded = [ "Process Material", "Textures", "Time" ]
- [node name="explosion2" type="Particles2D" parent="." index="4"]
- rotation = 1.57162
- emitting = false
- amount = 8
- lifetime = 1.0
- one_shot = true
- preprocess = 0.0
- speed_scale = 1.0
- explosiveness = 0.95
- randomness = 0.0
- fixed_fps = 0
- fract_delta = true
- visibility_rect = Rect2( -100, -100, 200, 200 )
- local_coords = true
- draw_order = 0
- process_material = SubResource( 5 )
- texture = ExtResource( 3 )
- normal_map = null
- h_frames = 1
- v_frames = 1
- _sections_unfolded = [ "Process Material", "Textures", "Time" ]
- [node name="anim" type="AnimationPlayer" parent="." index="5"]
- root_node = NodePath("..")
- autoplay = "anim"
- playback_process_mode = 1
- playback_default_blend_time = 0.0
- playback_speed = 1.0
- anims/anim = SubResource( 6 )
- blend_times = [ ]
- autoplay = "anim"
- [connection signal="body_entered" from="." to="." method="_on_bomb_body_enter"]
- [connection signal="body_exited" from="." to="." method="_on_bomb_body_exit"]
|