[gd_scene format=3 uid="uid://b06dlp8n6upld"]

[ext_resource type="Script" uid="uid://bc25u4w35ibeu" path="res://Scripts/gameController.gd" id="1_qxrlw"]
[ext_resource type="PackedScene" uid="uid://bsroh4vsjwblh" path="res://Scenes/crate.tscn" id="2_3dryh"]
[ext_resource type="Script" uid="uid://b2otvelhtq7en" path="res://Scripts/SceneManager.gd" id="2_wowpa"]
[ext_resource type="PackedScene" uid="uid://dmk1mp1hqm62b" path="res://Scenes/player.tscn" id="3_wowpa"]
[ext_resource type="Script" uid="uid://4hekg0d8n04f" path="res://Scripts/trigger.gd" id="3_wrm1d"]
[ext_resource type="PackedScene" uid="uid://ceyxo0mrrrd6d" path="res://Scenes/grenade.tscn" id="6_h4fw4"]
[ext_resource type="Script" uid="uid://nhqfqpjecvt8" path="res://Scripts/fluid_container.gd" id="6_v158k"]
[ext_resource type="Texture2D" uid="uid://b12wjykuncw11" path="res://Matirials/FluidPartical.tres" id="7_h4fw4"]
[ext_resource type="PackedScene" uid="uid://d5n7kwhkl4le" path="res://Scenes/dropplet.tscn" id="8_ldgsr"]
[ext_resource type="Shader" uid="uid://bvte4ugmua4n3" path="res://Scripts/Fluid.gdshader" id="10_ldgsr"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_2poj3"]
size = Vector2(178, 20)

[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_2poj3"]

[sub_resource type="CircleShape2D" id="CircleShape2D_3dryh"]
radius = 111.364265

[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_o5yvi"]
blend_mode = 1
light_mode = 1

[sub_resource type="QuadMesh" id="QuadMesh_v158k"]
size = Vector2(5, 5)

[sub_resource type="MultiMesh" id="MultiMesh_v158k"]
instance_count = 4
mesh = SubResource("QuadMesh_v158k")
buffer = PackedFloat32Array(0, 8e-45, 1e-45, 0, 1e-44, 8e-45, 1e-45, 7e-45, 3e-45, 1e-45, 8e-45, 7e-45, 3e-45, 6e-45, 4e-45, 3e-45, 7e-45, 6e-45, 0, 0.6, 0.7, 1, -3.3646448, 14.557036, 0, 0.6, 0.7, 0.42, 0, 0, 0, 0)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_o5yvi"]
shader = ExtResource("10_ldgsr")
shader_parameter/threshold = 0.50000002375
shader_parameter/smoothness = 0.02000000095
shader_parameter/fluid_color = Color(0, 0.53333336, 0.61960787, 1)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ldgsr"]
size = Vector2(33, 103)

[node name="Game" type="Node2D" unique_id=1698001017]
script = ExtResource("1_qxrlw")

[node name="SceneManager" type="Node2D" parent="." unique_id=782186168]
unique_name_in_owner = true
script = ExtResource("2_wowpa")

[node name="platform" type="StaticBody2D" parent="." unique_id=601020872]
position = Vector2(333, 419)
constant_linear_velocity = Vector2(1000, 0)
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="platform" unique_id=1836025932]
position = Vector2(3, 0)
shape = SubResource("RectangleShape2D_2poj3")

[node name="WorldFloor" type="StaticBody2D" parent="." unique_id=1600506296]
position = Vector2(448, 452)
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="WorldFloor" unique_id=1926005878]
shape = SubResource("WorldBoundaryShape2D_2poj3")

[node name="Player" parent="." unique_id=56223176 instance=ExtResource("3_wowpa")]
position = Vector2(150, 303)

[node name="destroyer" type="Area2D" parent="." unique_id=1184709580]
position = Vector2(873, 340)
script = ExtResource("3_wrm1d")
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="destroyer" unique_id=1623965811]
shape = SubResource("CircleShape2D_3dryh")
debug_color = Color(0.7716697, 0.28327075, 0.8513461, 0.41960785)

