|
| 1 | +[gd_scene load_steps=8 format=3 uid="uid://enwoaqi0rnei"] |
| 2 | + |
| 3 | +[ext_resource type="Texture2D" uid="uid://cb1y8d1bbygtk" path="res://assets/brickfloor.png" id="2"] |
| 4 | +[ext_resource type="Texture2D" uid="uid://dkhnmbca25hmy" path="res://assets/explosion.png" id="3"] |
| 5 | + |
| 6 | +[sub_resource type="RectangleShape2D" id="RectangleShape2D_1ih13"] |
| 7 | +size = Vector2(16, 192) |
| 8 | + |
| 9 | +[sub_resource type="RectangleShape2D" id="RectangleShape2D_whso6"] |
| 10 | +size = Vector2(192, 16) |
| 11 | + |
| 12 | +[sub_resource type="Curve" id="Curve_4yges"] |
| 13 | +max_value = 2.0 |
| 14 | +_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] |
| 15 | +point_count = 4 |
| 16 | + |
| 17 | +[sub_resource type="Animation" id="Animation_21j5c"] |
| 18 | +length = 4.0 |
| 19 | +tracks/0/type = "value" |
| 20 | +tracks/0/imported = false |
| 21 | +tracks/0/enabled = true |
| 22 | +tracks/0/path = NodePath("Sprite:self_modulate") |
| 23 | +tracks/0/interp = 1 |
| 24 | +tracks/0/loop_wrap = true |
| 25 | +tracks/0/keys = { |
| 26 | +"times": PackedFloat32Array(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), |
| 27 | +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), |
| 28 | +"update": 0, |
| 29 | +"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)] |
| 30 | +} |
| 31 | +tracks/1/type = "method" |
| 32 | +tracks/1/imported = false |
| 33 | +tracks/1/enabled = true |
| 34 | +tracks/1/path = NodePath(".") |
| 35 | +tracks/1/interp = 1 |
| 36 | +tracks/1/loop_wrap = true |
| 37 | +tracks/1/keys = { |
| 38 | +"times": PackedFloat32Array(2.8, 3.4), |
| 39 | +"transitions": PackedFloat32Array(1, 1), |
| 40 | +"values": [{ |
| 41 | +"args": [], |
| 42 | +"method": &"explode" |
| 43 | +}, { |
| 44 | +"args": [], |
| 45 | +"method": &"done" |
| 46 | +}] |
| 47 | +} |
| 48 | +tracks/2/type = "value" |
| 49 | +tracks/2/imported = false |
| 50 | +tracks/2/enabled = true |
| 51 | +tracks/2/path = NodePath("Explosion1:emitting") |
| 52 | +tracks/2/interp = 1 |
| 53 | +tracks/2/loop_wrap = true |
| 54 | +tracks/2/keys = { |
| 55 | +"times": PackedFloat32Array(0, 2.8), |
| 56 | +"transitions": PackedFloat32Array(1, 1), |
| 57 | +"update": 1, |
| 58 | +"values": [false, true] |
| 59 | +} |
| 60 | +tracks/3/type = "value" |
| 61 | +tracks/3/imported = false |
| 62 | +tracks/3/enabled = true |
| 63 | +tracks/3/path = NodePath("Explosion2:emitting") |
| 64 | +tracks/3/interp = 1 |
| 65 | +tracks/3/loop_wrap = true |
| 66 | +tracks/3/keys = { |
| 67 | +"times": PackedFloat32Array(0, 2.8), |
| 68 | +"transitions": PackedFloat32Array(1, 1), |
| 69 | +"update": 1, |
| 70 | +"values": [false, true] |
| 71 | +} |
| 72 | + |
| 73 | +[sub_resource type="AnimationLibrary" id="AnimationLibrary_h2w7m"] |
| 74 | +_data = { |
| 75 | +"anim": SubResource("Animation_21j5c") |
| 76 | +} |
| 77 | + |
| 78 | +[node name="Bomb" type="Bomb"] |
| 79 | +collision_layer = 0 |
| 80 | +collision_mask = 2 |
| 81 | +monitorable = false |
| 82 | + |
| 83 | +[node name="Sprite" type="Sprite2D" parent="."] |
| 84 | +position = Vector2(-2.92606, -2.92606) |
| 85 | +texture = ExtResource("2") |
| 86 | +region_enabled = true |
| 87 | +region_rect = Rect2(144, 0, 48, 48) |
| 88 | + |
| 89 | +[node name="Shape1" type="CollisionShape2D" parent="."] |
| 90 | +shape = SubResource("RectangleShape2D_1ih13") |
| 91 | + |
| 92 | +[node name="Shape2" type="CollisionShape2D" parent="."] |
| 93 | +shape = SubResource("RectangleShape2D_whso6") |
| 94 | + |
| 95 | +[node name="Explosion1" type="CPUParticles2D" parent="."] |
| 96 | +emitting = false |
| 97 | +lifetime = 0.5 |
| 98 | +one_shot = true |
| 99 | +explosiveness = 0.95 |
| 100 | +texture = ExtResource("3") |
| 101 | +emission_shape = 3 |
| 102 | +emission_rect_extents = Vector2(80, 1) |
| 103 | +gravity = Vector2(0, 0) |
| 104 | +initial_velocity_min = 1.0 |
| 105 | +initial_velocity_max = 1.0 |
| 106 | +angular_velocity_min = 187.35 |
| 107 | +angular_velocity_max = 188.35 |
| 108 | +scale_amount_curve = SubResource("Curve_4yges") |
| 109 | + |
| 110 | +[node name="Explosion2" type="CPUParticles2D" parent="."] |
| 111 | +rotation = 1.57162 |
| 112 | +emitting = false |
| 113 | +lifetime = 0.5 |
| 114 | +one_shot = true |
| 115 | +explosiveness = 0.95 |
| 116 | +texture = ExtResource("3") |
| 117 | +emission_shape = 3 |
| 118 | +emission_rect_extents = Vector2(80, 1) |
| 119 | +gravity = Vector2(0, 0) |
| 120 | +initial_velocity_min = 1.0 |
| 121 | +initial_velocity_max = 1.0 |
| 122 | +angular_velocity_min = 187.35 |
| 123 | +angular_velocity_max = 188.35 |
| 124 | +scale_amount_curve = SubResource("Curve_4yges") |
| 125 | + |
| 126 | +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] |
| 127 | +libraries = { |
| 128 | +"": SubResource("AnimationLibrary_h2w7m") |
| 129 | +} |
| 130 | +autoplay = "anim" |
0 commit comments