2025-11-07 03:36:25 +00:00
|
|
|
[gd_scene load_steps=46 format=3 uid="uid://x8y4fkj6fc2e"]
|
2025-10-07 00:57:11 +00:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://cevjj6wpr5f8f" path="res://scripts/grenade.gd" id="1_cvyik"]
|
2025-10-25 01:57:19 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b8g3n1anbx0j" path="res://graphics/effects/orb_red.png" id="2_wxtds"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dnhgsb5qqmrmr" path="res://graphics/effects/explosion.png" id="3_vhiwl"]
|
2025-10-07 00:57:11 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_1xt3t"]
|
2025-10-25 01:57:19 +00:00
|
|
|
radius = 12.0
|
|
|
|
|
|
2025-11-07 03:36:25 +00:00
|
|
|
[sub_resource type="Shader" id="Shader_vhiwl"]
|
|
|
|
|
code = "shader_type canvas_item;
|
|
|
|
|
|
|
|
|
|
uniform sampler2D gradient_texture;
|
|
|
|
|
|
|
|
|
|
void vertex() {
|
|
|
|
|
// Called for every vertex the material is visible on.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
|
vec4 existing_color = texture(TEXTURE, UV);
|
|
|
|
|
float grayscale_value = (existing_color.r + existing_color.g + existing_color.b)/3.0;
|
|
|
|
|
vec4 new_color = texture(gradient_texture, vec2(grayscale_value));
|
|
|
|
|
COLOR.rgb = new_color.rgb;
|
|
|
|
|
COLOR.a = existing_color.a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//void light() {
|
|
|
|
|
// // Called for every pixel for every light affecting the CanvasItem.
|
|
|
|
|
// // Uncomment to replace the default light processing function with this one.
|
|
|
|
|
//}
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Gradient" id="Gradient_76ndk"]
|
|
|
|
|
interpolation_mode = 1
|
|
|
|
|
offsets = PackedFloat32Array(0.146875, 0.265625, 0.384375)
|
|
|
|
|
colors = PackedColorArray(0.19215687, 0.1882353, 0.22745098, 1, 0.9607843, 0.85490197, 0.6509804, 1, 1, 1, 1, 1)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_snp8f"]
|
|
|
|
|
gradient = SubResource("Gradient_76ndk")
|
|
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_t0o0f"]
|
|
|
|
|
shader = SubResource("Shader_vhiwl")
|
|
|
|
|
shader_parameter/gradient_texture = SubResource("GradientTexture2D_snp8f")
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Shader" id="Shader_76ndk"]
|
|
|
|
|
code = "shader_type canvas_item;
|
|
|
|
|
|
|
|
|
|
uniform sampler2D gradient_texture;
|
|
|
|
|
|
|
|
|
|
void vertex() {
|
|
|
|
|
// Called for every vertex the material is visible on.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
|
vec4 existing_color = texture(TEXTURE, UV);
|
|
|
|
|
float grayscale_value = (existing_color.r + existing_color.g + existing_color.b)/3.0;
|
|
|
|
|
vec4 new_color = texture(gradient_texture, vec2(grayscale_value));
|
|
|
|
|
COLOR.rgb = new_color.rgb;
|
|
|
|
|
COLOR.a = existing_color.a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//void light() {
|
|
|
|
|
// // Called for every pixel for every light affecting the CanvasItem.
|
|
|
|
|
// // Uncomment to replace the default light processing function with this one.
|
|
|
|
|
//}
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Gradient" id="Gradient_snp8f"]
|
|
|
|
|
offsets = PackedFloat32Array(0.153125, 0.390625, 0.503125, 0.640625)
|
|
|
|
|
colors = PackedColorArray(0.19215687, 0.1882353, 0.22745098, 1, 0.2627451, 0.27450982, 0.4509804, 1, 0.99215686, 0.99607843, 0.53333336, 1, 1, 1, 1, 1)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_t0o0f"]
|
|
|
|
|
gradient = SubResource("Gradient_snp8f")
|
|
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_adlig"]
|
|
|
|
|
shader = SubResource("Shader_76ndk")
|
|
|
|
|
shader_parameter/gradient_texture = SubResource("GradientTexture2D_t0o0f")
|
|
|
|
|
|
2025-10-25 01:57:19 +00:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6xeml"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(448, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_76ndk"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(0, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_snp8f"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(64, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t0o0f"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(128, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_adlig"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(192, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_3xmyn"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(256, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aw7j6"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(320, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_w6nk6"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(384, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_enph7"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(448, 0, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qj1y5"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(0, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_p88er"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(64, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_g2dys"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(128, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_u1ydx"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(192, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gd6t7"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(256, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bpfxd"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(320, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uk07r"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(384, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cmp73"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(448, 64, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_apdl7"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(0, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_okstn"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(64, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0su16"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(128, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7763c"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(192, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cfpe2"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(256, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_yibsa"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(320, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_voalo"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(384, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_178lq"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(448, 128, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mkj0l"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(0, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r5ebx"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(64, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2vejf"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(128, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vbgia"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(192, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dmkfu"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(256, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gvnof"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(320, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_k432l"]
|
|
|
|
|
atlas = ExtResource("3_vhiwl")
|
|
|
|
|
region = Rect2(384, 192, 64, 64)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_1exwd"]
|
|
|
|
|
animations = [{
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_6xeml")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_76ndk")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_snp8f")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_t0o0f")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_adlig")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_3xmyn")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_aw7j6")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_w6nk6")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_enph7")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_qj1y5")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_p88er")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_g2dys")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_u1ydx")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_gd6t7")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_bpfxd")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_uk07r")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_cmp73")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_apdl7")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_okstn")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_0su16")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_7763c")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_cfpe2")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_yibsa")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_voalo")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_178lq")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_mkj0l")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_r5ebx")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_2vejf")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_vbgia")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_dmkfu")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_gvnof")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_k432l")
|
|
|
|
|
}],
|
|
|
|
|
"loop": false,
|
|
|
|
|
"name": &"explode",
|
|
|
|
|
"speed": 24.0
|
|
|
|
|
}]
|
2025-10-07 00:57:11 +00:00
|
|
|
|
|
|
|
|
[node name="Grenade" type="RigidBody2D"]
|
2025-10-26 17:42:53 +00:00
|
|
|
collision_layer = 8
|
|
|
|
|
collision_mask = 14
|
|
|
|
|
mass = 0.001
|
2025-10-07 00:57:11 +00:00
|
|
|
contact_monitor = true
|
|
|
|
|
max_contacts_reported = 2
|
|
|
|
|
script = ExtResource("1_cvyik")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("CircleShape2D_1xt3t")
|
|
|
|
|
debug_color = Color(0.7488965, 0.6246863, 1.92523e-07, 1)
|
|
|
|
|
|
2025-11-07 03:36:25 +00:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
|
material = SubResource("ShaderMaterial_t0o0f")
|
|
|
|
|
texture = ExtResource("2_wxtds")
|
|
|
|
|
offset = Vector2(0.37, 0.39)
|
|
|
|
|
|
2025-10-25 01:57:19 +00:00
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
2025-11-07 03:36:25 +00:00
|
|
|
material = SubResource("ShaderMaterial_adlig")
|
2025-10-25 01:57:19 +00:00
|
|
|
sprite_frames = SubResource("SpriteFrames_1exwd")
|
|
|
|
|
animation = &"explode"
|
2025-11-07 03:36:25 +00:00
|
|
|
frame = 31
|
|
|
|
|
frame_progress = 1.0
|
2025-10-25 01:57:19 +00:00
|
|
|
|
2025-10-07 00:57:11 +00:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|