diff --git a/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.md5 b/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.md5 new file mode 100644 index 0000000..8e4ac18 --- /dev/null +++ b/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.md5 @@ -0,0 +1,3 @@ +source_md5="e28647d0ea756aae55711292a0dbbbbd" +dest_md5="3bf5c0d1c8c22688778d3f494a13b11a" + diff --git a/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.oggstr b/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.oggstr new file mode 100644 index 0000000..a33f43c Binary files /dev/null and b/.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.oggstr differ diff --git a/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.md5 b/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.md5 new file mode 100644 index 0000000..63e5649 --- /dev/null +++ b/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.md5 @@ -0,0 +1,3 @@ +source_md5="ab2f556f65bec76af9a1a0db1cd7c431" +dest_md5="0bbbdb746da9fc61dbd15d070b3bf69f" + diff --git a/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.stex b/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.stex new file mode 100644 index 0000000..d7262e2 Binary files /dev/null and b/.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.stex differ diff --git a/Assets/Sounds/Chicken Sound.mp3 b/Assets/Sounds/Chicken Sound.mp3 new file mode 100644 index 0000000..a4dfc36 Binary files /dev/null and b/Assets/Sounds/Chicken Sound.mp3 differ diff --git a/Assets/Sounds/Chicken Sound.ogg b/Assets/Sounds/Chicken Sound.ogg new file mode 100644 index 0000000..a6cfb9b Binary files /dev/null and b/Assets/Sounds/Chicken Sound.ogg differ diff --git a/Assets/Sounds/Chicken Sound.ogg.import b/Assets/Sounds/Chicken Sound.ogg.import new file mode 100644 index 0000000..2ff899a --- /dev/null +++ b/Assets/Sounds/Chicken Sound.ogg.import @@ -0,0 +1,15 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.oggstr" + +[deps] + +source_file="res://Assets/Sounds/Chicken Sound.ogg" +dest_files=[ "res://.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.oggstr" ] + +[params] + +loop=true +loop_offset=0 diff --git a/Assets/Timer.png b/Assets/Timer.png new file mode 100644 index 0000000..f8252f8 Binary files /dev/null and b/Assets/Timer.png differ diff --git a/Assets/Timer.png.import b/Assets/Timer.png.import new file mode 100644 index 0000000..236a890 --- /dev/null +++ b/Assets/Timer.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Assets/Timer.png" +dest_files=[ "res://.import/Timer.png-93c6a7a43d328ffa2f2865c14898c881.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/GameOver.gd b/GameOver.gd index 780c648..76a18ed 100644 --- a/GameOver.gd +++ b/GameOver.gd @@ -5,7 +5,9 @@ func _ready(): func _on_Play_pressed(): get_tree().paused = false - get_tree().change_scene("Level 1.tscn") + var lvl = GlobalVar.currentLevel + var repeat = "Level %d.tscn" % lvl + get_tree().change_scene(repeat) func _on_Exit_pressed(): get_tree().paused = false diff --git a/GlobalVar.gd b/GlobalVar.gd index 6f34c07..7941695 100644 --- a/GlobalVar.gd +++ b/GlobalVar.gd @@ -9,6 +9,8 @@ var level4 = false var level5 = false var level6 = false +var currentLevel + var makanan = false var minuman = false var vaksin = false diff --git a/Level 1.gd b/Level 1.gd index 6fbaf17..1c7629a 100644 --- a/Level 1.gd +++ b/Level 1.gd @@ -6,7 +6,8 @@ func _ready(): GlobalVar.makan = 1 GlobalVar.minum = 1 GlobalVar.vaks = 1 - + GlobalVar.targetLevel = 1 + GlobalVar.currentLevel = 1 $Win.hide() $Tutorial.show() $GameOver.hide() @@ -24,6 +25,13 @@ func _process(delta): GlobalVar.time -= delta if GlobalVar.time <= 1: get_tree().paused = true + GlobalVar.currentLevel = 1 + GlobalVar.targetLevel += 1 + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + GlobalVar.level2 = true $Win.show() GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati diff --git a/Level 1.tscn b/Level 1.tscn index 0625e76..140cbcf 100644 --- a/Level 1.tscn +++ b/Level 1.tscn @@ -1,17 +1,17 @@ -[gd_scene load_steps=248 format=2] +[gd_scene load_steps=249 format=2] [ext_resource path="res://Level 1.gd" type="Script" id=1] [ext_resource path="res://Assets/Background_hujan.png" type="Texture" id=2] [ext_resource path="res://Assets/Background_vf.png" type="Texture" id=3] [ext_resource path="res://Assets/Kayu AS.png" type="Texture" id=4] [ext_resource path="res://ayam1.gd" type="Script" id=5] -[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=6] -[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=7] -[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=8] -[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=9] -[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=10] -[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=11] -[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=12] +[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=6] +[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=7] +[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=8] +[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=9] +[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=10] +[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=11] +[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=12] [ext_resource path="res://Assets/Ayam Sakit.png" type="Texture" id=13] [ext_resource path="res://Assets/belakang.png" type="Texture" id=14] [ext_resource path="res://Assets/atas.png" type="Texture" id=15] @@ -233,6 +233,7 @@ [ext_resource path="res://HUD.tscn" type="PackedScene" id=231] [ext_resource path="res://GameOver.tscn" type="PackedScene" id=232] [ext_resource path="res://Win.tscn" type="PackedScene" id=233] +[ext_resource path="res://Assets/Sounds/Chicken Sound.ogg" type="AudioStream" id=234] [sub_resource type="SpriteFrames" id=1] animations = [ { @@ -277,22 +278,22 @@ bg_color = Color( 0.6, 0.6, 0.6, 0 ) animations = [ { "frames": [ ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 7 ) ], "loop": true, -"name": "Senang", +"name": "Marah", "speed": 3.0 }, { -"frames": [ ExtResource( 8 ) ], +"frames": [ ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 9 ) ], "loop": true, -"name": "Mati", -"speed": 1.0 +"name": "Normal", +"speed": 3.0 }, { -"frames": [ ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 9 ), ExtResource( 10 ) ], +"frames": [ ExtResource( 10 ) ], "loop": true, -"name": "Marah", -"speed": 3.0 +"name": "Mati", +"speed": 1.0 }, { "frames": [ ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 12 ) ], "loop": true, -"name": "Normal", +"name": "Senang", "speed": 3.0 }, { "frames": [ ExtResource( 13 ) ], @@ -369,6 +370,7 @@ texture = ExtResource( 3 ) normal_map = SubResource( 2 ) [node name="ScrollContainer" type="ScrollContainer" parent="."] +editor/display_folded = true anchor_right = 1.0 anchor_bottom = 1.0 margin_right = 1280.0 @@ -411,6 +413,7 @@ scale = Vector2( 0.79989, 0.79989 ) texture = ExtResource( 4 ) [node name="Baris 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true position = Vector2( 15, 0 ) __meta__ = { "_edit_group_": true @@ -641,16 +644,20 @@ visible = false [node name="Win" parent="." instance=ExtResource( 233 )] visible = false + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource( 234 ) +autoplay = true [connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_ayam1_pressed"] [connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_HPTimer_timeout"] [connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_SakitTimer_timeout"] [connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam2" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_ayam1_pressed"] [connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_HPTimer_timeout"] [connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_SakitTimer_timeout"] -[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] [connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_Bk1_toggled"] -[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] [connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] [connection signal="pressed" from="Tools/makanan" to="Tools" method="_on_makanan_pressed"] [connection signal="pressed" from="Tools/Air" to="Tools" method="_on_air_pressed"] [connection signal="pressed" from="Tools/vaksin" to="Tools" method="_on_vaksin_pressed"] diff --git a/Level 2.gd b/Level 2.gd index 792d6ad..ed0f35f 100644 --- a/Level 2.gd +++ b/Level 2.gd @@ -6,7 +6,8 @@ func _ready(): GlobalVar.makan = 2 GlobalVar.minum = 2 GlobalVar.vaks = 2 - + GlobalVar.targetLevel = 2 + GlobalVar.currentLevel = 2 $Win.hide() $GameOver.hide() $PauseMenu.hide() @@ -23,6 +24,13 @@ func _process(delta): GlobalVar.time -= delta if GlobalVar.time <= 1: get_tree().paused = true + GlobalVar.currentLevel = 2 + GlobalVar.targetLevel += 1 + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + GlobalVar.level3 = true $Win.show() GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati diff --git a/Level 3.gd b/Level 3.gd new file mode 100644 index 0000000..d334b6e --- /dev/null +++ b/Level 3.gd @@ -0,0 +1,90 @@ +extends Control + +var cuaca + +func _ready(): + GlobalVar.makan = 3 + GlobalVar.minum = 3 + GlobalVar.vaks = 3 + GlobalVar.targetLevel = 3 + GlobalVar.currentLevel = 3 + $Win.hide() + $GameOver.hide() + $PauseMenu.hide() + $ScrollContainer.get_h_scrollbar().hide() + + GlobalVar.hidup = 0 + GlobalVar.mati = 0 + if GlobalVar.targetLevel != 1: + get_tree().paused = false + GlobalVar.time = 60.0 + cuaca = "panas" + +func _process(delta): + GlobalVar.time -= delta + if GlobalVar.time <= 1: + get_tree().paused = true + GlobalVar.currentLevel = 3 + GlobalVar.targetLevel += 1 + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + GlobalVar.level4 = true + $Win.show() + + GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati + if GlobalVar.hidup <= get_tree().get_nodes_in_group("chickens").size()/2: + get_tree().paused = true + print("Game Over") + $GameOver.show() + + if get_tree().paused: + $HUD.hide() + else: + $HUD.show() + + +func randomly(inputan): + return inputan[randi() % inputan.size()] + +func _on_CuacaTimer_timeout(): + randomize() + var x = randomly([0,1]) + if x == 0: + GlobalVar.cuaca = "Panas" + else: + GlobalVar.cuaca = "Hujan" + get_node("/root/Level 3/Background").play(GlobalVar.cuaca) + var t = rand_range(0,100) + get_node("/root/Level 3/CuacaTimer").start(t) + +func _on_SakitTimer_ready(): + pass # Replace with function body. + +func _on_MakananTimer_timeout(): + GlobalVar.makan = 3 + get_node("/root/Level 3/Tools/makanan/makan").play("idle") + pass # Replace with function body. + +func _on_MinumanTimer_timeout(): + GlobalVar.minum = 3 + get_node("/root/Level 3/Tools/Air/air").play("idle") + pass # Replace with function body. + +func _on_VaksinTimer_timeout(): + GlobalVar.vaks = 3 + get_node("/root/Level 3/Tools/vaksin/Vaksin").play("idle") + pass # Replace with function body. + +func _on_PauseButton_pressed(): + $PauseMenu.show() + get_tree().paused = true + +func _on_Continue_pressed(): + $PauseMenu.hide() + get_tree().paused = false + +func _on_Exit_pressed(): + get_tree().paused = false + get_tree().change_scene("MainMenu.tscn") diff --git a/Level 3.tscn b/Level 3.tscn new file mode 100644 index 0000000..a44820a --- /dev/null +++ b/Level 3.tscn @@ -0,0 +1,894 @@ +[gd_scene load_steps=247 format=2] + +[ext_resource path="res://Level 3.gd" type="Script" id=1] +[ext_resource path="res://Assets/Background_hujan.png" type="Texture" id=2] +[ext_resource path="res://Assets/Background_vf.png" type="Texture" id=3] +[ext_resource path="res://Assets/Kayu AS.png" type="Texture" id=4] +[ext_resource path="res://ayam3.gd" type="Script" id=5] +[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=6] +[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=7] +[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=8] +[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=9] +[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=10] +[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=11] +[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=12] +[ext_resource path="res://Assets/Ayam Sakit.png" type="Texture" id=13] +[ext_resource path="res://Assets/belakang.png" type="Texture" id=14] +[ext_resource path="res://Assets/atas.png" type="Texture" id=15] +[ext_resource path="res://Assets/tengah.png" type="Texture" id=16] +[ext_resource path="res://Assets/fan_blue_00.png" type="Texture" id=17] +[ext_resource path="res://Assets/fan_blue_01.png" type="Texture" id=18] +[ext_resource path="res://Assets/fan_blue_02.png" type="Texture" id=19] +[ext_resource path="res://Assets/LAMPP.png" type="Texture" id=20] +[ext_resource path="res://Tools.gd" type="Script" id=21] +[ext_resource path="res://Assets/Cooldown/Makanan.png" type="Texture" id=22] +[ext_resource path="res://Assets/Cooldown/Makanan1.png" type="Texture" id=23] +[ext_resource path="res://Assets/Cooldown/Makanan2.png" type="Texture" id=24] +[ext_resource path="res://Assets/Cooldown/Makanan3.png" type="Texture" id=25] +[ext_resource path="res://Assets/Cooldown/Makanan4.png" type="Texture" id=26] +[ext_resource path="res://Assets/Cooldown/Makanan5.png" type="Texture" id=27] +[ext_resource path="res://Assets/Cooldown/Makanan6.png" type="Texture" id=28] +[ext_resource path="res://Assets/Cooldown/Makanan7.png" type="Texture" id=29] +[ext_resource path="res://Assets/Cooldown/Makanan8.png" type="Texture" id=30] +[ext_resource path="res://Assets/Cooldown/Makanan9.png" type="Texture" id=31] +[ext_resource path="res://Assets/Cooldown/Makanan10.png" type="Texture" id=32] +[ext_resource path="res://Assets/Cooldown/Makanan11.png" type="Texture" id=33] +[ext_resource path="res://Assets/Cooldown/Makanan12.png" type="Texture" id=34] +[ext_resource path="res://Assets/Cooldown/Makanan13.png" type="Texture" id=35] +[ext_resource path="res://Assets/Cooldown/Makanan14.png" type="Texture" id=36] +[ext_resource path="res://Assets/Cooldown/Makanan15.png" type="Texture" id=37] +[ext_resource path="res://Assets/Cooldown/Makanan16.png" type="Texture" id=38] +[ext_resource path="res://Assets/Cooldown/Makanan17.png" type="Texture" id=39] +[ext_resource path="res://Assets/Cooldown/Makanan18.png" type="Texture" id=40] +[ext_resource path="res://Assets/Cooldown/Makanan19.png" type="Texture" id=41] +[ext_resource path="res://Assets/Cooldown/Makanan20.png" type="Texture" id=42] +[ext_resource path="res://Assets/Cooldown/Makanan21.png" type="Texture" id=43] +[ext_resource path="res://Assets/Cooldown/Makanan22.png" type="Texture" id=44] +[ext_resource path="res://Assets/Cooldown/Makanan23.png" type="Texture" id=45] +[ext_resource path="res://Assets/Cooldown/Makanan24.png" type="Texture" id=46] +[ext_resource path="res://Assets/Cooldown/Makanan25.png" type="Texture" id=47] +[ext_resource path="res://Assets/Cooldown/Makanan26.png" type="Texture" id=48] +[ext_resource path="res://Assets/Cooldown/Makanan27.png" type="Texture" id=49] +[ext_resource path="res://Assets/Cooldown/Makanan28.png" type="Texture" id=50] +[ext_resource path="res://Assets/Cooldown/Makanan29.png" type="Texture" id=51] +[ext_resource path="res://Assets/Cooldown/Makanan30.png" type="Texture" id=52] +[ext_resource path="res://Assets/Cooldown/Makanan31.png" type="Texture" id=53] +[ext_resource path="res://Assets/Cooldown/Makanan32.png" type="Texture" id=54] +[ext_resource path="res://Assets/Cooldown/Makanan33.png" type="Texture" id=55] +[ext_resource path="res://Assets/Cooldown/Makanan34.png" type="Texture" id=56] +[ext_resource path="res://Assets/Cooldown/Makanan35.png" type="Texture" id=57] +[ext_resource path="res://Assets/Cooldown/Makanan36.png" type="Texture" id=58] +[ext_resource path="res://Assets/Cooldown/Makanan37.png" type="Texture" id=59] +[ext_resource path="res://Assets/Cooldown/Makanan38.png" type="Texture" id=60] +[ext_resource path="res://Assets/Cooldown/Makanan39.png" type="Texture" id=61] +[ext_resource path="res://Assets/Cooldown/Makanan40.png" type="Texture" id=62] +[ext_resource path="res://Assets/Cooldown/Makanan41.png" type="Texture" id=63] +[ext_resource path="res://Assets/Cooldown/Makanan42.png" type="Texture" id=64] +[ext_resource path="res://Assets/Cooldown/Makanan43.png" type="Texture" id=65] +[ext_resource path="res://Assets/Cooldown/Makanan44.png" type="Texture" id=66] +[ext_resource path="res://Assets/Cooldown/Makanan45.png" type="Texture" id=67] +[ext_resource path="res://Assets/Cooldown/Makanan46.png" type="Texture" id=68] +[ext_resource path="res://Assets/Cooldown/Makanan47.png" type="Texture" id=69] +[ext_resource path="res://Assets/Cooldown/Makanan48.png" type="Texture" id=70] +[ext_resource path="res://Assets/Cooldown/Makanan49.png" type="Texture" id=71] +[ext_resource path="res://Assets/Cooldown/Makanan50.png" type="Texture" id=72] +[ext_resource path="res://Assets/Cooldown/Makanan51.png" type="Texture" id=73] +[ext_resource path="res://Assets/Cooldown/Makanan52.png" type="Texture" id=74] +[ext_resource path="res://Assets/Cooldown/Makanan53.png" type="Texture" id=75] +[ext_resource path="res://Assets/Cooldown/Makanan54.png" type="Texture" id=76] +[ext_resource path="res://Assets/Cooldown/Makanan55.png" type="Texture" id=77] +[ext_resource path="res://Assets/Cooldown/Makanan56.png" type="Texture" id=78] +[ext_resource path="res://Assets/Cooldown/Makanan57.png" type="Texture" id=79] +[ext_resource path="res://Assets/Cooldown/Makanan58.png" type="Texture" id=80] +[ext_resource path="res://Assets/Cooldown/Makanan59.png" type="Texture" id=81] +[ext_resource path="res://Assets/Cooldown/Makanan60.png" type="Texture" id=82] +[ext_resource path="res://Assets/Cooldown/Makanan61.png" type="Texture" id=83] +[ext_resource path="res://Assets/Cooldown/Makanan62.png" type="Texture" id=84] +[ext_resource path="res://Assets/Cooldown/Makanan63.png" type="Texture" id=85] +[ext_resource path="res://Assets/Cooldown/Makanan64.png" type="Texture" id=86] +[ext_resource path="res://Assets/Cooldown/Makanan65.png" type="Texture" id=87] +[ext_resource path="res://Assets/Cooldown/Makanan66.png" type="Texture" id=88] +[ext_resource path="res://Assets/Cooldown/Makanan67.png" type="Texture" id=89] +[ext_resource path="res://Assets/Cooldown/Makanan68.png" type="Texture" id=90] +[ext_resource path="res://Assets/Cooldown/Water.png" type="Texture" id=91] +[ext_resource path="res://Assets/Cooldown/Water1.png" type="Texture" id=92] +[ext_resource path="res://Assets/Cooldown/Water2.png" type="Texture" id=93] +[ext_resource path="res://Assets/Cooldown/Water3.png" type="Texture" id=94] +[ext_resource path="res://Assets/Cooldown/Water4.png" type="Texture" id=95] +[ext_resource path="res://Assets/Cooldown/Water5.png" type="Texture" id=96] +[ext_resource path="res://Assets/Cooldown/Water6.png" type="Texture" id=97] +[ext_resource path="res://Assets/Cooldown/Water7.png" type="Texture" id=98] +[ext_resource path="res://Assets/Cooldown/Water8.png" type="Texture" id=99] +[ext_resource path="res://Assets/Cooldown/Water9.png" type="Texture" id=100] +[ext_resource path="res://Assets/Cooldown/Water10.png" type="Texture" id=101] +[ext_resource path="res://Assets/Cooldown/Water11.png" type="Texture" id=102] +[ext_resource path="res://Assets/Cooldown/Water12.png" type="Texture" id=103] +[ext_resource path="res://Assets/Cooldown/Water13.png" type="Texture" id=104] +[ext_resource path="res://Assets/Cooldown/Water14.png" type="Texture" id=105] +[ext_resource path="res://Assets/Cooldown/Water15.png" type="Texture" id=106] +[ext_resource path="res://Assets/Cooldown/Water16.png" type="Texture" id=107] +[ext_resource path="res://Assets/Cooldown/Water17.png" type="Texture" id=108] +[ext_resource path="res://Assets/Cooldown/Water18.png" type="Texture" id=109] +[ext_resource path="res://Assets/Cooldown/Water19.png" type="Texture" id=110] +[ext_resource path="res://Assets/Cooldown/Water20.png" type="Texture" id=111] +[ext_resource path="res://Assets/Cooldown/Water21.png" type="Texture" id=112] +[ext_resource path="res://Assets/Cooldown/Water22.png" type="Texture" id=113] +[ext_resource path="res://Assets/Cooldown/Water23.png" type="Texture" id=114] +[ext_resource path="res://Assets/Cooldown/Water24.png" type="Texture" id=115] +[ext_resource path="res://Assets/Cooldown/Water25.png" type="Texture" id=116] +[ext_resource path="res://Assets/Cooldown/Water26.png" type="Texture" id=117] +[ext_resource path="res://Assets/Cooldown/Water27.png" type="Texture" id=118] +[ext_resource path="res://Assets/Cooldown/Water28.png" type="Texture" id=119] +[ext_resource path="res://Assets/Cooldown/Water29.png" type="Texture" id=120] +[ext_resource path="res://Assets/Cooldown/Water30.png" type="Texture" id=121] +[ext_resource path="res://Assets/Cooldown/Water31.png" type="Texture" id=122] +[ext_resource path="res://Assets/Cooldown/Water32.png" type="Texture" id=123] +[ext_resource path="res://Assets/Cooldown/Water33.png" type="Texture" id=124] +[ext_resource path="res://Assets/Cooldown/Water34.png" type="Texture" id=125] +[ext_resource path="res://Assets/Cooldown/Water35.png" type="Texture" id=126] +[ext_resource path="res://Assets/Cooldown/Water36.png" type="Texture" id=127] +[ext_resource path="res://Assets/Cooldown/Water37.png" type="Texture" id=128] +[ext_resource path="res://Assets/Cooldown/Water38.png" type="Texture" id=129] +[ext_resource path="res://Assets/Cooldown/Water39.png" type="Texture" id=130] +[ext_resource path="res://Assets/Cooldown/Water40.png" type="Texture" id=131] +[ext_resource path="res://Assets/Cooldown/Water41.png" type="Texture" id=132] +[ext_resource path="res://Assets/Cooldown/Water42.png" type="Texture" id=133] +[ext_resource path="res://Assets/Cooldown/Water43.png" type="Texture" id=134] +[ext_resource path="res://Assets/Cooldown/Water44.png" type="Texture" id=135] +[ext_resource path="res://Assets/Cooldown/Water45.png" type="Texture" id=136] +[ext_resource path="res://Assets/Cooldown/Water46.png" type="Texture" id=137] +[ext_resource path="res://Assets/Cooldown/Water47.png" type="Texture" id=138] +[ext_resource path="res://Assets/Cooldown/Water48.png" type="Texture" id=139] +[ext_resource path="res://Assets/Cooldown/Water49.png" type="Texture" id=140] +[ext_resource path="res://Assets/Cooldown/Water50.png" type="Texture" id=141] +[ext_resource path="res://Assets/Cooldown/Water51.png" type="Texture" id=142] +[ext_resource path="res://Assets/Cooldown/Water52.png" type="Texture" id=143] +[ext_resource path="res://Assets/Cooldown/Water53.png" type="Texture" id=144] +[ext_resource path="res://Assets/Cooldown/Water54.png" type="Texture" id=145] +[ext_resource path="res://Assets/Cooldown/Water55.png" type="Texture" id=146] +[ext_resource path="res://Assets/Cooldown/Water56.png" type="Texture" id=147] +[ext_resource path="res://Assets/Cooldown/Water57.png" type="Texture" id=148] +[ext_resource path="res://Assets/Cooldown/Water58.png" type="Texture" id=149] +[ext_resource path="res://Assets/Cooldown/Water59.png" type="Texture" id=150] +[ext_resource path="res://Assets/Cooldown/Water60.png" type="Texture" id=151] +[ext_resource path="res://Assets/Cooldown/Water61.png" type="Texture" id=152] +[ext_resource path="res://Assets/Cooldown/Water62.png" type="Texture" id=153] +[ext_resource path="res://Assets/Cooldown/Water63.png" type="Texture" id=154] +[ext_resource path="res://Assets/Cooldown/Water64.png" type="Texture" id=155] +[ext_resource path="res://Assets/Cooldown/Water65.png" type="Texture" id=156] +[ext_resource path="res://Assets/Cooldown/Water66.png" type="Texture" id=157] +[ext_resource path="res://Assets/Cooldown/Water67.png" type="Texture" id=158] +[ext_resource path="res://Assets/Cooldown/Water68.png" type="Texture" id=159] +[ext_resource path="res://Assets/Cooldown/Vaksin.png" type="Texture" id=160] +[ext_resource path="res://Assets/Cooldown/Vaksin1.png" type="Texture" id=161] +[ext_resource path="res://Assets/Cooldown/Vaksin2.png" type="Texture" id=162] +[ext_resource path="res://Assets/Cooldown/Vaksin3.png" type="Texture" id=163] +[ext_resource path="res://Assets/Cooldown/Vaksin4.png" type="Texture" id=164] +[ext_resource path="res://Assets/Cooldown/Vaksin5.png" type="Texture" id=165] +[ext_resource path="res://Assets/Cooldown/Vaksin6.png" type="Texture" id=166] +[ext_resource path="res://Assets/Cooldown/Vaksin7.png" type="Texture" id=167] +[ext_resource path="res://Assets/Cooldown/Vaksin8.png" type="Texture" id=168] +[ext_resource path="res://Assets/Cooldown/Vaksin9.png" type="Texture" id=169] +[ext_resource path="res://Assets/Cooldown/Vaksin10.png" type="Texture" id=170] +[ext_resource path="res://Assets/Cooldown/Vaksin11.png" type="Texture" id=171] +[ext_resource path="res://Assets/Cooldown/Vaksin12.png" type="Texture" id=172] +[ext_resource path="res://Assets/Cooldown/Vaksin13.png" type="Texture" id=173] +[ext_resource path="res://Assets/Cooldown/Vaksin14.png" type="Texture" id=174] +[ext_resource path="res://Assets/Cooldown/Vaksin15.png" type="Texture" id=175] +[ext_resource path="res://Assets/Cooldown/Vaksin16.png" type="Texture" id=176] +[ext_resource path="res://Assets/Cooldown/Vaksin17.png" type="Texture" id=177] +[ext_resource path="res://Assets/Cooldown/Vaksin18.png" type="Texture" id=178] +[ext_resource path="res://Assets/Cooldown/Vaksin19.png" type="Texture" id=179] +[ext_resource path="res://Assets/Cooldown/Vaksin20.png" type="Texture" id=180] +[ext_resource path="res://Assets/Cooldown/Vaksin21.png" type="Texture" id=181] +[ext_resource path="res://Assets/Cooldown/Vaksin22.png" type="Texture" id=182] +[ext_resource path="res://Assets/Cooldown/Vaksin23.png" type="Texture" id=183] +[ext_resource path="res://Assets/Cooldown/Vaksin24.png" type="Texture" id=184] +[ext_resource path="res://Assets/Cooldown/Vaksin25.png" type="Texture" id=185] +[ext_resource path="res://Assets/Cooldown/Vaksin26.png" type="Texture" id=186] +[ext_resource path="res://Assets/Cooldown/Vaksin27.png" type="Texture" id=187] +[ext_resource path="res://Assets/Cooldown/Vaksin28.png" type="Texture" id=188] +[ext_resource path="res://Assets/Cooldown/Vaksin29.png" type="Texture" id=189] +[ext_resource path="res://Assets/Cooldown/Vaksin30.png" type="Texture" id=190] +[ext_resource path="res://Assets/Cooldown/Vaksin31.png" type="Texture" id=191] +[ext_resource path="res://Assets/Cooldown/Vaksin32.png" type="Texture" id=192] +[ext_resource path="res://Assets/Cooldown/Vaksin33.png" type="Texture" id=193] +[ext_resource path="res://Assets/Cooldown/Vaksin34.png" type="Texture" id=194] +[ext_resource path="res://Assets/Cooldown/Vaksin35.png" type="Texture" id=195] +[ext_resource path="res://Assets/Cooldown/Vaksin36.png" type="Texture" id=196] +[ext_resource path="res://Assets/Cooldown/Vaksin37.png" type="Texture" id=197] +[ext_resource path="res://Assets/Cooldown/Vaksin38.png" type="Texture" id=198] +[ext_resource path="res://Assets/Cooldown/Vaksin39.png" type="Texture" id=199] +[ext_resource path="res://Assets/Cooldown/Vaksin40.png" type="Texture" id=200] +[ext_resource path="res://Assets/Cooldown/Vaksin41.png" type="Texture" id=201] +[ext_resource path="res://Assets/Cooldown/Vaksin42.png" type="Texture" id=202] +[ext_resource path="res://Assets/Cooldown/Vaksin43.png" type="Texture" id=203] +[ext_resource path="res://Assets/Cooldown/Vaksin44.png" type="Texture" id=204] +[ext_resource path="res://Assets/Cooldown/Vaksin45.png" type="Texture" id=205] +[ext_resource path="res://Assets/Cooldown/Vaksin46.png" type="Texture" id=206] +[ext_resource path="res://Assets/Cooldown/Vaksin47.png" type="Texture" id=207] +[ext_resource path="res://Assets/Cooldown/Vaksin48.png" type="Texture" id=208] +[ext_resource path="res://Assets/Cooldown/Vaksin49.png" type="Texture" id=209] +[ext_resource path="res://Assets/Cooldown/Vaksin50.png" type="Texture" id=210] +[ext_resource path="res://Assets/Cooldown/Vaksin51.png" type="Texture" id=211] +[ext_resource path="res://Assets/Cooldown/Vaksin52.png" type="Texture" id=212] +[ext_resource path="res://Assets/Cooldown/Vaksin53.png" type="Texture" id=213] +[ext_resource path="res://Assets/Cooldown/Vaksin54.png" type="Texture" id=214] +[ext_resource path="res://Assets/Cooldown/Vaksin55.png" type="Texture" id=215] +[ext_resource path="res://Assets/Cooldown/Vaksin56.png" type="Texture" id=216] +[ext_resource path="res://Assets/Cooldown/Vaksin57.png" type="Texture" id=217] +[ext_resource path="res://Assets/Cooldown/Vaksin58.png" type="Texture" id=218] +[ext_resource path="res://Assets/Cooldown/Vaksin59.png" type="Texture" id=219] +[ext_resource path="res://Assets/Cooldown/Vaksin60.png" type="Texture" id=220] +[ext_resource path="res://Assets/Cooldown/Vaksin61.png" type="Texture" id=221] +[ext_resource path="res://Assets/Cooldown/Vaksin62.png" type="Texture" id=222] +[ext_resource path="res://Assets/Cooldown/Vaksin63.png" type="Texture" id=223] +[ext_resource path="res://Assets/Cooldown/Vaksin64.png" type="Texture" id=224] +[ext_resource path="res://Assets/Cooldown/Vaksin65.png" type="Texture" id=225] +[ext_resource path="res://Assets/Cooldown/Vaksin66.png" type="Texture" id=226] +[ext_resource path="res://Assets/Cooldown/Vaksin67.png" type="Texture" id=227] +[ext_resource path="res://Assets/Cooldown/Vaksin68.png" type="Texture" id=228] +[ext_resource path="res://PauseMenu.tscn" type="PackedScene" id=229] +[ext_resource path="res://HUD.tscn" type="PackedScene" id=230] +[ext_resource path="res://GameOver.tscn" type="PackedScene" id=231] +[ext_resource path="res://Win.tscn" type="PackedScene" id=232] + +[sub_resource type="SpriteFrames" id=1] +animations = [ { +"frames": [ ExtResource( 2 ) ], +"loop": true, +"name": "Hujan", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ) ], +"loop": true, +"name": "Panas", +"speed": 5.0 +} ] + +[sub_resource type="AnimatedTexture" id=2] + +[sub_resource type="StyleBoxEmpty" id=3] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxEmpty" id=6] + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="Theme" id=8] +VScrollBar/icons/decrement = null +VScrollBar/icons/decrement_highlight = null +VScrollBar/icons/increment = null +VScrollBar/icons/increment_highlight = null +VScrollBar/styles/grabber = SubResource( 3 ) +VScrollBar/styles/grabber_highlight = SubResource( 4 ) +VScrollBar/styles/grabber_pressed = SubResource( 5 ) +VScrollBar/styles/scroll = SubResource( 6 ) +VScrollBar/styles/scroll_focus = SubResource( 7 ) + +[sub_resource type="StyleBoxFlat" id=9] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) + +[sub_resource type="SpriteFrames" id=10] +animations = [ { +"frames": [ ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 7 ) ], +"loop": true, +"name": "Marah", +"speed": 3.0 +}, { +"frames": [ ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 9 ) ], +"loop": true, +"name": "Normal", +"speed": 3.0 +}, { +"frames": [ ExtResource( 10 ) ], +"loop": true, +"name": "Mati", +"speed": 1.0 +}, { +"frames": [ ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 12 ) ], +"loop": true, +"name": "Senang", +"speed": 3.0 +}, { +"frames": [ ExtResource( 13 ) ], +"loop": true, +"name": "Sakit", +"speed": 1.0 +} ] + +[sub_resource type="SpriteFrames" id=11] +animations = [ { +"frames": [ ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ) ], +"loop": true, +"name": "default", +"speed": 40.0 +} ] + +[sub_resource type="SpriteFrames" id=12] +animations = [ { +"frames": [ ExtResource( 22 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ), ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ), ExtResource( 57 ), ExtResource( 58 ), ExtResource( 59 ), ExtResource( 60 ), ExtResource( 61 ), ExtResource( 62 ), ExtResource( 63 ), ExtResource( 64 ), ExtResource( 65 ), ExtResource( 66 ), ExtResource( 67 ), ExtResource( 68 ), ExtResource( 69 ), ExtResource( 70 ), ExtResource( 71 ), ExtResource( 72 ), ExtResource( 73 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 76 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 79 ), ExtResource( 80 ), ExtResource( 81 ), ExtResource( 82 ), ExtResource( 83 ), ExtResource( 84 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 88 ), ExtResource( 89 ), ExtResource( 90 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=13] +animations = [ { +"frames": [ ExtResource( 91 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 92 ), ExtResource( 93 ), ExtResource( 94 ), ExtResource( 95 ), ExtResource( 96 ), ExtResource( 97 ), ExtResource( 98 ), ExtResource( 99 ), ExtResource( 100 ), ExtResource( 101 ), ExtResource( 102 ), ExtResource( 103 ), ExtResource( 104 ), ExtResource( 105 ), ExtResource( 106 ), ExtResource( 107 ), ExtResource( 108 ), ExtResource( 109 ), ExtResource( 110 ), ExtResource( 111 ), ExtResource( 112 ), ExtResource( 113 ), ExtResource( 114 ), ExtResource( 115 ), ExtResource( 116 ), ExtResource( 117 ), ExtResource( 118 ), ExtResource( 119 ), ExtResource( 120 ), ExtResource( 121 ), ExtResource( 122 ), ExtResource( 123 ), ExtResource( 124 ), ExtResource( 125 ), ExtResource( 126 ), ExtResource( 127 ), ExtResource( 128 ), ExtResource( 129 ), ExtResource( 130 ), ExtResource( 131 ), ExtResource( 132 ), ExtResource( 133 ), ExtResource( 134 ), ExtResource( 135 ), ExtResource( 136 ), ExtResource( 137 ), ExtResource( 138 ), ExtResource( 139 ), ExtResource( 140 ), ExtResource( 141 ), ExtResource( 142 ), ExtResource( 143 ), ExtResource( 144 ), ExtResource( 145 ), ExtResource( 146 ), ExtResource( 147 ), ExtResource( 148 ), ExtResource( 149 ), ExtResource( 150 ), ExtResource( 151 ), ExtResource( 152 ), ExtResource( 153 ), ExtResource( 154 ), ExtResource( 155 ), ExtResource( 156 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 159 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=14] +animations = [ { +"frames": [ ExtResource( 160 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 161 ), ExtResource( 162 ), ExtResource( 163 ), ExtResource( 164 ), ExtResource( 165 ), ExtResource( 166 ), ExtResource( 167 ), ExtResource( 168 ), ExtResource( 169 ), ExtResource( 170 ), ExtResource( 171 ), ExtResource( 172 ), ExtResource( 173 ), ExtResource( 174 ), ExtResource( 175 ), ExtResource( 176 ), ExtResource( 177 ), ExtResource( 178 ), ExtResource( 179 ), ExtResource( 180 ), ExtResource( 181 ), ExtResource( 182 ), ExtResource( 183 ), ExtResource( 184 ), ExtResource( 185 ), ExtResource( 186 ), ExtResource( 187 ), ExtResource( 188 ), ExtResource( 189 ), ExtResource( 190 ), ExtResource( 191 ), ExtResource( 192 ), ExtResource( 193 ), ExtResource( 194 ), ExtResource( 195 ), ExtResource( 196 ), ExtResource( 197 ), ExtResource( 198 ), ExtResource( 199 ), ExtResource( 200 ), ExtResource( 201 ), ExtResource( 202 ), ExtResource( 203 ), ExtResource( 204 ), ExtResource( 205 ), ExtResource( 206 ), ExtResource( 207 ), ExtResource( 208 ), ExtResource( 209 ), ExtResource( 210 ), ExtResource( 211 ), ExtResource( 212 ), ExtResource( 213 ), ExtResource( 214 ), ExtResource( 215 ), ExtResource( 216 ), ExtResource( 217 ), ExtResource( 218 ), ExtResource( 219 ), ExtResource( 220 ), ExtResource( 221 ), ExtResource( 222 ), ExtResource( 223 ), ExtResource( 224 ), ExtResource( 225 ), ExtResource( 226 ), ExtResource( 227 ), ExtResource( 228 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[node name="Level 3" type="Control"] +pause_mode = 1 +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) + +[node name="Background" type="AnimatedSprite" parent="."] +position = Vector2( 639, 360 ) +scale = Vector2( 0.652, 0.719 ) +frames = SubResource( 1 ) +animation = "Panas" +playing = true + +[node name="Sprite" type="Sprite" parent="."] +visible = false +position = Vector2( 639.5, 359 ) +scale = Vector2( 0.652551, 0.718 ) +texture = ExtResource( 3 ) +normal_map = SubResource( 2 ) + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 1280.0 +margin_bottom = 720.0 +rect_clip_content = false +theme = SubResource( 8 ) +scroll_horizontal_enabled = false + +[node name="VBoxContainer" type="PanelContainer" parent="ScrollContainer"] +margin_right = 1280.0 +margin_bottom = 2100.0 +rect_min_size = Vector2( 1280, 2100 ) +custom_styles/panel = SubResource( 9 ) + +[node name="Kayu 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, -200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Sprite2" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite3" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite4" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite5" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Baris 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 0 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 2" type="Node2D" parent="ScrollContainer/VBoxContainer"] +position = Vector2( 15, 200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Tools" type="Node2D" parent="."] +editor/display_folded = true +script = ExtResource( 21 ) + +[node name="makanan" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1176.0 +margin_top = 127.0 +margin_right = 1265.0 +margin_bottom = 171.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="makan" type="AnimatedSprite" parent="Tools/makanan"] +position = Vector2( 44, 24 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 12 ) +animation = "idle" + +[node name="Air" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1193.0 +margin_top = 309.0 +margin_right = 1244.0 +margin_bottom = 395.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="air" type="AnimatedSprite" parent="Tools/Air"] +position = Vector2( 26, 42 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 13 ) +animation = "idle" + +[node name="vaksin" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1185.0 +margin_top = 516.0 +margin_right = 1252.0 +margin_bottom = 583.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="Vaksin" type="AnimatedSprite" parent="Tools/vaksin"] +position = Vector2( 34, 34 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 14 ) +animation = "idle" + +[node name="CuacaTimer" type="Timer" parent="."] +wait_time = 20.0 +autostart = true + +[node name="MakananTimer" type="Timer" parent="."] +one_shot = true + +[node name="MinumanTimer" type="Timer" parent="."] +one_shot = true + +[node name="VaksinTimer" type="Timer" parent="."] +one_shot = true + +[node name="PauseMenu" parent="." instance=ExtResource( 229 )] +visible = false + +[node name="HUD" parent="." instance=ExtResource( 230 )] + +[node name="GameOver" parent="." instance=ExtResource( 231 )] +visible = false + +[node name="Win" parent="." instance=ExtResource( 232 )] +visible = false +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam2" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam3" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam4" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam2" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_BL1_toggled"] +[connection signal="pressed" from="Tools/makanan" to="Tools" method="_on_makanan_pressed"] +[connection signal="pressed" from="Tools/Air" to="Tools" method="_on_air_pressed"] +[connection signal="pressed" from="Tools/vaksin" to="Tools" method="_on_vaksin_pressed"] +[connection signal="timeout" from="CuacaTimer" to="." method="_on_CuacaTimer_timeout"] +[connection signal="timeout" from="MakananTimer" to="." method="_on_MakananTimer_timeout"] +[connection signal="timeout" from="MinumanTimer" to="." method="_on_MinumanTimer_timeout"] +[connection signal="timeout" from="VaksinTimer" to="." method="_on_VaksinTimer_timeout"] diff --git a/Level 4.gd b/Level 4.gd new file mode 100644 index 0000000..1f794d6 --- /dev/null +++ b/Level 4.gd @@ -0,0 +1,90 @@ +extends Control + +var cuaca + +func _ready(): + GlobalVar.makan = 4 + GlobalVar.minum = 4 + GlobalVar.vaks = 4 + GlobalVar.targetLevel = 4 + GlobalVar.currentLevel = 4 + $Win.hide() + $GameOver.hide() + $PauseMenu.hide() + $ScrollContainer.get_h_scrollbar().hide() + + GlobalVar.hidup = 0 + GlobalVar.mati = 0 + if GlobalVar.targetLevel != 1: + get_tree().paused = false + GlobalVar.time = 60.0 + cuaca = "panas" + +func _process(delta): + GlobalVar.time -= delta + if GlobalVar.time <= 1: + get_tree().paused = true + GlobalVar.currentLevel = 4 + GlobalVar.targetLevel += 1 + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + GlobalVar.level5 = true + $Win.show() + + GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati + if GlobalVar.hidup <= get_tree().get_nodes_in_group("chickens").size()/2: + get_tree().paused = true + print("Game Over") + $GameOver.show() + + if get_tree().paused: + $HUD.hide() + else: + $HUD.show() + + +func randomly(inputan): + return inputan[randi() % inputan.size()] + +func _on_CuacaTimer_timeout(): + randomize() + var x = randomly([0,1]) + if x == 0: + GlobalVar.cuaca = "Panas" + else: + GlobalVar.cuaca = "Hujan" + get_node("/root/Level 4/Background").play(GlobalVar.cuaca) + var t = rand_range(0,100) + get_node("/root/Level 4/CuacaTimer").start(t) + +func _on_SakitTimer_ready(): + pass # Replace with function body. + +func _on_MakananTimer_timeout(): + GlobalVar.makan = 4 + get_node("/root/Level 4/Tools/makanan/makan").play("idle") + pass # Replace with function body. + +func _on_MinumanTimer_timeout(): + GlobalVar.minum = 4 + get_node("/root/Level 4/Tools/Air/air").play("idle") + pass # Replace with function body. + +func _on_VaksinTimer_timeout(): + GlobalVar.vaks = 4 + get_node("/root/Level 4/Tools/vaksin/Vaksin").play("idle") + pass # Replace with function body. + +func _on_PauseButton_pressed(): + $PauseMenu.show() + get_tree().paused = true + +func _on_Continue_pressed(): + $PauseMenu.hide() + get_tree().paused = false + +func _on_Exit_pressed(): + get_tree().paused = false + get_tree().change_scene("MainMenu.tscn") diff --git a/Level 4.tscn b/Level 4.tscn new file mode 100644 index 0000000..e2ebd18 --- /dev/null +++ b/Level 4.tscn @@ -0,0 +1,982 @@ +[gd_scene load_steps=247 format=2] + +[ext_resource path="res://Level 4.gd" type="Script" id=1] +[ext_resource path="res://Assets/Background_hujan.png" type="Texture" id=2] +[ext_resource path="res://Assets/Background_vf.png" type="Texture" id=3] +[ext_resource path="res://Assets/Kayu AS.png" type="Texture" id=4] +[ext_resource path="res://ayam4.gd" type="Script" id=5] +[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=6] +[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=7] +[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=8] +[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=9] +[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=10] +[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=11] +[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=12] +[ext_resource path="res://Assets/Ayam Sakit.png" type="Texture" id=13] +[ext_resource path="res://Assets/belakang.png" type="Texture" id=14] +[ext_resource path="res://Assets/atas.png" type="Texture" id=15] +[ext_resource path="res://Assets/tengah.png" type="Texture" id=16] +[ext_resource path="res://Assets/fan_blue_00.png" type="Texture" id=17] +[ext_resource path="res://Assets/fan_blue_01.png" type="Texture" id=18] +[ext_resource path="res://Assets/fan_blue_02.png" type="Texture" id=19] +[ext_resource path="res://Assets/LAMPP.png" type="Texture" id=20] +[ext_resource path="res://Tools.gd" type="Script" id=21] +[ext_resource path="res://Assets/Cooldown/Makanan.png" type="Texture" id=22] +[ext_resource path="res://Assets/Cooldown/Makanan1.png" type="Texture" id=23] +[ext_resource path="res://Assets/Cooldown/Makanan2.png" type="Texture" id=24] +[ext_resource path="res://Assets/Cooldown/Makanan3.png" type="Texture" id=25] +[ext_resource path="res://Assets/Cooldown/Makanan4.png" type="Texture" id=26] +[ext_resource path="res://Assets/Cooldown/Makanan5.png" type="Texture" id=27] +[ext_resource path="res://Assets/Cooldown/Makanan6.png" type="Texture" id=28] +[ext_resource path="res://Assets/Cooldown/Makanan7.png" type="Texture" id=29] +[ext_resource path="res://Assets/Cooldown/Makanan8.png" type="Texture" id=30] +[ext_resource path="res://Assets/Cooldown/Makanan9.png" type="Texture" id=31] +[ext_resource path="res://Assets/Cooldown/Makanan10.png" type="Texture" id=32] +[ext_resource path="res://Assets/Cooldown/Makanan11.png" type="Texture" id=33] +[ext_resource path="res://Assets/Cooldown/Makanan12.png" type="Texture" id=34] +[ext_resource path="res://Assets/Cooldown/Makanan13.png" type="Texture" id=35] +[ext_resource path="res://Assets/Cooldown/Makanan14.png" type="Texture" id=36] +[ext_resource path="res://Assets/Cooldown/Makanan15.png" type="Texture" id=37] +[ext_resource path="res://Assets/Cooldown/Makanan16.png" type="Texture" id=38] +[ext_resource path="res://Assets/Cooldown/Makanan17.png" type="Texture" id=39] +[ext_resource path="res://Assets/Cooldown/Makanan18.png" type="Texture" id=40] +[ext_resource path="res://Assets/Cooldown/Makanan19.png" type="Texture" id=41] +[ext_resource path="res://Assets/Cooldown/Makanan20.png" type="Texture" id=42] +[ext_resource path="res://Assets/Cooldown/Makanan21.png" type="Texture" id=43] +[ext_resource path="res://Assets/Cooldown/Makanan22.png" type="Texture" id=44] +[ext_resource path="res://Assets/Cooldown/Makanan23.png" type="Texture" id=45] +[ext_resource path="res://Assets/Cooldown/Makanan24.png" type="Texture" id=46] +[ext_resource path="res://Assets/Cooldown/Makanan25.png" type="Texture" id=47] +[ext_resource path="res://Assets/Cooldown/Makanan26.png" type="Texture" id=48] +[ext_resource path="res://Assets/Cooldown/Makanan27.png" type="Texture" id=49] +[ext_resource path="res://Assets/Cooldown/Makanan28.png" type="Texture" id=50] +[ext_resource path="res://Assets/Cooldown/Makanan29.png" type="Texture" id=51] +[ext_resource path="res://Assets/Cooldown/Makanan30.png" type="Texture" id=52] +[ext_resource path="res://Assets/Cooldown/Makanan31.png" type="Texture" id=53] +[ext_resource path="res://Assets/Cooldown/Makanan32.png" type="Texture" id=54] +[ext_resource path="res://Assets/Cooldown/Makanan33.png" type="Texture" id=55] +[ext_resource path="res://Assets/Cooldown/Makanan34.png" type="Texture" id=56] +[ext_resource path="res://Assets/Cooldown/Makanan35.png" type="Texture" id=57] +[ext_resource path="res://Assets/Cooldown/Makanan36.png" type="Texture" id=58] +[ext_resource path="res://Assets/Cooldown/Makanan37.png" type="Texture" id=59] +[ext_resource path="res://Assets/Cooldown/Makanan38.png" type="Texture" id=60] +[ext_resource path="res://Assets/Cooldown/Makanan39.png" type="Texture" id=61] +[ext_resource path="res://Assets/Cooldown/Makanan40.png" type="Texture" id=62] +[ext_resource path="res://Assets/Cooldown/Makanan41.png" type="Texture" id=63] +[ext_resource path="res://Assets/Cooldown/Makanan42.png" type="Texture" id=64] +[ext_resource path="res://Assets/Cooldown/Makanan43.png" type="Texture" id=65] +[ext_resource path="res://Assets/Cooldown/Makanan44.png" type="Texture" id=66] +[ext_resource path="res://Assets/Cooldown/Makanan45.png" type="Texture" id=67] +[ext_resource path="res://Assets/Cooldown/Makanan46.png" type="Texture" id=68] +[ext_resource path="res://Assets/Cooldown/Makanan47.png" type="Texture" id=69] +[ext_resource path="res://Assets/Cooldown/Makanan48.png" type="Texture" id=70] +[ext_resource path="res://Assets/Cooldown/Makanan49.png" type="Texture" id=71] +[ext_resource path="res://Assets/Cooldown/Makanan50.png" type="Texture" id=72] +[ext_resource path="res://Assets/Cooldown/Makanan51.png" type="Texture" id=73] +[ext_resource path="res://Assets/Cooldown/Makanan52.png" type="Texture" id=74] +[ext_resource path="res://Assets/Cooldown/Makanan53.png" type="Texture" id=75] +[ext_resource path="res://Assets/Cooldown/Makanan54.png" type="Texture" id=76] +[ext_resource path="res://Assets/Cooldown/Makanan55.png" type="Texture" id=77] +[ext_resource path="res://Assets/Cooldown/Makanan56.png" type="Texture" id=78] +[ext_resource path="res://Assets/Cooldown/Makanan57.png" type="Texture" id=79] +[ext_resource path="res://Assets/Cooldown/Makanan58.png" type="Texture" id=80] +[ext_resource path="res://Assets/Cooldown/Makanan59.png" type="Texture" id=81] +[ext_resource path="res://Assets/Cooldown/Makanan60.png" type="Texture" id=82] +[ext_resource path="res://Assets/Cooldown/Makanan61.png" type="Texture" id=83] +[ext_resource path="res://Assets/Cooldown/Makanan62.png" type="Texture" id=84] +[ext_resource path="res://Assets/Cooldown/Makanan63.png" type="Texture" id=85] +[ext_resource path="res://Assets/Cooldown/Makanan64.png" type="Texture" id=86] +[ext_resource path="res://Assets/Cooldown/Makanan65.png" type="Texture" id=87] +[ext_resource path="res://Assets/Cooldown/Makanan66.png" type="Texture" id=88] +[ext_resource path="res://Assets/Cooldown/Makanan67.png" type="Texture" id=89] +[ext_resource path="res://Assets/Cooldown/Makanan68.png" type="Texture" id=90] +[ext_resource path="res://Assets/Cooldown/Water.png" type="Texture" id=91] +[ext_resource path="res://Assets/Cooldown/Water1.png" type="Texture" id=92] +[ext_resource path="res://Assets/Cooldown/Water2.png" type="Texture" id=93] +[ext_resource path="res://Assets/Cooldown/Water3.png" type="Texture" id=94] +[ext_resource path="res://Assets/Cooldown/Water4.png" type="Texture" id=95] +[ext_resource path="res://Assets/Cooldown/Water5.png" type="Texture" id=96] +[ext_resource path="res://Assets/Cooldown/Water6.png" type="Texture" id=97] +[ext_resource path="res://Assets/Cooldown/Water7.png" type="Texture" id=98] +[ext_resource path="res://Assets/Cooldown/Water8.png" type="Texture" id=99] +[ext_resource path="res://Assets/Cooldown/Water9.png" type="Texture" id=100] +[ext_resource path="res://Assets/Cooldown/Water10.png" type="Texture" id=101] +[ext_resource path="res://Assets/Cooldown/Water11.png" type="Texture" id=102] +[ext_resource path="res://Assets/Cooldown/Water12.png" type="Texture" id=103] +[ext_resource path="res://Assets/Cooldown/Water13.png" type="Texture" id=104] +[ext_resource path="res://Assets/Cooldown/Water14.png" type="Texture" id=105] +[ext_resource path="res://Assets/Cooldown/Water15.png" type="Texture" id=106] +[ext_resource path="res://Assets/Cooldown/Water16.png" type="Texture" id=107] +[ext_resource path="res://Assets/Cooldown/Water17.png" type="Texture" id=108] +[ext_resource path="res://Assets/Cooldown/Water18.png" type="Texture" id=109] +[ext_resource path="res://Assets/Cooldown/Water19.png" type="Texture" id=110] +[ext_resource path="res://Assets/Cooldown/Water20.png" type="Texture" id=111] +[ext_resource path="res://Assets/Cooldown/Water21.png" type="Texture" id=112] +[ext_resource path="res://Assets/Cooldown/Water22.png" type="Texture" id=113] +[ext_resource path="res://Assets/Cooldown/Water23.png" type="Texture" id=114] +[ext_resource path="res://Assets/Cooldown/Water24.png" type="Texture" id=115] +[ext_resource path="res://Assets/Cooldown/Water25.png" type="Texture" id=116] +[ext_resource path="res://Assets/Cooldown/Water26.png" type="Texture" id=117] +[ext_resource path="res://Assets/Cooldown/Water27.png" type="Texture" id=118] +[ext_resource path="res://Assets/Cooldown/Water28.png" type="Texture" id=119] +[ext_resource path="res://Assets/Cooldown/Water29.png" type="Texture" id=120] +[ext_resource path="res://Assets/Cooldown/Water30.png" type="Texture" id=121] +[ext_resource path="res://Assets/Cooldown/Water31.png" type="Texture" id=122] +[ext_resource path="res://Assets/Cooldown/Water32.png" type="Texture" id=123] +[ext_resource path="res://Assets/Cooldown/Water33.png" type="Texture" id=124] +[ext_resource path="res://Assets/Cooldown/Water34.png" type="Texture" id=125] +[ext_resource path="res://Assets/Cooldown/Water35.png" type="Texture" id=126] +[ext_resource path="res://Assets/Cooldown/Water36.png" type="Texture" id=127] +[ext_resource path="res://Assets/Cooldown/Water37.png" type="Texture" id=128] +[ext_resource path="res://Assets/Cooldown/Water38.png" type="Texture" id=129] +[ext_resource path="res://Assets/Cooldown/Water39.png" type="Texture" id=130] +[ext_resource path="res://Assets/Cooldown/Water40.png" type="Texture" id=131] +[ext_resource path="res://Assets/Cooldown/Water41.png" type="Texture" id=132] +[ext_resource path="res://Assets/Cooldown/Water42.png" type="Texture" id=133] +[ext_resource path="res://Assets/Cooldown/Water43.png" type="Texture" id=134] +[ext_resource path="res://Assets/Cooldown/Water44.png" type="Texture" id=135] +[ext_resource path="res://Assets/Cooldown/Water45.png" type="Texture" id=136] +[ext_resource path="res://Assets/Cooldown/Water46.png" type="Texture" id=137] +[ext_resource path="res://Assets/Cooldown/Water47.png" type="Texture" id=138] +[ext_resource path="res://Assets/Cooldown/Water48.png" type="Texture" id=139] +[ext_resource path="res://Assets/Cooldown/Water49.png" type="Texture" id=140] +[ext_resource path="res://Assets/Cooldown/Water50.png" type="Texture" id=141] +[ext_resource path="res://Assets/Cooldown/Water51.png" type="Texture" id=142] +[ext_resource path="res://Assets/Cooldown/Water52.png" type="Texture" id=143] +[ext_resource path="res://Assets/Cooldown/Water53.png" type="Texture" id=144] +[ext_resource path="res://Assets/Cooldown/Water54.png" type="Texture" id=145] +[ext_resource path="res://Assets/Cooldown/Water55.png" type="Texture" id=146] +[ext_resource path="res://Assets/Cooldown/Water56.png" type="Texture" id=147] +[ext_resource path="res://Assets/Cooldown/Water57.png" type="Texture" id=148] +[ext_resource path="res://Assets/Cooldown/Water58.png" type="Texture" id=149] +[ext_resource path="res://Assets/Cooldown/Water59.png" type="Texture" id=150] +[ext_resource path="res://Assets/Cooldown/Water60.png" type="Texture" id=151] +[ext_resource path="res://Assets/Cooldown/Water61.png" type="Texture" id=152] +[ext_resource path="res://Assets/Cooldown/Water62.png" type="Texture" id=153] +[ext_resource path="res://Assets/Cooldown/Water63.png" type="Texture" id=154] +[ext_resource path="res://Assets/Cooldown/Water64.png" type="Texture" id=155] +[ext_resource path="res://Assets/Cooldown/Water65.png" type="Texture" id=156] +[ext_resource path="res://Assets/Cooldown/Water66.png" type="Texture" id=157] +[ext_resource path="res://Assets/Cooldown/Water67.png" type="Texture" id=158] +[ext_resource path="res://Assets/Cooldown/Water68.png" type="Texture" id=159] +[ext_resource path="res://Assets/Cooldown/Vaksin.png" type="Texture" id=160] +[ext_resource path="res://Assets/Cooldown/Vaksin1.png" type="Texture" id=161] +[ext_resource path="res://Assets/Cooldown/Vaksin2.png" type="Texture" id=162] +[ext_resource path="res://Assets/Cooldown/Vaksin3.png" type="Texture" id=163] +[ext_resource path="res://Assets/Cooldown/Vaksin4.png" type="Texture" id=164] +[ext_resource path="res://Assets/Cooldown/Vaksin5.png" type="Texture" id=165] +[ext_resource path="res://Assets/Cooldown/Vaksin6.png" type="Texture" id=166] +[ext_resource path="res://Assets/Cooldown/Vaksin7.png" type="Texture" id=167] +[ext_resource path="res://Assets/Cooldown/Vaksin8.png" type="Texture" id=168] +[ext_resource path="res://Assets/Cooldown/Vaksin9.png" type="Texture" id=169] +[ext_resource path="res://Assets/Cooldown/Vaksin10.png" type="Texture" id=170] +[ext_resource path="res://Assets/Cooldown/Vaksin11.png" type="Texture" id=171] +[ext_resource path="res://Assets/Cooldown/Vaksin12.png" type="Texture" id=172] +[ext_resource path="res://Assets/Cooldown/Vaksin13.png" type="Texture" id=173] +[ext_resource path="res://Assets/Cooldown/Vaksin14.png" type="Texture" id=174] +[ext_resource path="res://Assets/Cooldown/Vaksin15.png" type="Texture" id=175] +[ext_resource path="res://Assets/Cooldown/Vaksin16.png" type="Texture" id=176] +[ext_resource path="res://Assets/Cooldown/Vaksin17.png" type="Texture" id=177] +[ext_resource path="res://Assets/Cooldown/Vaksin18.png" type="Texture" id=178] +[ext_resource path="res://Assets/Cooldown/Vaksin19.png" type="Texture" id=179] +[ext_resource path="res://Assets/Cooldown/Vaksin20.png" type="Texture" id=180] +[ext_resource path="res://Assets/Cooldown/Vaksin21.png" type="Texture" id=181] +[ext_resource path="res://Assets/Cooldown/Vaksin22.png" type="Texture" id=182] +[ext_resource path="res://Assets/Cooldown/Vaksin23.png" type="Texture" id=183] +[ext_resource path="res://Assets/Cooldown/Vaksin24.png" type="Texture" id=184] +[ext_resource path="res://Assets/Cooldown/Vaksin25.png" type="Texture" id=185] +[ext_resource path="res://Assets/Cooldown/Vaksin26.png" type="Texture" id=186] +[ext_resource path="res://Assets/Cooldown/Vaksin27.png" type="Texture" id=187] +[ext_resource path="res://Assets/Cooldown/Vaksin28.png" type="Texture" id=188] +[ext_resource path="res://Assets/Cooldown/Vaksin29.png" type="Texture" id=189] +[ext_resource path="res://Assets/Cooldown/Vaksin30.png" type="Texture" id=190] +[ext_resource path="res://Assets/Cooldown/Vaksin31.png" type="Texture" id=191] +[ext_resource path="res://Assets/Cooldown/Vaksin32.png" type="Texture" id=192] +[ext_resource path="res://Assets/Cooldown/Vaksin33.png" type="Texture" id=193] +[ext_resource path="res://Assets/Cooldown/Vaksin34.png" type="Texture" id=194] +[ext_resource path="res://Assets/Cooldown/Vaksin35.png" type="Texture" id=195] +[ext_resource path="res://Assets/Cooldown/Vaksin36.png" type="Texture" id=196] +[ext_resource path="res://Assets/Cooldown/Vaksin37.png" type="Texture" id=197] +[ext_resource path="res://Assets/Cooldown/Vaksin38.png" type="Texture" id=198] +[ext_resource path="res://Assets/Cooldown/Vaksin39.png" type="Texture" id=199] +[ext_resource path="res://Assets/Cooldown/Vaksin40.png" type="Texture" id=200] +[ext_resource path="res://Assets/Cooldown/Vaksin41.png" type="Texture" id=201] +[ext_resource path="res://Assets/Cooldown/Vaksin42.png" type="Texture" id=202] +[ext_resource path="res://Assets/Cooldown/Vaksin43.png" type="Texture" id=203] +[ext_resource path="res://Assets/Cooldown/Vaksin44.png" type="Texture" id=204] +[ext_resource path="res://Assets/Cooldown/Vaksin45.png" type="Texture" id=205] +[ext_resource path="res://Assets/Cooldown/Vaksin46.png" type="Texture" id=206] +[ext_resource path="res://Assets/Cooldown/Vaksin47.png" type="Texture" id=207] +[ext_resource path="res://Assets/Cooldown/Vaksin48.png" type="Texture" id=208] +[ext_resource path="res://Assets/Cooldown/Vaksin49.png" type="Texture" id=209] +[ext_resource path="res://Assets/Cooldown/Vaksin50.png" type="Texture" id=210] +[ext_resource path="res://Assets/Cooldown/Vaksin51.png" type="Texture" id=211] +[ext_resource path="res://Assets/Cooldown/Vaksin52.png" type="Texture" id=212] +[ext_resource path="res://Assets/Cooldown/Vaksin53.png" type="Texture" id=213] +[ext_resource path="res://Assets/Cooldown/Vaksin54.png" type="Texture" id=214] +[ext_resource path="res://Assets/Cooldown/Vaksin55.png" type="Texture" id=215] +[ext_resource path="res://Assets/Cooldown/Vaksin56.png" type="Texture" id=216] +[ext_resource path="res://Assets/Cooldown/Vaksin57.png" type="Texture" id=217] +[ext_resource path="res://Assets/Cooldown/Vaksin58.png" type="Texture" id=218] +[ext_resource path="res://Assets/Cooldown/Vaksin59.png" type="Texture" id=219] +[ext_resource path="res://Assets/Cooldown/Vaksin60.png" type="Texture" id=220] +[ext_resource path="res://Assets/Cooldown/Vaksin61.png" type="Texture" id=221] +[ext_resource path="res://Assets/Cooldown/Vaksin62.png" type="Texture" id=222] +[ext_resource path="res://Assets/Cooldown/Vaksin63.png" type="Texture" id=223] +[ext_resource path="res://Assets/Cooldown/Vaksin64.png" type="Texture" id=224] +[ext_resource path="res://Assets/Cooldown/Vaksin65.png" type="Texture" id=225] +[ext_resource path="res://Assets/Cooldown/Vaksin66.png" type="Texture" id=226] +[ext_resource path="res://Assets/Cooldown/Vaksin67.png" type="Texture" id=227] +[ext_resource path="res://Assets/Cooldown/Vaksin68.png" type="Texture" id=228] +[ext_resource path="res://PauseMenu.tscn" type="PackedScene" id=229] +[ext_resource path="res://HUD.tscn" type="PackedScene" id=230] +[ext_resource path="res://GameOver.tscn" type="PackedScene" id=231] +[ext_resource path="res://Win.tscn" type="PackedScene" id=232] + +[sub_resource type="SpriteFrames" id=1] +animations = [ { +"frames": [ ExtResource( 2 ) ], +"loop": true, +"name": "Hujan", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ) ], +"loop": true, +"name": "Panas", +"speed": 5.0 +} ] + +[sub_resource type="AnimatedTexture" id=2] + +[sub_resource type="StyleBoxEmpty" id=3] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxEmpty" id=6] + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="Theme" id=8] +VScrollBar/icons/decrement = null +VScrollBar/icons/decrement_highlight = null +VScrollBar/icons/increment = null +VScrollBar/icons/increment_highlight = null +VScrollBar/styles/grabber = SubResource( 3 ) +VScrollBar/styles/grabber_highlight = SubResource( 4 ) +VScrollBar/styles/grabber_pressed = SubResource( 5 ) +VScrollBar/styles/scroll = SubResource( 6 ) +VScrollBar/styles/scroll_focus = SubResource( 7 ) + +[sub_resource type="StyleBoxFlat" id=9] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) + +[sub_resource type="SpriteFrames" id=10] +animations = [ { +"frames": [ ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 7 ) ], +"loop": true, +"name": "Marah", +"speed": 3.0 +}, { +"frames": [ ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 9 ) ], +"loop": true, +"name": "Normal", +"speed": 3.0 +}, { +"frames": [ ExtResource( 10 ) ], +"loop": true, +"name": "Mati", +"speed": 1.0 +}, { +"frames": [ ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 12 ) ], +"loop": true, +"name": "Senang", +"speed": 3.0 +}, { +"frames": [ ExtResource( 13 ) ], +"loop": true, +"name": "Sakit", +"speed": 1.0 +} ] + +[sub_resource type="SpriteFrames" id=11] +animations = [ { +"frames": [ ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ) ], +"loop": true, +"name": "default", +"speed": 40.0 +} ] + +[sub_resource type="SpriteFrames" id=12] +animations = [ { +"frames": [ ExtResource( 22 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ), ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ), ExtResource( 57 ), ExtResource( 58 ), ExtResource( 59 ), ExtResource( 60 ), ExtResource( 61 ), ExtResource( 62 ), ExtResource( 63 ), ExtResource( 64 ), ExtResource( 65 ), ExtResource( 66 ), ExtResource( 67 ), ExtResource( 68 ), ExtResource( 69 ), ExtResource( 70 ), ExtResource( 71 ), ExtResource( 72 ), ExtResource( 73 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 76 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 79 ), ExtResource( 80 ), ExtResource( 81 ), ExtResource( 82 ), ExtResource( 83 ), ExtResource( 84 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 88 ), ExtResource( 89 ), ExtResource( 90 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=13] +animations = [ { +"frames": [ ExtResource( 91 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 92 ), ExtResource( 93 ), ExtResource( 94 ), ExtResource( 95 ), ExtResource( 96 ), ExtResource( 97 ), ExtResource( 98 ), ExtResource( 99 ), ExtResource( 100 ), ExtResource( 101 ), ExtResource( 102 ), ExtResource( 103 ), ExtResource( 104 ), ExtResource( 105 ), ExtResource( 106 ), ExtResource( 107 ), ExtResource( 108 ), ExtResource( 109 ), ExtResource( 110 ), ExtResource( 111 ), ExtResource( 112 ), ExtResource( 113 ), ExtResource( 114 ), ExtResource( 115 ), ExtResource( 116 ), ExtResource( 117 ), ExtResource( 118 ), ExtResource( 119 ), ExtResource( 120 ), ExtResource( 121 ), ExtResource( 122 ), ExtResource( 123 ), ExtResource( 124 ), ExtResource( 125 ), ExtResource( 126 ), ExtResource( 127 ), ExtResource( 128 ), ExtResource( 129 ), ExtResource( 130 ), ExtResource( 131 ), ExtResource( 132 ), ExtResource( 133 ), ExtResource( 134 ), ExtResource( 135 ), ExtResource( 136 ), ExtResource( 137 ), ExtResource( 138 ), ExtResource( 139 ), ExtResource( 140 ), ExtResource( 141 ), ExtResource( 142 ), ExtResource( 143 ), ExtResource( 144 ), ExtResource( 145 ), ExtResource( 146 ), ExtResource( 147 ), ExtResource( 148 ), ExtResource( 149 ), ExtResource( 150 ), ExtResource( 151 ), ExtResource( 152 ), ExtResource( 153 ), ExtResource( 154 ), ExtResource( 155 ), ExtResource( 156 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 159 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=14] +animations = [ { +"frames": [ ExtResource( 160 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 161 ), ExtResource( 162 ), ExtResource( 163 ), ExtResource( 164 ), ExtResource( 165 ), ExtResource( 166 ), ExtResource( 167 ), ExtResource( 168 ), ExtResource( 169 ), ExtResource( 170 ), ExtResource( 171 ), ExtResource( 172 ), ExtResource( 173 ), ExtResource( 174 ), ExtResource( 175 ), ExtResource( 176 ), ExtResource( 177 ), ExtResource( 178 ), ExtResource( 179 ), ExtResource( 180 ), ExtResource( 181 ), ExtResource( 182 ), ExtResource( 183 ), ExtResource( 184 ), ExtResource( 185 ), ExtResource( 186 ), ExtResource( 187 ), ExtResource( 188 ), ExtResource( 189 ), ExtResource( 190 ), ExtResource( 191 ), ExtResource( 192 ), ExtResource( 193 ), ExtResource( 194 ), ExtResource( 195 ), ExtResource( 196 ), ExtResource( 197 ), ExtResource( 198 ), ExtResource( 199 ), ExtResource( 200 ), ExtResource( 201 ), ExtResource( 202 ), ExtResource( 203 ), ExtResource( 204 ), ExtResource( 205 ), ExtResource( 206 ), ExtResource( 207 ), ExtResource( 208 ), ExtResource( 209 ), ExtResource( 210 ), ExtResource( 211 ), ExtResource( 212 ), ExtResource( 213 ), ExtResource( 214 ), ExtResource( 215 ), ExtResource( 216 ), ExtResource( 217 ), ExtResource( 218 ), ExtResource( 219 ), ExtResource( 220 ), ExtResource( 221 ), ExtResource( 222 ), ExtResource( 223 ), ExtResource( 224 ), ExtResource( 225 ), ExtResource( 226 ), ExtResource( 227 ), ExtResource( 228 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[node name="Level 4" type="Control"] +pause_mode = 1 +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) + +[node name="Background" type="AnimatedSprite" parent="."] +position = Vector2( 639, 360 ) +scale = Vector2( 0.652, 0.719 ) +frames = SubResource( 1 ) +animation = "Panas" +playing = true + +[node name="Sprite" type="Sprite" parent="."] +visible = false +position = Vector2( 639.5, 359 ) +scale = Vector2( 0.652551, 0.718 ) +texture = ExtResource( 3 ) +normal_map = SubResource( 2 ) + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +editor/display_folded = true +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 1280.0 +margin_bottom = 720.0 +rect_clip_content = false +theme = SubResource( 8 ) +scroll_horizontal_enabled = false + +[node name="VBoxContainer" type="PanelContainer" parent="ScrollContainer"] +margin_right = 1280.0 +margin_bottom = 2100.0 +rect_min_size = Vector2( 1280, 2100 ) +custom_styles/panel = SubResource( 9 ) + +[node name="Kayu 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, -200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Sprite2" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite3" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite4" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite5" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Baris 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 0 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 2" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Tools" type="Node2D" parent="."] +editor/display_folded = true +script = ExtResource( 21 ) + +[node name="makanan" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1176.0 +margin_top = 127.0 +margin_right = 1265.0 +margin_bottom = 171.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="makan" type="AnimatedSprite" parent="Tools/makanan"] +position = Vector2( 44, 24 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 12 ) +animation = "idle" + +[node name="Air" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1193.0 +margin_top = 309.0 +margin_right = 1244.0 +margin_bottom = 395.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="air" type="AnimatedSprite" parent="Tools/Air"] +position = Vector2( 26, 42 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 13 ) +animation = "idle" + +[node name="vaksin" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1185.0 +margin_top = 516.0 +margin_right = 1252.0 +margin_bottom = 583.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="Vaksin" type="AnimatedSprite" parent="Tools/vaksin"] +position = Vector2( 34, 34 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 14 ) +animation = "idle" + +[node name="CuacaTimer" type="Timer" parent="."] +wait_time = 20.0 +autostart = true + +[node name="MakananTimer" type="Timer" parent="."] +one_shot = true + +[node name="MinumanTimer" type="Timer" parent="."] +one_shot = true + +[node name="VaksinTimer" type="Timer" parent="."] +one_shot = true + +[node name="PauseMenu" parent="." instance=ExtResource( 229 )] +visible = false + +[node name="HUD" parent="." instance=ExtResource( 230 )] + +[node name="GameOver" parent="." instance=ExtResource( 231 )] +visible = false + +[node name="Win" parent="." instance=ExtResource( 232 )] +visible = false +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam2" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam3" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam4" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam2" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam3" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam4" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_BL1_toggled"] +[connection signal="pressed" from="Tools/makanan" to="Tools" method="_on_makanan_pressed"] +[connection signal="pressed" from="Tools/Air" to="Tools" method="_on_air_pressed"] +[connection signal="pressed" from="Tools/vaksin" to="Tools" method="_on_vaksin_pressed"] +[connection signal="timeout" from="CuacaTimer" to="." method="_on_CuacaTimer_timeout"] +[connection signal="timeout" from="MakananTimer" to="." method="_on_MakananTimer_timeout"] +[connection signal="timeout" from="MinumanTimer" to="." method="_on_MinumanTimer_timeout"] +[connection signal="timeout" from="VaksinTimer" to="." method="_on_VaksinTimer_timeout"] diff --git a/Level 5.gd b/Level 5.gd new file mode 100644 index 0000000..92eaaed --- /dev/null +++ b/Level 5.gd @@ -0,0 +1,90 @@ +extends Control + +var cuaca + +func _ready(): + GlobalVar.makan = 5 + GlobalVar.minum = 5 + GlobalVar.vaks = 5 + GlobalVar.targetLevel = 5 + GlobalVar.currentLevel = 5 + $Win.hide() + $GameOver.hide() + $PauseMenu.hide() + $ScrollContainer.get_h_scrollbar().hide() + + GlobalVar.hidup = 0 + GlobalVar.mati = 0 + if GlobalVar.targetLevel != 1: + get_tree().paused = false + GlobalVar.time = 60.0 + cuaca = "panas" + +func _process(delta): + GlobalVar.time -= delta + if GlobalVar.time <= 1: + get_tree().paused = true + GlobalVar.currentLevel = 5 + GlobalVar.targetLevel += 1 + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + GlobalVar.level6 = true + $Win.show() + + GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati + if GlobalVar.hidup <= get_tree().get_nodes_in_group("chickens").size()/2: + get_tree().paused = true + print("Game Over") + $GameOver.show() + + if get_tree().paused: + $HUD.hide() + else: + $HUD.show() + + +func randomly(inputan): + return inputan[randi() % inputan.size()] + +func _on_CuacaTimer_timeout(): + randomize() + var x = randomly([0,1]) + if x == 0: + GlobalVar.cuaca = "Panas" + else: + GlobalVar.cuaca = "Hujan" + get_node("/root/Level 5/Background").play(GlobalVar.cuaca) + var t = rand_range(0,100) + get_node("/root/Level 5/CuacaTimer").start(t) + +func _on_SakitTimer_ready(): + pass # Replace with function body. + +func _on_MakananTimer_timeout(): + GlobalVar.makan = 5 + get_node("/root/Level 5/Tools/makanan/makan").play("idle") + pass # Replace with function body. + +func _on_MinumanTimer_timeout(): + GlobalVar.minum = 5 + get_node("/root/Level 5/Tools/Air/air").play("idle") + pass # Replace with function body. + +func _on_VaksinTimer_timeout(): + GlobalVar.vaks = 5 + get_node("/root/Level 5/Tools/vaksin/Vaksin").play("idle") + pass # Replace with function body. + +func _on_PauseButton_pressed(): + $PauseMenu.show() + get_tree().paused = true + +func _on_Continue_pressed(): + $PauseMenu.hide() + get_tree().paused = false + +func _on_Exit_pressed(): + get_tree().paused = false + get_tree().change_scene("MainMenu.tscn") diff --git a/Level 5.tscn b/Level 5.tscn new file mode 100644 index 0000000..0aa7d36 --- /dev/null +++ b/Level 5.tscn @@ -0,0 +1,1132 @@ +[gd_scene load_steps=247 format=2] + +[ext_resource path="res://Level 5.gd" type="Script" id=1] +[ext_resource path="res://Assets/Background_hujan.png" type="Texture" id=2] +[ext_resource path="res://Assets/Background_vf.png" type="Texture" id=3] +[ext_resource path="res://Assets/Kayu AS.png" type="Texture" id=4] +[ext_resource path="res://ayam5.gd" type="Script" id=5] +[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=6] +[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=7] +[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=8] +[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=9] +[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=10] +[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=11] +[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=12] +[ext_resource path="res://Assets/Ayam Sakit.png" type="Texture" id=13] +[ext_resource path="res://Assets/belakang.png" type="Texture" id=14] +[ext_resource path="res://Assets/atas.png" type="Texture" id=15] +[ext_resource path="res://Assets/tengah.png" type="Texture" id=16] +[ext_resource path="res://Assets/fan_blue_00.png" type="Texture" id=17] +[ext_resource path="res://Assets/fan_blue_01.png" type="Texture" id=18] +[ext_resource path="res://Assets/fan_blue_02.png" type="Texture" id=19] +[ext_resource path="res://Assets/LAMPP.png" type="Texture" id=20] +[ext_resource path="res://Tools.gd" type="Script" id=21] +[ext_resource path="res://Assets/Cooldown/Makanan.png" type="Texture" id=22] +[ext_resource path="res://Assets/Cooldown/Makanan1.png" type="Texture" id=23] +[ext_resource path="res://Assets/Cooldown/Makanan2.png" type="Texture" id=24] +[ext_resource path="res://Assets/Cooldown/Makanan3.png" type="Texture" id=25] +[ext_resource path="res://Assets/Cooldown/Makanan4.png" type="Texture" id=26] +[ext_resource path="res://Assets/Cooldown/Makanan5.png" type="Texture" id=27] +[ext_resource path="res://Assets/Cooldown/Makanan6.png" type="Texture" id=28] +[ext_resource path="res://Assets/Cooldown/Makanan7.png" type="Texture" id=29] +[ext_resource path="res://Assets/Cooldown/Makanan8.png" type="Texture" id=30] +[ext_resource path="res://Assets/Cooldown/Makanan9.png" type="Texture" id=31] +[ext_resource path="res://Assets/Cooldown/Makanan10.png" type="Texture" id=32] +[ext_resource path="res://Assets/Cooldown/Makanan11.png" type="Texture" id=33] +[ext_resource path="res://Assets/Cooldown/Makanan12.png" type="Texture" id=34] +[ext_resource path="res://Assets/Cooldown/Makanan13.png" type="Texture" id=35] +[ext_resource path="res://Assets/Cooldown/Makanan14.png" type="Texture" id=36] +[ext_resource path="res://Assets/Cooldown/Makanan15.png" type="Texture" id=37] +[ext_resource path="res://Assets/Cooldown/Makanan16.png" type="Texture" id=38] +[ext_resource path="res://Assets/Cooldown/Makanan17.png" type="Texture" id=39] +[ext_resource path="res://Assets/Cooldown/Makanan18.png" type="Texture" id=40] +[ext_resource path="res://Assets/Cooldown/Makanan19.png" type="Texture" id=41] +[ext_resource path="res://Assets/Cooldown/Makanan20.png" type="Texture" id=42] +[ext_resource path="res://Assets/Cooldown/Makanan21.png" type="Texture" id=43] +[ext_resource path="res://Assets/Cooldown/Makanan22.png" type="Texture" id=44] +[ext_resource path="res://Assets/Cooldown/Makanan23.png" type="Texture" id=45] +[ext_resource path="res://Assets/Cooldown/Makanan24.png" type="Texture" id=46] +[ext_resource path="res://Assets/Cooldown/Makanan25.png" type="Texture" id=47] +[ext_resource path="res://Assets/Cooldown/Makanan26.png" type="Texture" id=48] +[ext_resource path="res://Assets/Cooldown/Makanan27.png" type="Texture" id=49] +[ext_resource path="res://Assets/Cooldown/Makanan28.png" type="Texture" id=50] +[ext_resource path="res://Assets/Cooldown/Makanan29.png" type="Texture" id=51] +[ext_resource path="res://Assets/Cooldown/Makanan30.png" type="Texture" id=52] +[ext_resource path="res://Assets/Cooldown/Makanan31.png" type="Texture" id=53] +[ext_resource path="res://Assets/Cooldown/Makanan32.png" type="Texture" id=54] +[ext_resource path="res://Assets/Cooldown/Makanan33.png" type="Texture" id=55] +[ext_resource path="res://Assets/Cooldown/Makanan34.png" type="Texture" id=56] +[ext_resource path="res://Assets/Cooldown/Makanan35.png" type="Texture" id=57] +[ext_resource path="res://Assets/Cooldown/Makanan36.png" type="Texture" id=58] +[ext_resource path="res://Assets/Cooldown/Makanan37.png" type="Texture" id=59] +[ext_resource path="res://Assets/Cooldown/Makanan38.png" type="Texture" id=60] +[ext_resource path="res://Assets/Cooldown/Makanan39.png" type="Texture" id=61] +[ext_resource path="res://Assets/Cooldown/Makanan40.png" type="Texture" id=62] +[ext_resource path="res://Assets/Cooldown/Makanan41.png" type="Texture" id=63] +[ext_resource path="res://Assets/Cooldown/Makanan42.png" type="Texture" id=64] +[ext_resource path="res://Assets/Cooldown/Makanan43.png" type="Texture" id=65] +[ext_resource path="res://Assets/Cooldown/Makanan44.png" type="Texture" id=66] +[ext_resource path="res://Assets/Cooldown/Makanan45.png" type="Texture" id=67] +[ext_resource path="res://Assets/Cooldown/Makanan46.png" type="Texture" id=68] +[ext_resource path="res://Assets/Cooldown/Makanan47.png" type="Texture" id=69] +[ext_resource path="res://Assets/Cooldown/Makanan48.png" type="Texture" id=70] +[ext_resource path="res://Assets/Cooldown/Makanan49.png" type="Texture" id=71] +[ext_resource path="res://Assets/Cooldown/Makanan50.png" type="Texture" id=72] +[ext_resource path="res://Assets/Cooldown/Makanan51.png" type="Texture" id=73] +[ext_resource path="res://Assets/Cooldown/Makanan52.png" type="Texture" id=74] +[ext_resource path="res://Assets/Cooldown/Makanan53.png" type="Texture" id=75] +[ext_resource path="res://Assets/Cooldown/Makanan54.png" type="Texture" id=76] +[ext_resource path="res://Assets/Cooldown/Makanan55.png" type="Texture" id=77] +[ext_resource path="res://Assets/Cooldown/Makanan56.png" type="Texture" id=78] +[ext_resource path="res://Assets/Cooldown/Makanan57.png" type="Texture" id=79] +[ext_resource path="res://Assets/Cooldown/Makanan58.png" type="Texture" id=80] +[ext_resource path="res://Assets/Cooldown/Makanan59.png" type="Texture" id=81] +[ext_resource path="res://Assets/Cooldown/Makanan60.png" type="Texture" id=82] +[ext_resource path="res://Assets/Cooldown/Makanan61.png" type="Texture" id=83] +[ext_resource path="res://Assets/Cooldown/Makanan62.png" type="Texture" id=84] +[ext_resource path="res://Assets/Cooldown/Makanan63.png" type="Texture" id=85] +[ext_resource path="res://Assets/Cooldown/Makanan64.png" type="Texture" id=86] +[ext_resource path="res://Assets/Cooldown/Makanan65.png" type="Texture" id=87] +[ext_resource path="res://Assets/Cooldown/Makanan66.png" type="Texture" id=88] +[ext_resource path="res://Assets/Cooldown/Makanan67.png" type="Texture" id=89] +[ext_resource path="res://Assets/Cooldown/Makanan68.png" type="Texture" id=90] +[ext_resource path="res://Assets/Cooldown/Water.png" type="Texture" id=91] +[ext_resource path="res://Assets/Cooldown/Water1.png" type="Texture" id=92] +[ext_resource path="res://Assets/Cooldown/Water2.png" type="Texture" id=93] +[ext_resource path="res://Assets/Cooldown/Water3.png" type="Texture" id=94] +[ext_resource path="res://Assets/Cooldown/Water4.png" type="Texture" id=95] +[ext_resource path="res://Assets/Cooldown/Water5.png" type="Texture" id=96] +[ext_resource path="res://Assets/Cooldown/Water6.png" type="Texture" id=97] +[ext_resource path="res://Assets/Cooldown/Water7.png" type="Texture" id=98] +[ext_resource path="res://Assets/Cooldown/Water8.png" type="Texture" id=99] +[ext_resource path="res://Assets/Cooldown/Water9.png" type="Texture" id=100] +[ext_resource path="res://Assets/Cooldown/Water10.png" type="Texture" id=101] +[ext_resource path="res://Assets/Cooldown/Water11.png" type="Texture" id=102] +[ext_resource path="res://Assets/Cooldown/Water12.png" type="Texture" id=103] +[ext_resource path="res://Assets/Cooldown/Water13.png" type="Texture" id=104] +[ext_resource path="res://Assets/Cooldown/Water14.png" type="Texture" id=105] +[ext_resource path="res://Assets/Cooldown/Water15.png" type="Texture" id=106] +[ext_resource path="res://Assets/Cooldown/Water16.png" type="Texture" id=107] +[ext_resource path="res://Assets/Cooldown/Water17.png" type="Texture" id=108] +[ext_resource path="res://Assets/Cooldown/Water18.png" type="Texture" id=109] +[ext_resource path="res://Assets/Cooldown/Water19.png" type="Texture" id=110] +[ext_resource path="res://Assets/Cooldown/Water20.png" type="Texture" id=111] +[ext_resource path="res://Assets/Cooldown/Water21.png" type="Texture" id=112] +[ext_resource path="res://Assets/Cooldown/Water22.png" type="Texture" id=113] +[ext_resource path="res://Assets/Cooldown/Water23.png" type="Texture" id=114] +[ext_resource path="res://Assets/Cooldown/Water24.png" type="Texture" id=115] +[ext_resource path="res://Assets/Cooldown/Water25.png" type="Texture" id=116] +[ext_resource path="res://Assets/Cooldown/Water26.png" type="Texture" id=117] +[ext_resource path="res://Assets/Cooldown/Water27.png" type="Texture" id=118] +[ext_resource path="res://Assets/Cooldown/Water28.png" type="Texture" id=119] +[ext_resource path="res://Assets/Cooldown/Water29.png" type="Texture" id=120] +[ext_resource path="res://Assets/Cooldown/Water30.png" type="Texture" id=121] +[ext_resource path="res://Assets/Cooldown/Water31.png" type="Texture" id=122] +[ext_resource path="res://Assets/Cooldown/Water32.png" type="Texture" id=123] +[ext_resource path="res://Assets/Cooldown/Water33.png" type="Texture" id=124] +[ext_resource path="res://Assets/Cooldown/Water34.png" type="Texture" id=125] +[ext_resource path="res://Assets/Cooldown/Water35.png" type="Texture" id=126] +[ext_resource path="res://Assets/Cooldown/Water36.png" type="Texture" id=127] +[ext_resource path="res://Assets/Cooldown/Water37.png" type="Texture" id=128] +[ext_resource path="res://Assets/Cooldown/Water38.png" type="Texture" id=129] +[ext_resource path="res://Assets/Cooldown/Water39.png" type="Texture" id=130] +[ext_resource path="res://Assets/Cooldown/Water40.png" type="Texture" id=131] +[ext_resource path="res://Assets/Cooldown/Water41.png" type="Texture" id=132] +[ext_resource path="res://Assets/Cooldown/Water42.png" type="Texture" id=133] +[ext_resource path="res://Assets/Cooldown/Water43.png" type="Texture" id=134] +[ext_resource path="res://Assets/Cooldown/Water44.png" type="Texture" id=135] +[ext_resource path="res://Assets/Cooldown/Water45.png" type="Texture" id=136] +[ext_resource path="res://Assets/Cooldown/Water46.png" type="Texture" id=137] +[ext_resource path="res://Assets/Cooldown/Water47.png" type="Texture" id=138] +[ext_resource path="res://Assets/Cooldown/Water48.png" type="Texture" id=139] +[ext_resource path="res://Assets/Cooldown/Water49.png" type="Texture" id=140] +[ext_resource path="res://Assets/Cooldown/Water50.png" type="Texture" id=141] +[ext_resource path="res://Assets/Cooldown/Water51.png" type="Texture" id=142] +[ext_resource path="res://Assets/Cooldown/Water52.png" type="Texture" id=143] +[ext_resource path="res://Assets/Cooldown/Water53.png" type="Texture" id=144] +[ext_resource path="res://Assets/Cooldown/Water54.png" type="Texture" id=145] +[ext_resource path="res://Assets/Cooldown/Water55.png" type="Texture" id=146] +[ext_resource path="res://Assets/Cooldown/Water56.png" type="Texture" id=147] +[ext_resource path="res://Assets/Cooldown/Water57.png" type="Texture" id=148] +[ext_resource path="res://Assets/Cooldown/Water58.png" type="Texture" id=149] +[ext_resource path="res://Assets/Cooldown/Water59.png" type="Texture" id=150] +[ext_resource path="res://Assets/Cooldown/Water60.png" type="Texture" id=151] +[ext_resource path="res://Assets/Cooldown/Water61.png" type="Texture" id=152] +[ext_resource path="res://Assets/Cooldown/Water62.png" type="Texture" id=153] +[ext_resource path="res://Assets/Cooldown/Water63.png" type="Texture" id=154] +[ext_resource path="res://Assets/Cooldown/Water64.png" type="Texture" id=155] +[ext_resource path="res://Assets/Cooldown/Water65.png" type="Texture" id=156] +[ext_resource path="res://Assets/Cooldown/Water66.png" type="Texture" id=157] +[ext_resource path="res://Assets/Cooldown/Water67.png" type="Texture" id=158] +[ext_resource path="res://Assets/Cooldown/Water68.png" type="Texture" id=159] +[ext_resource path="res://Assets/Cooldown/Vaksin.png" type="Texture" id=160] +[ext_resource path="res://Assets/Cooldown/Vaksin1.png" type="Texture" id=161] +[ext_resource path="res://Assets/Cooldown/Vaksin2.png" type="Texture" id=162] +[ext_resource path="res://Assets/Cooldown/Vaksin3.png" type="Texture" id=163] +[ext_resource path="res://Assets/Cooldown/Vaksin4.png" type="Texture" id=164] +[ext_resource path="res://Assets/Cooldown/Vaksin5.png" type="Texture" id=165] +[ext_resource path="res://Assets/Cooldown/Vaksin6.png" type="Texture" id=166] +[ext_resource path="res://Assets/Cooldown/Vaksin7.png" type="Texture" id=167] +[ext_resource path="res://Assets/Cooldown/Vaksin8.png" type="Texture" id=168] +[ext_resource path="res://Assets/Cooldown/Vaksin9.png" type="Texture" id=169] +[ext_resource path="res://Assets/Cooldown/Vaksin10.png" type="Texture" id=170] +[ext_resource path="res://Assets/Cooldown/Vaksin11.png" type="Texture" id=171] +[ext_resource path="res://Assets/Cooldown/Vaksin12.png" type="Texture" id=172] +[ext_resource path="res://Assets/Cooldown/Vaksin13.png" type="Texture" id=173] +[ext_resource path="res://Assets/Cooldown/Vaksin14.png" type="Texture" id=174] +[ext_resource path="res://Assets/Cooldown/Vaksin15.png" type="Texture" id=175] +[ext_resource path="res://Assets/Cooldown/Vaksin16.png" type="Texture" id=176] +[ext_resource path="res://Assets/Cooldown/Vaksin17.png" type="Texture" id=177] +[ext_resource path="res://Assets/Cooldown/Vaksin18.png" type="Texture" id=178] +[ext_resource path="res://Assets/Cooldown/Vaksin19.png" type="Texture" id=179] +[ext_resource path="res://Assets/Cooldown/Vaksin20.png" type="Texture" id=180] +[ext_resource path="res://Assets/Cooldown/Vaksin21.png" type="Texture" id=181] +[ext_resource path="res://Assets/Cooldown/Vaksin22.png" type="Texture" id=182] +[ext_resource path="res://Assets/Cooldown/Vaksin23.png" type="Texture" id=183] +[ext_resource path="res://Assets/Cooldown/Vaksin24.png" type="Texture" id=184] +[ext_resource path="res://Assets/Cooldown/Vaksin25.png" type="Texture" id=185] +[ext_resource path="res://Assets/Cooldown/Vaksin26.png" type="Texture" id=186] +[ext_resource path="res://Assets/Cooldown/Vaksin27.png" type="Texture" id=187] +[ext_resource path="res://Assets/Cooldown/Vaksin28.png" type="Texture" id=188] +[ext_resource path="res://Assets/Cooldown/Vaksin29.png" type="Texture" id=189] +[ext_resource path="res://Assets/Cooldown/Vaksin30.png" type="Texture" id=190] +[ext_resource path="res://Assets/Cooldown/Vaksin31.png" type="Texture" id=191] +[ext_resource path="res://Assets/Cooldown/Vaksin32.png" type="Texture" id=192] +[ext_resource path="res://Assets/Cooldown/Vaksin33.png" type="Texture" id=193] +[ext_resource path="res://Assets/Cooldown/Vaksin34.png" type="Texture" id=194] +[ext_resource path="res://Assets/Cooldown/Vaksin35.png" type="Texture" id=195] +[ext_resource path="res://Assets/Cooldown/Vaksin36.png" type="Texture" id=196] +[ext_resource path="res://Assets/Cooldown/Vaksin37.png" type="Texture" id=197] +[ext_resource path="res://Assets/Cooldown/Vaksin38.png" type="Texture" id=198] +[ext_resource path="res://Assets/Cooldown/Vaksin39.png" type="Texture" id=199] +[ext_resource path="res://Assets/Cooldown/Vaksin40.png" type="Texture" id=200] +[ext_resource path="res://Assets/Cooldown/Vaksin41.png" type="Texture" id=201] +[ext_resource path="res://Assets/Cooldown/Vaksin42.png" type="Texture" id=202] +[ext_resource path="res://Assets/Cooldown/Vaksin43.png" type="Texture" id=203] +[ext_resource path="res://Assets/Cooldown/Vaksin44.png" type="Texture" id=204] +[ext_resource path="res://Assets/Cooldown/Vaksin45.png" type="Texture" id=205] +[ext_resource path="res://Assets/Cooldown/Vaksin46.png" type="Texture" id=206] +[ext_resource path="res://Assets/Cooldown/Vaksin47.png" type="Texture" id=207] +[ext_resource path="res://Assets/Cooldown/Vaksin48.png" type="Texture" id=208] +[ext_resource path="res://Assets/Cooldown/Vaksin49.png" type="Texture" id=209] +[ext_resource path="res://Assets/Cooldown/Vaksin50.png" type="Texture" id=210] +[ext_resource path="res://Assets/Cooldown/Vaksin51.png" type="Texture" id=211] +[ext_resource path="res://Assets/Cooldown/Vaksin52.png" type="Texture" id=212] +[ext_resource path="res://Assets/Cooldown/Vaksin53.png" type="Texture" id=213] +[ext_resource path="res://Assets/Cooldown/Vaksin54.png" type="Texture" id=214] +[ext_resource path="res://Assets/Cooldown/Vaksin55.png" type="Texture" id=215] +[ext_resource path="res://Assets/Cooldown/Vaksin56.png" type="Texture" id=216] +[ext_resource path="res://Assets/Cooldown/Vaksin57.png" type="Texture" id=217] +[ext_resource path="res://Assets/Cooldown/Vaksin58.png" type="Texture" id=218] +[ext_resource path="res://Assets/Cooldown/Vaksin59.png" type="Texture" id=219] +[ext_resource path="res://Assets/Cooldown/Vaksin60.png" type="Texture" id=220] +[ext_resource path="res://Assets/Cooldown/Vaksin61.png" type="Texture" id=221] +[ext_resource path="res://Assets/Cooldown/Vaksin62.png" type="Texture" id=222] +[ext_resource path="res://Assets/Cooldown/Vaksin63.png" type="Texture" id=223] +[ext_resource path="res://Assets/Cooldown/Vaksin64.png" type="Texture" id=224] +[ext_resource path="res://Assets/Cooldown/Vaksin65.png" type="Texture" id=225] +[ext_resource path="res://Assets/Cooldown/Vaksin66.png" type="Texture" id=226] +[ext_resource path="res://Assets/Cooldown/Vaksin67.png" type="Texture" id=227] +[ext_resource path="res://Assets/Cooldown/Vaksin68.png" type="Texture" id=228] +[ext_resource path="res://PauseMenu.tscn" type="PackedScene" id=229] +[ext_resource path="res://HUD.tscn" type="PackedScene" id=230] +[ext_resource path="res://GameOver.tscn" type="PackedScene" id=231] +[ext_resource path="res://Win.tscn" type="PackedScene" id=232] + +[sub_resource type="SpriteFrames" id=1] +animations = [ { +"frames": [ ExtResource( 2 ) ], +"loop": true, +"name": "Hujan", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ) ], +"loop": true, +"name": "Panas", +"speed": 5.0 +} ] + +[sub_resource type="AnimatedTexture" id=2] + +[sub_resource type="StyleBoxEmpty" id=3] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxEmpty" id=6] + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="Theme" id=8] +VScrollBar/icons/decrement = null +VScrollBar/icons/decrement_highlight = null +VScrollBar/icons/increment = null +VScrollBar/icons/increment_highlight = null +VScrollBar/styles/grabber = SubResource( 3 ) +VScrollBar/styles/grabber_highlight = SubResource( 4 ) +VScrollBar/styles/grabber_pressed = SubResource( 5 ) +VScrollBar/styles/scroll = SubResource( 6 ) +VScrollBar/styles/scroll_focus = SubResource( 7 ) + +[sub_resource type="StyleBoxFlat" id=9] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) + +[sub_resource type="SpriteFrames" id=10] +animations = [ { +"frames": [ ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 7 ) ], +"loop": true, +"name": "Marah", +"speed": 3.0 +}, { +"frames": [ ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 9 ) ], +"loop": true, +"name": "Normal", +"speed": 3.0 +}, { +"frames": [ ExtResource( 10 ) ], +"loop": true, +"name": "Mati", +"speed": 1.0 +}, { +"frames": [ ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 12 ) ], +"loop": true, +"name": "Senang", +"speed": 3.0 +}, { +"frames": [ ExtResource( 13 ) ], +"loop": true, +"name": "Sakit", +"speed": 1.0 +} ] + +[sub_resource type="SpriteFrames" id=11] +animations = [ { +"frames": [ ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ) ], +"loop": true, +"name": "default", +"speed": 40.0 +} ] + +[sub_resource type="SpriteFrames" id=12] +animations = [ { +"frames": [ ExtResource( 22 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ), ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ), ExtResource( 57 ), ExtResource( 58 ), ExtResource( 59 ), ExtResource( 60 ), ExtResource( 61 ), ExtResource( 62 ), ExtResource( 63 ), ExtResource( 64 ), ExtResource( 65 ), ExtResource( 66 ), ExtResource( 67 ), ExtResource( 68 ), ExtResource( 69 ), ExtResource( 70 ), ExtResource( 71 ), ExtResource( 72 ), ExtResource( 73 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 76 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 79 ), ExtResource( 80 ), ExtResource( 81 ), ExtResource( 82 ), ExtResource( 83 ), ExtResource( 84 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 88 ), ExtResource( 89 ), ExtResource( 90 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=13] +animations = [ { +"frames": [ ExtResource( 91 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 92 ), ExtResource( 93 ), ExtResource( 94 ), ExtResource( 95 ), ExtResource( 96 ), ExtResource( 97 ), ExtResource( 98 ), ExtResource( 99 ), ExtResource( 100 ), ExtResource( 101 ), ExtResource( 102 ), ExtResource( 103 ), ExtResource( 104 ), ExtResource( 105 ), ExtResource( 106 ), ExtResource( 107 ), ExtResource( 108 ), ExtResource( 109 ), ExtResource( 110 ), ExtResource( 111 ), ExtResource( 112 ), ExtResource( 113 ), ExtResource( 114 ), ExtResource( 115 ), ExtResource( 116 ), ExtResource( 117 ), ExtResource( 118 ), ExtResource( 119 ), ExtResource( 120 ), ExtResource( 121 ), ExtResource( 122 ), ExtResource( 123 ), ExtResource( 124 ), ExtResource( 125 ), ExtResource( 126 ), ExtResource( 127 ), ExtResource( 128 ), ExtResource( 129 ), ExtResource( 130 ), ExtResource( 131 ), ExtResource( 132 ), ExtResource( 133 ), ExtResource( 134 ), ExtResource( 135 ), ExtResource( 136 ), ExtResource( 137 ), ExtResource( 138 ), ExtResource( 139 ), ExtResource( 140 ), ExtResource( 141 ), ExtResource( 142 ), ExtResource( 143 ), ExtResource( 144 ), ExtResource( 145 ), ExtResource( 146 ), ExtResource( 147 ), ExtResource( 148 ), ExtResource( 149 ), ExtResource( 150 ), ExtResource( 151 ), ExtResource( 152 ), ExtResource( 153 ), ExtResource( 154 ), ExtResource( 155 ), ExtResource( 156 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 159 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=14] +animations = [ { +"frames": [ ExtResource( 160 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 161 ), ExtResource( 162 ), ExtResource( 163 ), ExtResource( 164 ), ExtResource( 165 ), ExtResource( 166 ), ExtResource( 167 ), ExtResource( 168 ), ExtResource( 169 ), ExtResource( 170 ), ExtResource( 171 ), ExtResource( 172 ), ExtResource( 173 ), ExtResource( 174 ), ExtResource( 175 ), ExtResource( 176 ), ExtResource( 177 ), ExtResource( 178 ), ExtResource( 179 ), ExtResource( 180 ), ExtResource( 181 ), ExtResource( 182 ), ExtResource( 183 ), ExtResource( 184 ), ExtResource( 185 ), ExtResource( 186 ), ExtResource( 187 ), ExtResource( 188 ), ExtResource( 189 ), ExtResource( 190 ), ExtResource( 191 ), ExtResource( 192 ), ExtResource( 193 ), ExtResource( 194 ), ExtResource( 195 ), ExtResource( 196 ), ExtResource( 197 ), ExtResource( 198 ), ExtResource( 199 ), ExtResource( 200 ), ExtResource( 201 ), ExtResource( 202 ), ExtResource( 203 ), ExtResource( 204 ), ExtResource( 205 ), ExtResource( 206 ), ExtResource( 207 ), ExtResource( 208 ), ExtResource( 209 ), ExtResource( 210 ), ExtResource( 211 ), ExtResource( 212 ), ExtResource( 213 ), ExtResource( 214 ), ExtResource( 215 ), ExtResource( 216 ), ExtResource( 217 ), ExtResource( 218 ), ExtResource( 219 ), ExtResource( 220 ), ExtResource( 221 ), ExtResource( 222 ), ExtResource( 223 ), ExtResource( 224 ), ExtResource( 225 ), ExtResource( 226 ), ExtResource( 227 ), ExtResource( 228 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[node name="Level 5" type="Control"] +pause_mode = 1 +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) + +[node name="Background" type="AnimatedSprite" parent="."] +position = Vector2( 639, 360 ) +scale = Vector2( 0.652, 0.719 ) +frames = SubResource( 1 ) +animation = "Panas" +playing = true + +[node name="Sprite" type="Sprite" parent="."] +visible = false +position = Vector2( 639.5, 359 ) +scale = Vector2( 0.652551, 0.718 ) +texture = ExtResource( 3 ) +normal_map = SubResource( 2 ) + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 1280.0 +margin_bottom = 720.0 +rect_clip_content = false +theme = SubResource( 8 ) +scroll_horizontal_enabled = false + +[node name="VBoxContainer" type="PanelContainer" parent="ScrollContainer"] +margin_right = 1280.0 +margin_bottom = 2100.0 +rect_min_size = Vector2( 1280, 2100 ) +custom_styles/panel = SubResource( 9 ) + +[node name="Kayu 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, -200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Sprite2" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite3" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite4" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite5" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Baris 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 0 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 2" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 3" type="Node2D" parent="ScrollContainer/VBoxContainer"] +position = Vector2( 15, 400 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Tools" type="Node2D" parent="."] +editor/display_folded = true +script = ExtResource( 21 ) + +[node name="makanan" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1176.0 +margin_top = 127.0 +margin_right = 1265.0 +margin_bottom = 171.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="makan" type="AnimatedSprite" parent="Tools/makanan"] +position = Vector2( 44, 24 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 12 ) +animation = "idle" + +[node name="Air" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1193.0 +margin_top = 309.0 +margin_right = 1244.0 +margin_bottom = 395.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="air" type="AnimatedSprite" parent="Tools/Air"] +position = Vector2( 26, 42 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 13 ) +animation = "idle" + +[node name="vaksin" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1185.0 +margin_top = 516.0 +margin_right = 1252.0 +margin_bottom = 583.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="Vaksin" type="AnimatedSprite" parent="Tools/vaksin"] +position = Vector2( 34, 34 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 14 ) +animation = "idle" + +[node name="CuacaTimer" type="Timer" parent="."] +wait_time = 20.0 +autostart = true + +[node name="MakananTimer" type="Timer" parent="."] +one_shot = true + +[node name="MinumanTimer" type="Timer" parent="."] +one_shot = true + +[node name="VaksinTimer" type="Timer" parent="."] +one_shot = true + +[node name="PauseMenu" parent="." instance=ExtResource( 229 )] +visible = false + +[node name="HUD" parent="." instance=ExtResource( 230 )] + +[node name="GameOver" parent="." instance=ExtResource( 231 )] +visible = false + +[node name="Win" parent="." instance=ExtResource( 232 )] +visible = false +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam2" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam3" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam4" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam2" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam3" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam4" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam2" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_BL1_toggled"] +[connection signal="pressed" from="Tools/makanan" to="Tools" method="_on_makanan_pressed"] +[connection signal="pressed" from="Tools/Air" to="Tools" method="_on_air_pressed"] +[connection signal="pressed" from="Tools/vaksin" to="Tools" method="_on_vaksin_pressed"] +[connection signal="timeout" from="CuacaTimer" to="." method="_on_CuacaTimer_timeout"] +[connection signal="timeout" from="MakananTimer" to="." method="_on_MakananTimer_timeout"] +[connection signal="timeout" from="MinumanTimer" to="." method="_on_MinumanTimer_timeout"] +[connection signal="timeout" from="VaksinTimer" to="." method="_on_VaksinTimer_timeout"] diff --git a/Level 6.gd b/Level 6.gd new file mode 100644 index 0000000..c8eddc3 --- /dev/null +++ b/Level 6.gd @@ -0,0 +1,87 @@ +extends Control + +var cuaca + +func _ready(): + GlobalVar.makan = 6 + GlobalVar.minum = 6 + GlobalVar.vaks = 6 + GlobalVar.targetLevel = 6 + GlobalVar.currentLevel = 6 + $Win.hide() + $GameOver.hide() + $PauseMenu.hide() + $ScrollContainer.get_h_scrollbar().hide() + + GlobalVar.hidup = 0 + GlobalVar.mati = 0 + if GlobalVar.targetLevel != 1: + get_tree().paused = false + GlobalVar.time = 60.0 + cuaca = "panas" + +func _process(delta): + GlobalVar.time -= delta + if GlobalVar.time <= 1: + get_tree().paused = true + GlobalVar.makanan = false + GlobalVar.minuman = false + GlobalVar.vaksin = false + Input.set_custom_mouse_cursor(null) + $Win.show() + + GlobalVar.hidup = get_tree().get_nodes_in_group("chickens").size() - GlobalVar.mati + if GlobalVar.hidup <= get_tree().get_nodes_in_group("chickens").size()/2: + get_tree().paused = true + print("Game Over") + $GameOver.show() + + if get_tree().paused: + $HUD.hide() + else: + $HUD.show() + + +func randomly(inputan): + return inputan[randi() % inputan.size()] + +func _on_CuacaTimer_timeout(): + randomize() + var x = randomly([0,1]) + if x == 0: + GlobalVar.cuaca = "Panas" + else: + GlobalVar.cuaca = "Hujan" + get_node("/root/Level 6/Background").play(GlobalVar.cuaca) + var t = rand_range(0,100) + get_node("/root/Level 6/CuacaTimer").start(t) + +func _on_SakitTimer_ready(): + pass # Replace with function body. + +func _on_MakananTimer_timeout(): + GlobalVar.makan = 6 + get_node("/root/Level 6/Tools/makanan/makan").play("idle") + pass # Replace with function body. + +func _on_MinumanTimer_timeout(): + GlobalVar.minum = 6 + get_node("/root/Level 6/Tools/Air/air").play("idle") + pass # Replace with function body. + +func _on_VaksinTimer_timeout(): + GlobalVar.vaks = 6 + get_node("/root/Level 6/Tools/vaksin/Vaksin").play("idle") + pass # Replace with function body. + +func _on_PauseButton_pressed(): + $PauseMenu.show() + get_tree().paused = true + +func _on_Continue_pressed(): + $PauseMenu.hide() + get_tree().paused = false + +func _on_Exit_pressed(): + get_tree().paused = false + get_tree().change_scene("MainMenu.tscn") diff --git a/Level 6.tscn b/Level 6.tscn new file mode 100644 index 0000000..a583f02 --- /dev/null +++ b/Level 6.tscn @@ -0,0 +1,1219 @@ +[gd_scene load_steps=247 format=2] + +[ext_resource path="res://Level 6.gd" type="Script" id=1] +[ext_resource path="res://Assets/Background_hujan.png" type="Texture" id=2] +[ext_resource path="res://Assets/Background_vf.png" type="Texture" id=3] +[ext_resource path="res://Assets/Kayu AS.png" type="Texture" id=4] +[ext_resource path="res://ayam6.gd" type="Script" id=5] +[ext_resource path="res://Assets/Ayam Marah Idle.png" type="Texture" id=6] +[ext_resource path="res://Assets/Ayam Marah Gerak.png" type="Texture" id=7] +[ext_resource path="res://Assets/Ayam Normal Idle.png" type="Texture" id=8] +[ext_resource path="res://Assets/Ayam Normal Gerak.png" type="Texture" id=9] +[ext_resource path="res://Assets/Ayam Mati.png" type="Texture" id=10] +[ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=11] +[ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=12] +[ext_resource path="res://Assets/Ayam Sakit.png" type="Texture" id=13] +[ext_resource path="res://Assets/belakang.png" type="Texture" id=14] +[ext_resource path="res://Assets/atas.png" type="Texture" id=15] +[ext_resource path="res://Assets/tengah.png" type="Texture" id=16] +[ext_resource path="res://Assets/fan_blue_00.png" type="Texture" id=17] +[ext_resource path="res://Assets/fan_blue_01.png" type="Texture" id=18] +[ext_resource path="res://Assets/fan_blue_02.png" type="Texture" id=19] +[ext_resource path="res://Assets/LAMPP.png" type="Texture" id=20] +[ext_resource path="res://Tools.gd" type="Script" id=21] +[ext_resource path="res://Assets/Cooldown/Makanan.png" type="Texture" id=22] +[ext_resource path="res://Assets/Cooldown/Makanan1.png" type="Texture" id=23] +[ext_resource path="res://Assets/Cooldown/Makanan2.png" type="Texture" id=24] +[ext_resource path="res://Assets/Cooldown/Makanan3.png" type="Texture" id=25] +[ext_resource path="res://Assets/Cooldown/Makanan4.png" type="Texture" id=26] +[ext_resource path="res://Assets/Cooldown/Makanan5.png" type="Texture" id=27] +[ext_resource path="res://Assets/Cooldown/Makanan6.png" type="Texture" id=28] +[ext_resource path="res://Assets/Cooldown/Makanan7.png" type="Texture" id=29] +[ext_resource path="res://Assets/Cooldown/Makanan8.png" type="Texture" id=30] +[ext_resource path="res://Assets/Cooldown/Makanan9.png" type="Texture" id=31] +[ext_resource path="res://Assets/Cooldown/Makanan10.png" type="Texture" id=32] +[ext_resource path="res://Assets/Cooldown/Makanan11.png" type="Texture" id=33] +[ext_resource path="res://Assets/Cooldown/Makanan12.png" type="Texture" id=34] +[ext_resource path="res://Assets/Cooldown/Makanan13.png" type="Texture" id=35] +[ext_resource path="res://Assets/Cooldown/Makanan14.png" type="Texture" id=36] +[ext_resource path="res://Assets/Cooldown/Makanan15.png" type="Texture" id=37] +[ext_resource path="res://Assets/Cooldown/Makanan16.png" type="Texture" id=38] +[ext_resource path="res://Assets/Cooldown/Makanan17.png" type="Texture" id=39] +[ext_resource path="res://Assets/Cooldown/Makanan18.png" type="Texture" id=40] +[ext_resource path="res://Assets/Cooldown/Makanan19.png" type="Texture" id=41] +[ext_resource path="res://Assets/Cooldown/Makanan20.png" type="Texture" id=42] +[ext_resource path="res://Assets/Cooldown/Makanan21.png" type="Texture" id=43] +[ext_resource path="res://Assets/Cooldown/Makanan22.png" type="Texture" id=44] +[ext_resource path="res://Assets/Cooldown/Makanan23.png" type="Texture" id=45] +[ext_resource path="res://Assets/Cooldown/Makanan24.png" type="Texture" id=46] +[ext_resource path="res://Assets/Cooldown/Makanan25.png" type="Texture" id=47] +[ext_resource path="res://Assets/Cooldown/Makanan26.png" type="Texture" id=48] +[ext_resource path="res://Assets/Cooldown/Makanan27.png" type="Texture" id=49] +[ext_resource path="res://Assets/Cooldown/Makanan28.png" type="Texture" id=50] +[ext_resource path="res://Assets/Cooldown/Makanan29.png" type="Texture" id=51] +[ext_resource path="res://Assets/Cooldown/Makanan30.png" type="Texture" id=52] +[ext_resource path="res://Assets/Cooldown/Makanan31.png" type="Texture" id=53] +[ext_resource path="res://Assets/Cooldown/Makanan32.png" type="Texture" id=54] +[ext_resource path="res://Assets/Cooldown/Makanan33.png" type="Texture" id=55] +[ext_resource path="res://Assets/Cooldown/Makanan34.png" type="Texture" id=56] +[ext_resource path="res://Assets/Cooldown/Makanan35.png" type="Texture" id=57] +[ext_resource path="res://Assets/Cooldown/Makanan36.png" type="Texture" id=58] +[ext_resource path="res://Assets/Cooldown/Makanan37.png" type="Texture" id=59] +[ext_resource path="res://Assets/Cooldown/Makanan38.png" type="Texture" id=60] +[ext_resource path="res://Assets/Cooldown/Makanan39.png" type="Texture" id=61] +[ext_resource path="res://Assets/Cooldown/Makanan40.png" type="Texture" id=62] +[ext_resource path="res://Assets/Cooldown/Makanan41.png" type="Texture" id=63] +[ext_resource path="res://Assets/Cooldown/Makanan42.png" type="Texture" id=64] +[ext_resource path="res://Assets/Cooldown/Makanan43.png" type="Texture" id=65] +[ext_resource path="res://Assets/Cooldown/Makanan44.png" type="Texture" id=66] +[ext_resource path="res://Assets/Cooldown/Makanan45.png" type="Texture" id=67] +[ext_resource path="res://Assets/Cooldown/Makanan46.png" type="Texture" id=68] +[ext_resource path="res://Assets/Cooldown/Makanan47.png" type="Texture" id=69] +[ext_resource path="res://Assets/Cooldown/Makanan48.png" type="Texture" id=70] +[ext_resource path="res://Assets/Cooldown/Makanan49.png" type="Texture" id=71] +[ext_resource path="res://Assets/Cooldown/Makanan50.png" type="Texture" id=72] +[ext_resource path="res://Assets/Cooldown/Makanan51.png" type="Texture" id=73] +[ext_resource path="res://Assets/Cooldown/Makanan52.png" type="Texture" id=74] +[ext_resource path="res://Assets/Cooldown/Makanan53.png" type="Texture" id=75] +[ext_resource path="res://Assets/Cooldown/Makanan54.png" type="Texture" id=76] +[ext_resource path="res://Assets/Cooldown/Makanan55.png" type="Texture" id=77] +[ext_resource path="res://Assets/Cooldown/Makanan56.png" type="Texture" id=78] +[ext_resource path="res://Assets/Cooldown/Makanan57.png" type="Texture" id=79] +[ext_resource path="res://Assets/Cooldown/Makanan58.png" type="Texture" id=80] +[ext_resource path="res://Assets/Cooldown/Makanan59.png" type="Texture" id=81] +[ext_resource path="res://Assets/Cooldown/Makanan60.png" type="Texture" id=82] +[ext_resource path="res://Assets/Cooldown/Makanan61.png" type="Texture" id=83] +[ext_resource path="res://Assets/Cooldown/Makanan62.png" type="Texture" id=84] +[ext_resource path="res://Assets/Cooldown/Makanan63.png" type="Texture" id=85] +[ext_resource path="res://Assets/Cooldown/Makanan64.png" type="Texture" id=86] +[ext_resource path="res://Assets/Cooldown/Makanan65.png" type="Texture" id=87] +[ext_resource path="res://Assets/Cooldown/Makanan66.png" type="Texture" id=88] +[ext_resource path="res://Assets/Cooldown/Makanan67.png" type="Texture" id=89] +[ext_resource path="res://Assets/Cooldown/Makanan68.png" type="Texture" id=90] +[ext_resource path="res://Assets/Cooldown/Water.png" type="Texture" id=91] +[ext_resource path="res://Assets/Cooldown/Water1.png" type="Texture" id=92] +[ext_resource path="res://Assets/Cooldown/Water2.png" type="Texture" id=93] +[ext_resource path="res://Assets/Cooldown/Water3.png" type="Texture" id=94] +[ext_resource path="res://Assets/Cooldown/Water4.png" type="Texture" id=95] +[ext_resource path="res://Assets/Cooldown/Water5.png" type="Texture" id=96] +[ext_resource path="res://Assets/Cooldown/Water6.png" type="Texture" id=97] +[ext_resource path="res://Assets/Cooldown/Water7.png" type="Texture" id=98] +[ext_resource path="res://Assets/Cooldown/Water8.png" type="Texture" id=99] +[ext_resource path="res://Assets/Cooldown/Water9.png" type="Texture" id=100] +[ext_resource path="res://Assets/Cooldown/Water10.png" type="Texture" id=101] +[ext_resource path="res://Assets/Cooldown/Water11.png" type="Texture" id=102] +[ext_resource path="res://Assets/Cooldown/Water12.png" type="Texture" id=103] +[ext_resource path="res://Assets/Cooldown/Water13.png" type="Texture" id=104] +[ext_resource path="res://Assets/Cooldown/Water14.png" type="Texture" id=105] +[ext_resource path="res://Assets/Cooldown/Water15.png" type="Texture" id=106] +[ext_resource path="res://Assets/Cooldown/Water16.png" type="Texture" id=107] +[ext_resource path="res://Assets/Cooldown/Water17.png" type="Texture" id=108] +[ext_resource path="res://Assets/Cooldown/Water18.png" type="Texture" id=109] +[ext_resource path="res://Assets/Cooldown/Water19.png" type="Texture" id=110] +[ext_resource path="res://Assets/Cooldown/Water20.png" type="Texture" id=111] +[ext_resource path="res://Assets/Cooldown/Water21.png" type="Texture" id=112] +[ext_resource path="res://Assets/Cooldown/Water22.png" type="Texture" id=113] +[ext_resource path="res://Assets/Cooldown/Water23.png" type="Texture" id=114] +[ext_resource path="res://Assets/Cooldown/Water24.png" type="Texture" id=115] +[ext_resource path="res://Assets/Cooldown/Water25.png" type="Texture" id=116] +[ext_resource path="res://Assets/Cooldown/Water26.png" type="Texture" id=117] +[ext_resource path="res://Assets/Cooldown/Water27.png" type="Texture" id=118] +[ext_resource path="res://Assets/Cooldown/Water28.png" type="Texture" id=119] +[ext_resource path="res://Assets/Cooldown/Water29.png" type="Texture" id=120] +[ext_resource path="res://Assets/Cooldown/Water30.png" type="Texture" id=121] +[ext_resource path="res://Assets/Cooldown/Water31.png" type="Texture" id=122] +[ext_resource path="res://Assets/Cooldown/Water32.png" type="Texture" id=123] +[ext_resource path="res://Assets/Cooldown/Water33.png" type="Texture" id=124] +[ext_resource path="res://Assets/Cooldown/Water34.png" type="Texture" id=125] +[ext_resource path="res://Assets/Cooldown/Water35.png" type="Texture" id=126] +[ext_resource path="res://Assets/Cooldown/Water36.png" type="Texture" id=127] +[ext_resource path="res://Assets/Cooldown/Water37.png" type="Texture" id=128] +[ext_resource path="res://Assets/Cooldown/Water38.png" type="Texture" id=129] +[ext_resource path="res://Assets/Cooldown/Water39.png" type="Texture" id=130] +[ext_resource path="res://Assets/Cooldown/Water40.png" type="Texture" id=131] +[ext_resource path="res://Assets/Cooldown/Water41.png" type="Texture" id=132] +[ext_resource path="res://Assets/Cooldown/Water42.png" type="Texture" id=133] +[ext_resource path="res://Assets/Cooldown/Water43.png" type="Texture" id=134] +[ext_resource path="res://Assets/Cooldown/Water44.png" type="Texture" id=135] +[ext_resource path="res://Assets/Cooldown/Water45.png" type="Texture" id=136] +[ext_resource path="res://Assets/Cooldown/Water46.png" type="Texture" id=137] +[ext_resource path="res://Assets/Cooldown/Water47.png" type="Texture" id=138] +[ext_resource path="res://Assets/Cooldown/Water48.png" type="Texture" id=139] +[ext_resource path="res://Assets/Cooldown/Water49.png" type="Texture" id=140] +[ext_resource path="res://Assets/Cooldown/Water50.png" type="Texture" id=141] +[ext_resource path="res://Assets/Cooldown/Water51.png" type="Texture" id=142] +[ext_resource path="res://Assets/Cooldown/Water52.png" type="Texture" id=143] +[ext_resource path="res://Assets/Cooldown/Water53.png" type="Texture" id=144] +[ext_resource path="res://Assets/Cooldown/Water54.png" type="Texture" id=145] +[ext_resource path="res://Assets/Cooldown/Water55.png" type="Texture" id=146] +[ext_resource path="res://Assets/Cooldown/Water56.png" type="Texture" id=147] +[ext_resource path="res://Assets/Cooldown/Water57.png" type="Texture" id=148] +[ext_resource path="res://Assets/Cooldown/Water58.png" type="Texture" id=149] +[ext_resource path="res://Assets/Cooldown/Water59.png" type="Texture" id=150] +[ext_resource path="res://Assets/Cooldown/Water60.png" type="Texture" id=151] +[ext_resource path="res://Assets/Cooldown/Water61.png" type="Texture" id=152] +[ext_resource path="res://Assets/Cooldown/Water62.png" type="Texture" id=153] +[ext_resource path="res://Assets/Cooldown/Water63.png" type="Texture" id=154] +[ext_resource path="res://Assets/Cooldown/Water64.png" type="Texture" id=155] +[ext_resource path="res://Assets/Cooldown/Water65.png" type="Texture" id=156] +[ext_resource path="res://Assets/Cooldown/Water66.png" type="Texture" id=157] +[ext_resource path="res://Assets/Cooldown/Water67.png" type="Texture" id=158] +[ext_resource path="res://Assets/Cooldown/Water68.png" type="Texture" id=159] +[ext_resource path="res://Assets/Cooldown/Vaksin.png" type="Texture" id=160] +[ext_resource path="res://Assets/Cooldown/Vaksin1.png" type="Texture" id=161] +[ext_resource path="res://Assets/Cooldown/Vaksin2.png" type="Texture" id=162] +[ext_resource path="res://Assets/Cooldown/Vaksin3.png" type="Texture" id=163] +[ext_resource path="res://Assets/Cooldown/Vaksin4.png" type="Texture" id=164] +[ext_resource path="res://Assets/Cooldown/Vaksin5.png" type="Texture" id=165] +[ext_resource path="res://Assets/Cooldown/Vaksin6.png" type="Texture" id=166] +[ext_resource path="res://Assets/Cooldown/Vaksin7.png" type="Texture" id=167] +[ext_resource path="res://Assets/Cooldown/Vaksin8.png" type="Texture" id=168] +[ext_resource path="res://Assets/Cooldown/Vaksin9.png" type="Texture" id=169] +[ext_resource path="res://Assets/Cooldown/Vaksin10.png" type="Texture" id=170] +[ext_resource path="res://Assets/Cooldown/Vaksin11.png" type="Texture" id=171] +[ext_resource path="res://Assets/Cooldown/Vaksin12.png" type="Texture" id=172] +[ext_resource path="res://Assets/Cooldown/Vaksin13.png" type="Texture" id=173] +[ext_resource path="res://Assets/Cooldown/Vaksin14.png" type="Texture" id=174] +[ext_resource path="res://Assets/Cooldown/Vaksin15.png" type="Texture" id=175] +[ext_resource path="res://Assets/Cooldown/Vaksin16.png" type="Texture" id=176] +[ext_resource path="res://Assets/Cooldown/Vaksin17.png" type="Texture" id=177] +[ext_resource path="res://Assets/Cooldown/Vaksin18.png" type="Texture" id=178] +[ext_resource path="res://Assets/Cooldown/Vaksin19.png" type="Texture" id=179] +[ext_resource path="res://Assets/Cooldown/Vaksin20.png" type="Texture" id=180] +[ext_resource path="res://Assets/Cooldown/Vaksin21.png" type="Texture" id=181] +[ext_resource path="res://Assets/Cooldown/Vaksin22.png" type="Texture" id=182] +[ext_resource path="res://Assets/Cooldown/Vaksin23.png" type="Texture" id=183] +[ext_resource path="res://Assets/Cooldown/Vaksin24.png" type="Texture" id=184] +[ext_resource path="res://Assets/Cooldown/Vaksin25.png" type="Texture" id=185] +[ext_resource path="res://Assets/Cooldown/Vaksin26.png" type="Texture" id=186] +[ext_resource path="res://Assets/Cooldown/Vaksin27.png" type="Texture" id=187] +[ext_resource path="res://Assets/Cooldown/Vaksin28.png" type="Texture" id=188] +[ext_resource path="res://Assets/Cooldown/Vaksin29.png" type="Texture" id=189] +[ext_resource path="res://Assets/Cooldown/Vaksin30.png" type="Texture" id=190] +[ext_resource path="res://Assets/Cooldown/Vaksin31.png" type="Texture" id=191] +[ext_resource path="res://Assets/Cooldown/Vaksin32.png" type="Texture" id=192] +[ext_resource path="res://Assets/Cooldown/Vaksin33.png" type="Texture" id=193] +[ext_resource path="res://Assets/Cooldown/Vaksin34.png" type="Texture" id=194] +[ext_resource path="res://Assets/Cooldown/Vaksin35.png" type="Texture" id=195] +[ext_resource path="res://Assets/Cooldown/Vaksin36.png" type="Texture" id=196] +[ext_resource path="res://Assets/Cooldown/Vaksin37.png" type="Texture" id=197] +[ext_resource path="res://Assets/Cooldown/Vaksin38.png" type="Texture" id=198] +[ext_resource path="res://Assets/Cooldown/Vaksin39.png" type="Texture" id=199] +[ext_resource path="res://Assets/Cooldown/Vaksin40.png" type="Texture" id=200] +[ext_resource path="res://Assets/Cooldown/Vaksin41.png" type="Texture" id=201] +[ext_resource path="res://Assets/Cooldown/Vaksin42.png" type="Texture" id=202] +[ext_resource path="res://Assets/Cooldown/Vaksin43.png" type="Texture" id=203] +[ext_resource path="res://Assets/Cooldown/Vaksin44.png" type="Texture" id=204] +[ext_resource path="res://Assets/Cooldown/Vaksin45.png" type="Texture" id=205] +[ext_resource path="res://Assets/Cooldown/Vaksin46.png" type="Texture" id=206] +[ext_resource path="res://Assets/Cooldown/Vaksin47.png" type="Texture" id=207] +[ext_resource path="res://Assets/Cooldown/Vaksin48.png" type="Texture" id=208] +[ext_resource path="res://Assets/Cooldown/Vaksin49.png" type="Texture" id=209] +[ext_resource path="res://Assets/Cooldown/Vaksin50.png" type="Texture" id=210] +[ext_resource path="res://Assets/Cooldown/Vaksin51.png" type="Texture" id=211] +[ext_resource path="res://Assets/Cooldown/Vaksin52.png" type="Texture" id=212] +[ext_resource path="res://Assets/Cooldown/Vaksin53.png" type="Texture" id=213] +[ext_resource path="res://Assets/Cooldown/Vaksin54.png" type="Texture" id=214] +[ext_resource path="res://Assets/Cooldown/Vaksin55.png" type="Texture" id=215] +[ext_resource path="res://Assets/Cooldown/Vaksin56.png" type="Texture" id=216] +[ext_resource path="res://Assets/Cooldown/Vaksin57.png" type="Texture" id=217] +[ext_resource path="res://Assets/Cooldown/Vaksin58.png" type="Texture" id=218] +[ext_resource path="res://Assets/Cooldown/Vaksin59.png" type="Texture" id=219] +[ext_resource path="res://Assets/Cooldown/Vaksin60.png" type="Texture" id=220] +[ext_resource path="res://Assets/Cooldown/Vaksin61.png" type="Texture" id=221] +[ext_resource path="res://Assets/Cooldown/Vaksin62.png" type="Texture" id=222] +[ext_resource path="res://Assets/Cooldown/Vaksin63.png" type="Texture" id=223] +[ext_resource path="res://Assets/Cooldown/Vaksin64.png" type="Texture" id=224] +[ext_resource path="res://Assets/Cooldown/Vaksin65.png" type="Texture" id=225] +[ext_resource path="res://Assets/Cooldown/Vaksin66.png" type="Texture" id=226] +[ext_resource path="res://Assets/Cooldown/Vaksin67.png" type="Texture" id=227] +[ext_resource path="res://Assets/Cooldown/Vaksin68.png" type="Texture" id=228] +[ext_resource path="res://PauseMenu.tscn" type="PackedScene" id=229] +[ext_resource path="res://HUD.tscn" type="PackedScene" id=230] +[ext_resource path="res://GameOver.tscn" type="PackedScene" id=231] +[ext_resource path="res://Win.tscn" type="PackedScene" id=232] + +[sub_resource type="SpriteFrames" id=1] +animations = [ { +"frames": [ ExtResource( 2 ) ], +"loop": true, +"name": "Hujan", +"speed": 5.0 +}, { +"frames": [ ExtResource( 3 ) ], +"loop": true, +"name": "Panas", +"speed": 5.0 +} ] + +[sub_resource type="AnimatedTexture" id=2] + +[sub_resource type="StyleBoxEmpty" id=3] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxEmpty" id=6] + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="Theme" id=8] +VScrollBar/icons/decrement = null +VScrollBar/icons/decrement_highlight = null +VScrollBar/icons/increment = null +VScrollBar/icons/increment_highlight = null +VScrollBar/styles/grabber = SubResource( 3 ) +VScrollBar/styles/grabber_highlight = SubResource( 4 ) +VScrollBar/styles/grabber_pressed = SubResource( 5 ) +VScrollBar/styles/scroll = SubResource( 6 ) +VScrollBar/styles/scroll_focus = SubResource( 7 ) + +[sub_resource type="StyleBoxFlat" id=9] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) + +[sub_resource type="SpriteFrames" id=10] +animations = [ { +"frames": [ ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 7 ) ], +"loop": true, +"name": "Marah", +"speed": 3.0 +}, { +"frames": [ ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 8 ), ExtResource( 9 ) ], +"loop": true, +"name": "Normal", +"speed": 3.0 +}, { +"frames": [ ExtResource( 10 ) ], +"loop": true, +"name": "Mati", +"speed": 1.0 +}, { +"frames": [ ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 11 ), ExtResource( 12 ) ], +"loop": true, +"name": "Senang", +"speed": 3.0 +}, { +"frames": [ ExtResource( 13 ) ], +"loop": true, +"name": "Sakit", +"speed": 1.0 +} ] + +[sub_resource type="SpriteFrames" id=11] +animations = [ { +"frames": [ ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ) ], +"loop": true, +"name": "default", +"speed": 40.0 +} ] + +[sub_resource type="SpriteFrames" id=12] +animations = [ { +"frames": [ ExtResource( 22 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ), ExtResource( 39 ), ExtResource( 40 ), ExtResource( 41 ), ExtResource( 42 ), ExtResource( 43 ), ExtResource( 44 ), ExtResource( 45 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 48 ), ExtResource( 49 ), ExtResource( 50 ), ExtResource( 51 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 54 ), ExtResource( 55 ), ExtResource( 56 ), ExtResource( 57 ), ExtResource( 58 ), ExtResource( 59 ), ExtResource( 60 ), ExtResource( 61 ), ExtResource( 62 ), ExtResource( 63 ), ExtResource( 64 ), ExtResource( 65 ), ExtResource( 66 ), ExtResource( 67 ), ExtResource( 68 ), ExtResource( 69 ), ExtResource( 70 ), ExtResource( 71 ), ExtResource( 72 ), ExtResource( 73 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 76 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 79 ), ExtResource( 80 ), ExtResource( 81 ), ExtResource( 82 ), ExtResource( 83 ), ExtResource( 84 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 88 ), ExtResource( 89 ), ExtResource( 90 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=13] +animations = [ { +"frames": [ ExtResource( 91 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 92 ), ExtResource( 93 ), ExtResource( 94 ), ExtResource( 95 ), ExtResource( 96 ), ExtResource( 97 ), ExtResource( 98 ), ExtResource( 99 ), ExtResource( 100 ), ExtResource( 101 ), ExtResource( 102 ), ExtResource( 103 ), ExtResource( 104 ), ExtResource( 105 ), ExtResource( 106 ), ExtResource( 107 ), ExtResource( 108 ), ExtResource( 109 ), ExtResource( 110 ), ExtResource( 111 ), ExtResource( 112 ), ExtResource( 113 ), ExtResource( 114 ), ExtResource( 115 ), ExtResource( 116 ), ExtResource( 117 ), ExtResource( 118 ), ExtResource( 119 ), ExtResource( 120 ), ExtResource( 121 ), ExtResource( 122 ), ExtResource( 123 ), ExtResource( 124 ), ExtResource( 125 ), ExtResource( 126 ), ExtResource( 127 ), ExtResource( 128 ), ExtResource( 129 ), ExtResource( 130 ), ExtResource( 131 ), ExtResource( 132 ), ExtResource( 133 ), ExtResource( 134 ), ExtResource( 135 ), ExtResource( 136 ), ExtResource( 137 ), ExtResource( 138 ), ExtResource( 139 ), ExtResource( 140 ), ExtResource( 141 ), ExtResource( 142 ), ExtResource( 143 ), ExtResource( 144 ), ExtResource( 145 ), ExtResource( 146 ), ExtResource( 147 ), ExtResource( 148 ), ExtResource( 149 ), ExtResource( 150 ), ExtResource( 151 ), ExtResource( 152 ), ExtResource( 153 ), ExtResource( 154 ), ExtResource( 155 ), ExtResource( 156 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 159 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[sub_resource type="SpriteFrames" id=14] +animations = [ { +"frames": [ ExtResource( 160 ) ], +"loop": true, +"name": "idle", +"speed": 5.0 +}, { +"frames": [ ExtResource( 161 ), ExtResource( 162 ), ExtResource( 163 ), ExtResource( 164 ), ExtResource( 165 ), ExtResource( 166 ), ExtResource( 167 ), ExtResource( 168 ), ExtResource( 169 ), ExtResource( 170 ), ExtResource( 171 ), ExtResource( 172 ), ExtResource( 173 ), ExtResource( 174 ), ExtResource( 175 ), ExtResource( 176 ), ExtResource( 177 ), ExtResource( 178 ), ExtResource( 179 ), ExtResource( 180 ), ExtResource( 181 ), ExtResource( 182 ), ExtResource( 183 ), ExtResource( 184 ), ExtResource( 185 ), ExtResource( 186 ), ExtResource( 187 ), ExtResource( 188 ), ExtResource( 189 ), ExtResource( 190 ), ExtResource( 191 ), ExtResource( 192 ), ExtResource( 193 ), ExtResource( 194 ), ExtResource( 195 ), ExtResource( 196 ), ExtResource( 197 ), ExtResource( 198 ), ExtResource( 199 ), ExtResource( 200 ), ExtResource( 201 ), ExtResource( 202 ), ExtResource( 203 ), ExtResource( 204 ), ExtResource( 205 ), ExtResource( 206 ), ExtResource( 207 ), ExtResource( 208 ), ExtResource( 209 ), ExtResource( 210 ), ExtResource( 211 ), ExtResource( 212 ), ExtResource( 213 ), ExtResource( 214 ), ExtResource( 215 ), ExtResource( 216 ), ExtResource( 217 ), ExtResource( 218 ), ExtResource( 219 ), ExtResource( 220 ), ExtResource( 221 ), ExtResource( 222 ), ExtResource( 223 ), ExtResource( 224 ), ExtResource( 225 ), ExtResource( 226 ), ExtResource( 227 ), ExtResource( 228 ) ], +"loop": true, +"name": "cooldown", +"speed": 13.6 +} ] + +[node name="Level 6" type="Control"] +pause_mode = 1 +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) + +[node name="Background" type="AnimatedSprite" parent="."] +position = Vector2( 639, 360 ) +scale = Vector2( 0.652, 0.719 ) +frames = SubResource( 1 ) +animation = "Panas" +playing = true + +[node name="Sprite" type="Sprite" parent="."] +visible = false +position = Vector2( 639.5, 359 ) +scale = Vector2( 0.652551, 0.718 ) +texture = ExtResource( 3 ) +normal_map = SubResource( 2 ) + +[node name="ScrollContainer" type="ScrollContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_right = 1280.0 +margin_bottom = 720.0 +rect_clip_content = false +theme = SubResource( 8 ) +scroll_horizontal_enabled = false + +[node name="VBoxContainer" type="PanelContainer" parent="ScrollContainer"] +margin_right = 1280.0 +margin_bottom = 2100.0 +rect_min_size = Vector2( 1280, 2100 ) +custom_styles/panel = SubResource( 9 ) + +[node name="Kayu 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, -200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Sprite2" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite3" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite4" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Sprite5" type="Sprite" parent="ScrollContainer/VBoxContainer/Kayu 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Baris 1" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 0 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 1/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 1/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 1"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 1/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 2" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 200 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 2/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 2/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 2"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 2/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Baris 3" type="Node2D" parent="ScrollContainer/VBoxContainer"] +editor/display_folded = true +position = Vector2( 15, 400 ) +__meta__ = { +"_edit_group_": true +} + +[node name="Kayu 1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 290, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 2" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 540, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 3" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 790, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="Kayu 4" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3"] +position = Vector2( 1040, 300 ) +scale = Vector2( 0.79989, 0.79989 ) +texture = ExtResource( 4 ) + +[node name="ayam1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 185.0 +margin_top = 80.0 +margin_right = 285.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam1"] +wait_time = 15.0 +autostart = true + +[node name="ayam2" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 425.0 +margin_top = 80.0 +margin_right = 525.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam2"] +wait_time = 15.0 +autostart = true + +[node name="ayam3" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 675.0 +margin_top = 80.0 +margin_right = 775.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam3"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam3"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam3"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam3"] +wait_time = 15.0 +autostart = true + +[node name="ayam4" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3" groups=[ +"chickens", +]] +editor/display_folded = true +margin_left = 925.0 +margin_top = 80.0 +margin_right = 1025.0 +margin_bottom = 240.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +script = ExtResource( 5 ) + +[node name="Ayam1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/ayam4"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.200786, 0.200786 ) +frames = SubResource( 10 ) +animation = "Normal" + +[node name="HPBar" type="TextureProgress" parent="ScrollContainer/VBoxContainer/Baris 3/ayam4"] +margin_left = 207.0 +margin_top = -173.0 +margin_right = 418.0 +margin_bottom = -125.0 +rect_scale = Vector2( 0.5, 0.5 ) +rect_pivot_offset = Vector2( -418, 298 ) +value = 70.0 +texture_under = ExtResource( 14 ) +texture_over = ExtResource( 15 ) +texture_progress = ExtResource( 16 ) + +[node name="HPTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam4"] +autostart = true + +[node name="SakitTimer" type="Timer" parent="ScrollContainer/VBoxContainer/Baris 3/ayam4"] +wait_time = 15.0 +autostart = true + +[node name="Bk1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3"] +editor/display_folded = true +margin_left = -10.0 +margin_top = 75.0 +margin_right = 84.0 +margin_bottom = 222.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="k1" type="AnimatedSprite" parent="ScrollContainer/VBoxContainer/Baris 3/Bk1"] +position = Vector2( 50, 80 ) +scale = Vector2( 0.138432, 0.138432 ) +frames = SubResource( 11 ) +frame = 2 + +[node name="BL1" type="Button" parent="ScrollContainer/VBoxContainer/Baris 3"] +margin_left = 585.0 +margin_top = 73.0 +margin_right = 630.0 +margin_bottom = 127.0 +focus_mode = 0 +toggle_mode = true +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="L1" type="Sprite" parent="ScrollContainer/VBoxContainer/Baris 3/BL1"] +position = Vector2( 21.3478, 62.9874 ) +scale = Vector2( 0.487998, 0.487998 ) +texture = ExtResource( 20 ) +hframes = 2 + +[node name="Tools" type="Node2D" parent="."] +editor/display_folded = true +script = ExtResource( 21 ) + +[node name="makanan" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1176.0 +margin_top = 127.0 +margin_right = 1265.0 +margin_bottom = 171.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="makan" type="AnimatedSprite" parent="Tools/makanan"] +position = Vector2( 44, 24 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 12 ) +animation = "idle" + +[node name="Air" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1193.0 +margin_top = 309.0 +margin_right = 1244.0 +margin_bottom = 395.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="air" type="AnimatedSprite" parent="Tools/Air"] +position = Vector2( 26, 42 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 13 ) +animation = "idle" + +[node name="vaksin" type="Button" parent="Tools"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 1185.0 +margin_top = 516.0 +margin_right = 1252.0 +margin_bottom = 583.0 +focus_mode = 0 +enabled_focus_mode = 0 +flat = true +__meta__ = { +"_edit_group_": true +} + +[node name="Vaksin" type="AnimatedSprite" parent="Tools/vaksin"] +position = Vector2( 34, 34 ) +scale = Vector2( 0.1, 0.1 ) +frames = SubResource( 14 ) +animation = "idle" + +[node name="CuacaTimer" type="Timer" parent="."] +wait_time = 20.0 +autostart = true + +[node name="MakananTimer" type="Timer" parent="."] +one_shot = true + +[node name="MinumanTimer" type="Timer" parent="."] +one_shot = true + +[node name="VaksinTimer" type="Timer" parent="."] +one_shot = true + +[node name="PauseMenu" parent="." instance=ExtResource( 229 )] +visible = false + +[node name="HUD" parent="." instance=ExtResource( 230 )] + +[node name="GameOver" parent="." instance=ExtResource( 231 )] +visible = false + +[node name="Win" parent="." instance=ExtResource( 232 )] +visible = false +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam2" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam3" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 1/ayam4" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 1/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/Bk1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam4" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 1/BL1" to="ScrollContainer/VBoxContainer/Baris 1/ayam2" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam2" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam3" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 2/ayam4" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 2/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/Bk1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam3" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 2/BL1" to="ScrollContainer/VBoxContainer/Baris 2/ayam4" method="_on_BL1_toggled"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam1/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam1/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam2" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam2/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam2/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam3" to="ScrollContainer/VBoxContainer/Baris 3/ayam3" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam3/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam3" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam3/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam3" method="_on_SakitTimer_timeout"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Baris 3/ayam4" to="ScrollContainer/VBoxContainer/Baris 3/ayam4" method="_on_ayam1_pressed"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam4/HPTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam4" method="_on_HPTimer_timeout"] +[connection signal="timeout" from="ScrollContainer/VBoxContainer/Baris 3/ayam4/SakitTimer" to="ScrollContainer/VBoxContainer/Baris 3/ayam4" method="_on_SakitTimer_timeout"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam4" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/Bk1" to="ScrollContainer/VBoxContainer/Baris 3/ayam3" method="_on_Bk1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam1" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam4" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam2" method="_on_BL1_toggled"] +[connection signal="toggled" from="ScrollContainer/VBoxContainer/Baris 3/BL1" to="ScrollContainer/VBoxContainer/Baris 3/ayam3" method="_on_BL1_toggled"] +[connection signal="pressed" from="Tools/makanan" to="Tools" method="_on_makanan_pressed"] +[connection signal="pressed" from="Tools/Air" to="Tools" method="_on_air_pressed"] +[connection signal="pressed" from="Tools/vaksin" to="Tools" method="_on_vaksin_pressed"] +[connection signal="timeout" from="CuacaTimer" to="." method="_on_CuacaTimer_timeout"] +[connection signal="timeout" from="MakananTimer" to="." method="_on_MakananTimer_timeout"] +[connection signal="timeout" from="MinumanTimer" to="." method="_on_MinumanTimer_timeout"] +[connection signal="timeout" from="VaksinTimer" to="." method="_on_VaksinTimer_timeout"] diff --git a/MainMenu.gd b/MainMenu.gd index dd989cc..3102d60 100644 --- a/MainMenu.gd +++ b/MainMenu.gd @@ -8,8 +8,29 @@ func _ready(): $HBoxContainer/Background/Ayam01.play("idle") $HBoxContainer/Background/Ayam02.play("idle") $HBoxContainer/Background/Ayam03.play("idle") + $LevelPanel/ScrollContainer/VBoxContainer/Level_01.set_disabled(true) + $LevelPanel/ScrollContainer/VBoxContainer/Level_02.set_disabled(true) + $LevelPanel/ScrollContainer/VBoxContainer/Level_03.set_disabled(true) + $LevelPanel/ScrollContainer/VBoxContainer/Level_04.set_disabled(true) + $LevelPanel/ScrollContainer/VBoxContainer/Level_05.set_disabled(true) + $LevelPanel/ScrollContainer/VBoxContainer/Level_06.set_disabled(true) isLevelPanelHidden = true +func _process(delta): + if GlobalVar.level1 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_01.set_disabled(false) + if GlobalVar.level2 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_02.set_disabled(false) + if GlobalVar.level3 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_03.set_disabled(false) + if GlobalVar.level4 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_04.set_disabled(false) + if GlobalVar.level5 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_05.set_disabled(false) + if GlobalVar.level6 == true: + $LevelPanel/ScrollContainer/VBoxContainer/Level_06.set_disabled(false) + pass + # OptionPanel func _on_NewGame_pressed(): $PlayerPanel.show() @@ -48,7 +69,38 @@ func _on_LevelClose_pressed(): $HBoxContainer/OptionPanel/VBoxContainer/Quit.set_disabled(false) isLevelPanelHidden = true -func _on_Level_pressed(): + +func _on_Level1_pressed(): GlobalVar.targetLevel = 1 get_tree().change_scene("Level 1.tscn") + pass # Replace with function body. + + +func _on_Level2_pressed(): + GlobalVar.targetLevel = 2 + get_tree().change_scene("Level 2.tscn") + pass # Replace with function body. + + +func _on_Level3_pressed(): + GlobalVar.targetLevel = 3 + get_tree().change_scene("Level 3.tscn") + pass # Replace with function body. + + +func _on_Level4_pressed(): + GlobalVar.targetLevel = 4 + get_tree().change_scene("Level 4.tscn") + pass # Replace with function body. + + +func _on_Level5_pressed(): + GlobalVar.targetLevel = 5 + get_tree().change_scene("Level 5.tscn") + pass # Replace with function body. + +func _on_Level6_pressed(): + GlobalVar.targetLevel = 6 + get_tree().change_scene("Level 6.tscn") + pass # Replace with function body. diff --git a/MainMenu.tscn b/MainMenu.tscn index f3e29e6..3f6dfa4 100644 --- a/MainMenu.tscn +++ b/MainMenu.tscn @@ -434,12 +434,12 @@ valign = 1 [connection signal="pressed" from="HBoxContainer/OptionPanel/VBoxContainer/LoadGame" to="." method="_on_LoadGame_pressed"] [connection signal="pressed" from="HBoxContainer/OptionPanel/VBoxContainer/Credits" to="." method="_on_Credits_pressed"] [connection signal="pressed" from="HBoxContainer/OptionPanel/VBoxContainer/Quit" to="." method="_on_Exit_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_01" to="." method="_on_Level_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_02" to="." method="_on_Level_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_03" to="." method="_on_Level_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_04" to="." method="_on_Level_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_05" to="." method="_on_Level_pressed"] -[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_06" to="." method="_on_Level_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_01" to="." method="_on_Level1_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_02" to="." method="_on_Level2_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_03" to="." method="_on_Level3_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_04" to="." method="_on_Level4_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_05" to="." method="_on_Level5_pressed"] +[connection signal="pressed" from="LevelPanel/ScrollContainer/VBoxContainer/Level_06" to="." method="_on_Level6_pressed"] [connection signal="pressed" from="LevelPanel/LevelClose" to="." method="_on_LevelClose_pressed"] [connection signal="pressed" from="PlayerPanel/VBoxContainer/HBoxContainer/Cancel" to="." method="_on_Cancel_pressed"] [connection signal="pressed" from="PlayerPanel/VBoxContainer/HBoxContainer/OK" to="." method="_on_OK_pressed"] diff --git a/Win.gd b/Win.gd index b3a8b70..d09eac6 100644 --- a/Win.gd +++ b/Win.gd @@ -1,34 +1,22 @@ extends Panel func _ready(): - #hide() + + pass + +func _process(delta): + if GlobalVar.currentLevel == 6: + $VBoxContainer/NextLevel.hide() + else: + $VBoxContainer/NextLevel.show() pass func _on_NextLevel_pressed(): - if GlobalVar.level5 == true && GlobalVar.level4 == true && GlobalVar.level3 == true && GlobalVar.level2 == true && GlobalVar.level1 == true: - GlobalVar.level6 = true - GlobalVar.targetLevel = 6 - get_tree().change_scene("Level 6.tscn") - elif GlobalVar.level4 == true && GlobalVar.level3 == true && GlobalVar.level2 == true && GlobalVar.level1 == true: - GlobalVar.level5 = true - GlobalVar.targetLevel = 5 - get_tree().change_scene("Level 5.tscn") - elif GlobalVar.level3 == true && GlobalVar.level2 == true && GlobalVar.level1 == true: - GlobalVar.level4 = true - GlobalVar.targetLevel = 4 - get_tree().change_scene("Level 4.tscn") - elif GlobalVar.level2 == true && GlobalVar.level1 == true: - GlobalVar.level3 = true - GlobalVar.targetLevel = 3 - get_tree().change_scene("Level 3.tscn") - elif GlobalVar.level1 == true: - GlobalVar.level2 = true - GlobalVar.targetLevel = 2 - get_tree().change_scene("Level 2.tscn") - - print(GlobalVar.level3) + var nextLvl = GlobalVar.currentLevel + 1 + var next = "Level %d.tscn" % nextLvl + get_tree().change_scene(next) pass func _on_Exit_pressed(): diff --git a/Win.tscn b/Win.tscn index 985bc16..efd18c2 100644 --- a/Win.tscn +++ b/Win.tscn @@ -6,40 +6,40 @@ [ext_resource path="res://Assets/Ayam Senang Idle.png" type="Texture" id=4] [ext_resource path="res://Assets/Ayam Senang Gerak.png" type="Texture" id=5] -[sub_resource type="StyleBoxFlat" id=4] +[sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 1, 0.470588, 0, 1 ) corner_radius_top_left = 15 corner_radius_top_right = 15 corner_radius_bottom_right = 15 corner_radius_bottom_left = 15 -[sub_resource type="DynamicFont" id=1] +[sub_resource type="DynamicFont" id=2] size = 48 font_data = ExtResource( 2 ) -[sub_resource type="StyleBoxFlat" id=5] +[sub_resource type="StyleBoxFlat" id=3] bg_color = Color( 0, 0.646973, 0.14658, 1 ) -[sub_resource type="StyleBoxFlat" id=6] +[sub_resource type="StyleBoxFlat" id=4] bg_color = Color( 0, 0.869629, 0.197025, 1 ) -[sub_resource type="StyleBoxFlat" id=7] +[sub_resource type="StyleBoxFlat" id=5] bg_color = Color( 0, 0.501961, 0.113725, 1 ) -[sub_resource type="DynamicFont" id=2] +[sub_resource type="DynamicFont" id=6] size = 28 font_data = ExtResource( 3 ) -[sub_resource type="StyleBoxFlat" id=8] +[sub_resource type="StyleBoxFlat" id=7] bg_color = Color( 0.632813, 0, 0, 1 ) -[sub_resource type="StyleBoxFlat" id=9] +[sub_resource type="StyleBoxFlat" id=8] bg_color = Color( 0.882813, 0, 0, 1 ) -[sub_resource type="StyleBoxFlat" id=10] +[sub_resource type="StyleBoxFlat" id=9] bg_color = Color( 0.466667, 0, 0, 1 ) -[sub_resource type="SpriteFrames" id=3] +[sub_resource type="SpriteFrames" id=10] animations = [ { "frames": [ ExtResource( 4 ), ExtResource( 5 ) ], "loop": true, @@ -57,7 +57,7 @@ margin_left = -300.0 margin_top = -200.0 margin_right = 300.0 margin_bottom = 200.0 -custom_styles/panel = SubResource( 4 ) +custom_styles/panel = SubResource( 1 ) script = ExtResource( 1 ) [node name="VBoxContainer" type="VBoxContainer" parent="."] @@ -74,7 +74,7 @@ margin_bottom = 181.0 size_flags_horizontal = 3 size_flags_vertical = 7 size_flags_stretch_ratio = 2.0 -custom_fonts/font = SubResource( 1 ) +custom_fonts/font = SubResource( 2 ) text = "Win!" align = 1 valign = 1 @@ -85,10 +85,10 @@ margin_right = 400.0 margin_bottom = 275.0 size_flags_horizontal = 3 size_flags_vertical = 3 -custom_styles/hover = SubResource( 5 ) -custom_styles/pressed = SubResource( 6 ) -custom_styles/normal = SubResource( 7 ) -custom_fonts/font = SubResource( 2 ) +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 4 ) +custom_styles/normal = SubResource( 5 ) +custom_fonts/font = SubResource( 6 ) text = "Level Berikutnya" [node name="Exit" type="Button" parent="VBoxContainer"] @@ -97,17 +97,17 @@ margin_right = 400.0 margin_bottom = 370.0 size_flags_horizontal = 3 size_flags_vertical = 3 -custom_styles/hover = SubResource( 8 ) -custom_styles/pressed = SubResource( 9 ) -custom_styles/normal = SubResource( 10 ) -custom_fonts/font = SubResource( 2 ) +custom_styles/hover = SubResource( 7 ) +custom_styles/pressed = SubResource( 8 ) +custom_styles/normal = SubResource( 9 ) +custom_fonts/font = SubResource( 6 ) text = "Keluar" [node name="AnimatedSprite" type="AnimatedSprite" parent="."] pause_mode = 2 position = Vector2( 0, 350 ) scale = Vector2( 0.4, 0.4 ) -frames = SubResource( 3 ) +frames = SubResource( 10 ) animation = "gerak" speed_scale = 0.5 [connection signal="pressed" from="VBoxContainer/NextLevel" to="." method="_on_NextLevel_pressed"] diff --git a/ayam1.gd b/ayam1.gd index 34c6316..0e590be 100644 --- a/ayam1.gd +++ b/ayam1.gd @@ -18,8 +18,6 @@ func _ready(): # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): - print(status) - print(mood) if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": mood = "Buruk" elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": diff --git a/ayam2.gd b/ayam2.gd index 19a5c69..3efab23 100644 --- a/ayam2.gd +++ b/ayam2.gd @@ -18,8 +18,6 @@ func _ready(): # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): - print(status) - print(mood) if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": mood = "Buruk" elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": diff --git a/ayam3.gd b/ayam3.gd new file mode 100644 index 0000000..37e14ba --- /dev/null +++ b/ayam3.gd @@ -0,0 +1,138 @@ +extends Button + +var animation_ayam +var HP = 70.0 +var status = "Normal" +var kipas +var lampu +var mood +var sudahMati = false + +func _ready(): + HP = 70.0 + animation_ayam = get_child(0) + kipas = "Off" + lampu = "Off" + GlobalVar.cuaca = "Panas" + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": + mood = "Buruk" + elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": + mood = "Buruk" + else: + mood = "Bagus" + get_node("HPBar").value = HP + if HP > 100: + HP = 100 + + if status == "Sakit" && HP == 0: + status = "Mati" + change_status(status) + elif status == "Sakit": + change_status(status) + else : + if HP > 70: + status = "Senang" + change_status(status) + elif HP > 40: + status = "Normal" + change_status(status) + elif HP > 0: + status = "Marah" + change_status(status) + else: + status = "Mati" + change_status(status) + if status == "Mati" and not sudahMati: + GlobalVar.mati += 1 + if GlobalVar.mati == 2: + lampu("Off") + kipas("Off") + #queue_free() + sudahMati = true + pass + +func change_status(status): + animation_ayam.play(status) + + +func _on_ayam1_pressed(): + if status != "Mati": + if GlobalVar.makanan == true && status != "Sakit": + GlobalVar.makan -= 1 + if GlobalVar.makan == 0: + get_node("/root/Level 3/MakananTimer").start(5) + get_node("/root/Level 3/Tools/makanan/makan").play("cooldown") + HP += 20 + if GlobalVar.minuman == true && status != "Sakit": + GlobalVar.minum -= 1 + if GlobalVar.minum == 0: + get_node("/root/Level 3/MinumanTimer").start(5) + get_node("/root/Level 3/Tools/Air/air").play("cooldown") + HP += 10 + if GlobalVar.vaksin == true && status == "Sakit": + GlobalVar.vaks -= 1 + if GlobalVar.vaks == 0: + get_node("/root/Level 3/VaksinTimer").start(5) + get_node("/root/Level 3/Tools/vaksin/Vaksin").play("cooldown") + status = "Normal" + if HP > 50: + HP = 50 + + pass # Replace with function body. + + +func _on_HPTimer_timeout(): + if HP > 0: + if status == "Sakit" && mood == "Buruk": + HP -=5 + elif status == "Sakit" || mood == "Buruk": + HP -=2 + else: + HP -=1 + if HP < 0: + HP = 0 + pass # Replace with function body. + + +func _on_SakitTimer_timeout(): + randomize() + var t = rand_range(0,100) + get_node("SakitTimer").start(t) + if status != "Mati": + status = "Sakit" + pass # Replace with function body. + + +func kipas(status): + if status == "On": + get_node("../Bk1/k1").play() + kipas = status + else: + get_node("../Bk1/k1").stop() + kipas = status + +func lampu(status): + if status == "On": + get_node("../BL1/L1").frame = 1 + lampu = status + else: + get_node("../BL1/L1").frame = 0 + lampu = status + +func _on_Bk1_toggled(button_pressed): + if button_pressed: + kipas("On") + else : + kipas("Off") + pass # Replace with function body. + +func _on_BL1_toggled(button_pressed): + if button_pressed: + lampu("On") + else: + lampu("Off") + pass # Replace with function body. \ No newline at end of file diff --git a/ayam4.gd b/ayam4.gd new file mode 100644 index 0000000..f296b3a --- /dev/null +++ b/ayam4.gd @@ -0,0 +1,138 @@ +extends Button + +var animation_ayam +var HP = 70.0 +var status = "Normal" +var kipas +var lampu +var mood +var sudahMati = false + +func _ready(): + HP = 70.0 + animation_ayam = get_child(0) + kipas = "Off" + lampu = "Off" + GlobalVar.cuaca = "Panas" + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": + mood = "Buruk" + elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": + mood = "Buruk" + else: + mood = "Bagus" + get_node("HPBar").value = HP + if HP > 100: + HP = 100 + + if status == "Sakit" && HP == 0: + status = "Mati" + change_status(status) + elif status == "Sakit": + change_status(status) + else : + if HP > 70: + status = "Senang" + change_status(status) + elif HP > 40: + status = "Normal" + change_status(status) + elif HP > 0: + status = "Marah" + change_status(status) + else: + status = "Mati" + change_status(status) + if status == "Mati" and not sudahMati: + GlobalVar.mati += 1 + if GlobalVar.mati == 2: + lampu("Off") + kipas("Off") + #queue_free() + sudahMati = true + pass + +func change_status(status): + animation_ayam.play(status) + + +func _on_ayam1_pressed(): + if status != "Mati": + if GlobalVar.makanan == true && status != "Sakit": + GlobalVar.makan -= 1 + if GlobalVar.makan == 0: + get_node("/root/Level 4/MakananTimer").start(5) + get_node("/root/Level 4/Tools/makanan/makan").play("cooldown") + HP += 20 + if GlobalVar.minuman == true && status != "Sakit": + GlobalVar.minum -= 1 + if GlobalVar.minum == 0: + get_node("/root/Level 4/MinumanTimer").start(5) + get_node("/root/Level 4/Tools/Air/air").play("cooldown") + HP += 10 + if GlobalVar.vaksin == true && status == "Sakit": + GlobalVar.vaks -= 1 + if GlobalVar.vaks == 0: + get_node("/root/Level 4/VaksinTimer").start(5) + get_node("/root/Level 4/Tools/vaksin/Vaksin").play("cooldown") + status = "Normal" + if HP > 50: + HP = 50 + + pass # Replace with function body. + + +func _on_HPTimer_timeout(): + if HP > 0: + if status == "Sakit" && mood == "Buruk": + HP -=5 + elif status == "Sakit" || mood == "Buruk": + HP -=2 + else: + HP -=1 + if HP < 0: + HP = 0 + pass # Replace with function body. + + +func _on_SakitTimer_timeout(): + randomize() + var t = rand_range(0,100) + get_node("SakitTimer").start(t) + if status != "Mati": + status = "Sakit" + pass # Replace with function body. + + +func kipas(status): + if status == "On": + get_node("../Bk1/k1").play() + kipas = status + else: + get_node("../Bk1/k1").stop() + kipas = status + +func lampu(status): + if status == "On": + get_node("../BL1/L1").frame = 1 + lampu = status + else: + get_node("../BL1/L1").frame = 0 + lampu = status + +func _on_Bk1_toggled(button_pressed): + if button_pressed: + kipas("On") + else : + kipas("Off") + pass # Replace with function body. + +func _on_BL1_toggled(button_pressed): + if button_pressed: + lampu("On") + else: + lampu("Off") + pass # Replace with function body. \ No newline at end of file diff --git a/ayam5.gd b/ayam5.gd new file mode 100644 index 0000000..c9dfccd --- /dev/null +++ b/ayam5.gd @@ -0,0 +1,138 @@ +extends Button + +var animation_ayam +var HP = 70.0 +var status = "Normal" +var kipas +var lampu +var mood +var sudahMati = false + +func _ready(): + HP = 70.0 + animation_ayam = get_child(0) + kipas = "Off" + lampu = "Off" + GlobalVar.cuaca = "Panas" + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": + mood = "Buruk" + elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": + mood = "Buruk" + else: + mood = "Bagus" + get_node("HPBar").value = HP + if HP > 100: + HP = 100 + + if status == "Sakit" && HP == 0: + status = "Mati" + change_status(status) + elif status == "Sakit": + change_status(status) + else : + if HP > 70: + status = "Senang" + change_status(status) + elif HP > 40: + status = "Normal" + change_status(status) + elif HP > 0: + status = "Marah" + change_status(status) + else: + status = "Mati" + change_status(status) + if status == "Mati" and not sudahMati: + GlobalVar.mati += 1 + if GlobalVar.mati == 2: + lampu("Off") + kipas("Off") + #queue_free() + sudahMati = true + pass + +func change_status(status): + animation_ayam.play(status) + + +func _on_ayam1_pressed(): + if status != "Mati": + if GlobalVar.makanan == true && status != "Sakit": + GlobalVar.makan -= 1 + if GlobalVar.makan == 0: + get_node("/root/Level 5/MakananTimer").start(5) + get_node("/root/Level 5/Tools/makanan/makan").play("cooldown") + HP += 20 + if GlobalVar.minuman == true && status != "Sakit": + GlobalVar.minum -= 1 + if GlobalVar.minum == 0: + get_node("/root/Level 5/MinumanTimer").start(5) + get_node("/root/Level 5/Tools/Air/air").play("cooldown") + HP += 10 + if GlobalVar.vaksin == true && status == "Sakit": + GlobalVar.vaks -= 1 + if GlobalVar.vaks == 0: + get_node("/root/Level 5/VaksinTimer").start(5) + get_node("/root/Level 5/Tools/vaksin/Vaksin").play("cooldown") + status = "Normal" + if HP > 50: + HP = 50 + + pass # Replace with function body. + + +func _on_HPTimer_timeout(): + if HP > 0: + if status == "Sakit" && mood == "Buruk": + HP -=5 + elif status == "Sakit" || mood == "Buruk": + HP -=2 + else: + HP -=1 + if HP < 0: + HP = 0 + pass # Replace with function body. + + +func _on_SakitTimer_timeout(): + randomize() + var t = rand_range(0,100) + get_node("SakitTimer").start(t) + if status != "Mati": + status = "Sakit" + pass # Replace with function body. + + +func kipas(status): + if status == "On": + get_node("../Bk1/k1").play() + kipas = status + else: + get_node("../Bk1/k1").stop() + kipas = status + +func lampu(status): + if status == "On": + get_node("../BL1/L1").frame = 1 + lampu = status + else: + get_node("../BL1/L1").frame = 0 + lampu = status + +func _on_Bk1_toggled(button_pressed): + if button_pressed: + kipas("On") + else : + kipas("Off") + pass # Replace with function body. + +func _on_BL1_toggled(button_pressed): + if button_pressed: + lampu("On") + else: + lampu("Off") + pass # Replace with function body. \ No newline at end of file diff --git a/ayam6.gd b/ayam6.gd new file mode 100644 index 0000000..7d298fb --- /dev/null +++ b/ayam6.gd @@ -0,0 +1,138 @@ +extends Button + +var animation_ayam +var HP = 70.0 +var status = "Normal" +var kipas +var lampu +var mood +var sudahMati = false + +func _ready(): + HP = 70.0 + animation_ayam = get_child(0) + kipas = "Off" + lampu = "Off" + GlobalVar.cuaca = "Panas" + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if GlobalVar.cuaca == "Panas" && kipas == "Off" || GlobalVar.cuaca == "Panas" && lampu == "On": + mood = "Buruk" + elif GlobalVar.cuaca == "Hujan" && lampu == "Off" || GlobalVar.cuaca == "Hujan" && kipas == "On": + mood = "Buruk" + else: + mood = "Bagus" + get_node("HPBar").value = HP + if HP > 100: + HP = 100 + + if status == "Sakit" && HP == 0: + status = "Mati" + change_status(status) + elif status == "Sakit": + change_status(status) + else : + if HP > 70: + status = "Senang" + change_status(status) + elif HP > 40: + status = "Normal" + change_status(status) + elif HP > 0: + status = "Marah" + change_status(status) + else: + status = "Mati" + change_status(status) + if status == "Mati" and not sudahMati: + GlobalVar.mati += 1 + if GlobalVar.mati == 2: + lampu("Off") + kipas("Off") + #queue_free() + sudahMati = true + pass + +func change_status(status): + animation_ayam.play(status) + + +func _on_ayam1_pressed(): + if status != "Mati": + if GlobalVar.makanan == true && status != "Sakit": + GlobalVar.makan -= 1 + if GlobalVar.makan == 0: + get_node("/root/Level 6/MakananTimer").start(5) + get_node("/root/Level 6/Tools/makanan/makan").play("cooldown") + HP += 20 + if GlobalVar.minuman == true && status != "Sakit": + GlobalVar.minum -= 1 + if GlobalVar.minum == 0: + get_node("/root/Level 6/MinumanTimer").start(5) + get_node("/root/Level 6/Tools/Air/air").play("cooldown") + HP += 10 + if GlobalVar.vaksin == true && status == "Sakit": + GlobalVar.vaks -= 1 + if GlobalVar.vaks == 0: + get_node("/root/Level 6/VaksinTimer").start(5) + get_node("/root/Level 6/Tools/vaksin/Vaksin").play("cooldown") + status = "Normal" + if HP > 50: + HP = 50 + + pass # Replace with function body. + + +func _on_HPTimer_timeout(): + if HP > 0: + if status == "Sakit" && mood == "Buruk": + HP -=5 + elif status == "Sakit" || mood == "Buruk": + HP -=2 + else: + HP -=1 + if HP < 0: + HP = 0 + pass # Replace with function body. + + +func _on_SakitTimer_timeout(): + randomize() + var t = rand_range(0,100) + get_node("SakitTimer").start(t) + if status != "Mati": + status = "Sakit" + pass # Replace with function body. + + +func kipas(status): + if status == "On": + get_node("../Bk1/k1").play() + kipas = status + else: + get_node("../Bk1/k1").stop() + kipas = status + +func lampu(status): + if status == "On": + get_node("../BL1/L1").frame = 1 + lampu = status + else: + get_node("../BL1/L1").frame = 0 + lampu = status + +func _on_Bk1_toggled(button_pressed): + if button_pressed: + kipas("On") + else : + kipas("Off") + pass # Replace with function body. + +func _on_BL1_toggled(button_pressed): + if button_pressed: + lampu("On") + else: + lampu("Off") + pass # Replace with function body. \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..75d4146 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,32 @@ +[preset.0] + +name="Windows Desktop" +platform="Windows Desktop" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="D:/Kuliah/Semester 5/PPL Agro/Chick-Gu.exe" +patch_list=PoolStringArray( ) +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/64_bits=true +custom_template/release="" +custom_template/debug="" +application/icon="" +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" diff --git a/project.godot b/project.godot index 00b6ad4..42080f9 100644 --- a/project.godot +++ b/project.godot @@ -16,7 +16,7 @@ _global_script_class_icons={ [application] config/name="Chick-Go" -run/main_scene="res://Level 1.tscn" +run/main_scene="res://MainMenu.tscn" config/icon="res://icon.png" [autoload]