[node name="Ramp" type="StaticBody2D" parent="." unique_id=938313164]
position = Vector2(392, 392)
constant_linear_velocity = Vector2(10000, -5000)

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ramp" unique_id=435374624]
polygon = PackedVector2Array(-67, 16, 32, 16, 32, -31)

[node name="Crates" type="Node2D" parent="." unique_id=982841392]

[node name="Crate" parent="Crates" unique_id=1164994368 instance=ExtResource("2_3dryh")]
position = Vector2(509, 306)

[node name="Crate2" parent="Crates" unique_id=48210404 instance=ExtResource("2_3dryh")]
position = Vector2(576, 300)

[node name="Crate3" parent="Crates" unique_id=1549223941 instance=ExtResource("2_3dryh")]
position = Vector2(560, 342)

[node name="Crate4" parent="Crates" unique_id=747898837 instance=ExtResource("2_3dryh")]
position = Vector2(511, 365)

[node name="Crate5" parent="Crates" unique_id=1833569865 instance=ExtResource("2_3dryh")]
position = Vector2(469, 242)

[node name="Grenade" parent="." unique_id=1290284523 instance=ExtResource("6_h4fw4")]
position = Vector2(575.5, 321.5)
scale = Vector2(6.755, 4.215)

[node name="FluidContainer" type="Node2D" parent="." unique_id=1120087352]
script = ExtResource("6_v158k")

[node name="MultiMeshInstance2D" type="MultiMeshInstance2D" parent="FluidContainer" unique_id=391615966]
material = SubResource("CanvasItemMaterial_o5yvi")
multimesh = SubResource("MultiMesh_v158k")
texture = ExtResource("7_h4fw4")

[node name="Dropplet" parent="FluidContainer" unique_id=1699297511 instance=ExtResource("8_ldgsr")]
position = Vector2(93, 301)

[node name="Dropplet2" parent="FluidContainer" unique_id=451606999 instance=ExtResource("8_ldgsr")]
position = Vector2(93, 301)

[node name="Dropplet3" parent="FluidContainer" unique_id=1184492161 instance=ExtResource("8_ldgsr")]
position = Vector2(93, 301)

[node name="Dropplet4" parent="FluidContainer" unique_id=1222152104 instance=ExtResource("8_ldgsr")]
position = Vector2(93, 301)

[node name="BackBufferCopy" type="BackBufferCopy" parent="." unique_id=263444442]
position = Vector2(575.5, 321.5)
scale = Vector2(6.755, 4.215)
copy_mode = 2

[node name="ColorRect" type="ColorRect" parent="BackBufferCopy" unique_id=476141794]
material = SubResource("ShaderMaterial_o5yvi")
offset_left = -84.75204
offset_top = -77.2242
offset_right = 83.86381
offset_bottom = 76.27521

[node name="Box" type="Node2D" parent="." unique_id=1091011481]

[node name="StaticBody2D" type="StaticBody2D" parent="Box" unique_id=1170266336]
position = Vector2(154, 333)
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Box/StaticBody2D" unique_id=801438640]
position = Vector2(-2.5, 41.5)
shape = SubResource("RectangleShape2D_ldgsr")

[node name="StaticBody2D4" type="StaticBody2D" parent="Box" unique_id=1387898222]
position = Vector2(30.999992, 286)
rotation = -0.62133723
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Box/StaticBody2D4" unique_id=991907868]
position = Vector2(-2.5, 41.5)
shape = SubResource("RectangleShape2D_ldgsr")

[node name="StaticBody2D2" type="StaticBody2D" parent="Box" unique_id=877846752]
position = Vector2(53, 330)
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Box/StaticBody2D2" unique_id=1150133989]
position = Vector2(-2.5, 41.5)
shape = SubResource("RectangleShape2D_ldgsr")

[node name="StaticBody2D3" type="StaticBody2D" parent="Box" unique_id=2125119042]
position = Vector2(144, 421)
rotation = 1.5707964
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Box/StaticBody2D3" unique_id=1057588662]
position = Vector2(6.5, 41.5)
shape = SubResource("RectangleShape2D_ldgsr")

[connection signal="body_entered" from="destroyer" to="destroyer" method="_on_body_entered"]
[connection signal="triggerActiveSignal" from="destroyer" to="." method="_on_triggerSignal"]
