-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
5,363 additions
and
77 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.import/Chicken Sound.ogg-cc6e4bae87796593a26eff8163a9367d.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="e28647d0ea756aae55711292a0dbbbbd" | ||
dest_md5="3bf5c0d1c8c22688778d3f494a13b11a" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_md5="ab2f556f65bec76af9a1a0db1cd7c431" | ||
dest_md5="0bbbdb746da9fc61dbd15d070b3bf69f" | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") |
Oops, something went wrong.