Skip to content

Commit

Permalink
Final jam
Browse files Browse the repository at this point in the history
  • Loading branch information
gshadows committed Feb 5, 2023
1 parent a70f8d1 commit b335bca
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func start_game():
unload()
cur_scene = Game.instance()
cur_scene.difficulty = Settings.SCORES_TABLE_NORMAL
cur_scene.startup_time_limit = 80.0
cur_scene.startup_time_limit = 75.0
cur_scene.chunks_left = 20
add_child(cur_scene)
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
Expand Down
Binary file added audio/owl_great_horned.mp3
Binary file not shown.
15 changes: 15 additions & 0 deletions audio/owl_great_horned.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
path="res://.import/owl_great_horned.mp3-985cd43ec5f051c88ca17c70939c943f.mp3str"

[deps]

source_file="res://audio/owl_great_horned.mp3"
dest_files=[ "res://.import/owl_great_horned.mp3-985cd43ec5f051c88ca17c70939c943f.mp3str" ]

[params]

loop=true
loop_offset=0
Binary file added audio/zvuki_prirody_-_sova.mp3
Binary file not shown.
15 changes: 15 additions & 0 deletions audio/zvuki_prirody_-_sova.mp3.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[remap]

importer="mp3"
type="AudioStreamMP3"
path="res://.import/zvuki_prirody_-_sova.mp3-b21d368bb91597f6fde9f4795953b1b9.mp3str"

[deps]

source_file="res://audio/zvuki_prirody_-_sova.mp3"
dest_files=[ "res://.import/zvuki_prirody_-_sova.mp3-b21d368bb91597f6fde9f4795953b1b9.mp3str" ]

[params]

loop=true
loop_offset=0
4 changes: 3 additions & 1 deletion compress_distrib.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ if not exist _export (
echo No _export found!
)

copy /Y copyrights.txt _export\

echo ===== Compressing Win-64 =====
%ARC% "_export\%GAME% x64.7z" .\_export\*x64.exe .\_export\*x64.pck
%ARC% "_export\%GAME%.7z" .\_export\*.exe .\_export\*.pck .\_export\*.txt

rem echo ===== Compressing Win-32 =====
rem %ARC% "_export\%GAME% x86.7z" .\_export\*x86.exe .\_export\*x86.pck
Expand Down
1 change: 1 addition & 0 deletions configs/translations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ LOOSE_DEATH,You're lost all your cakes!,Вы растеряли все пиро
LOOSE_TIME,The cakes got cold!,Пирожки остыли!
LOOSE_WOLF,You were eaten by a wolf!,Вас съел волк!
WOLF,Wolf!,Волк!
HISCORE,NEW RECORD:,НОВЫЙ РЕКОРД:
7 changes: 7 additions & 0 deletions copyrights.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sounds from:
https://freesound.org
https://zvukipro.com/ptici/31-zvuki-sovy.html

Fonts:
Downloaded from: https://ofont.ru/view/5643
Author: http://npoekmu.me
8 changes: 8 additions & 0 deletions ui/GameUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,20 @@ func on_temperature_changed(value: float):


func on_loose(reason:String):
$Wolf.visible = false
$Loose.visible = true
$Loose/Reason.text = tr(reason)
if is_new_high_score:
$Loose/Record.text = tr("HISCORE") + " " + str(high_score)
$Loose/Record.visible = true


func on_win():
$Wolf.visible = false
$Win.visible = true
if is_new_high_score:
$Win/Record.text = tr("HISCORE") + " " + str(high_score)
$Win/Record.visible = true


func on_wolf(is_here:bool):
Expand Down
26 changes: 25 additions & 1 deletion ui/GameUI.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]

[ext_resource path="res://sprites/korzinka.png" type="Texture" id=1]
[ext_resource path="res://ui/GameUI.gd" type="Script" id=2]
Expand All @@ -7,6 +7,7 @@
[ext_resource path="res://sprites/thermometer_scale.png" type="Texture" id=5]
[ext_resource path="res://sprites/flower.png" type="Texture" id=6]
[ext_resource path="res://ui/balkara_font/balkara_64.tres" type="DynamicFont" id=7]
[ext_resource path="res://ui/balkara_font/balkara_32.tres" type="DynamicFont" id=8]

[node name="GameUI" type="Control"]
anchor_right = 1.0
Expand Down Expand Up @@ -68,6 +69,17 @@ custom_fonts/font = ExtResource( 7 )
text = "WIN"
align = 1

[node name="Record" type="Label" parent="Win"]
visible = false
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -77.0
custom_colors/font_color = Color( 0.0352941, 1, 0, 1 )
custom_fonts/font = ExtResource( 7 )
align = 1
valign = 1

[node name="Loose" type="ColorRect" parent="."]
visible = false
anchor_left = 0.5
Expand All @@ -92,12 +104,24 @@ anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -196.0
margin_bottom = -76.0
custom_fonts/font = ExtResource( 3 )
text = "taken by ufo"
align = 1
valign = 1
autowrap = true

[node name="Record" type="Label" parent="Loose"]
visible = false
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -77.0
custom_colors/font_color = Color( 0.0352941, 1, 0, 1 )
custom_fonts/font = ExtResource( 8 )
align = 1
valign = 1

[node name="Wolf" type="Label" parent="."]
visible = false
anchor_left = 0.5
Expand Down
12 changes: 11 additions & 1 deletion ui/MenuUI.tscn
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=8 format=2]

[ext_resource path="res://ui/MenuUI.gd" type="Script" id=1]
[ext_resource path="res://ui/balkara_font/balkara_16.tres" type="DynamicFont" id=2]
[ext_resource path="res://ui/balkara_font/balkara_32.tres" type="DynamicFont" id=3]
[ext_resource path="res://audio/MenuHover - 422971__dkiller2204__sfxkeypickup.wav" type="AudioStream" id=4]
[ext_resource path="res://audio/MenuClick - 448080__breviceps__wet-click.wav" type="AudioStream" id=5]
[ext_resource path="res://audio/owl_great_horned.mp3" type="AudioStream" id=6]
[ext_resource path="res://audio/zvuki_prirody_-_sova.mp3" type="AudioStream" id=7]

[node name="MenuUI" type="Control"]
pause_mode = 2
Expand Down Expand Up @@ -68,6 +70,14 @@ stream = ExtResource( 5 )
[node name="SoundHover" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )

[node name="SoundBgOwl" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
autoplay = true

[node name="SoundBgHornet" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
autoplay = true

[connection signal="mouse_entered" from="ButtonStart" to="." method="_on_hover"]
[connection signal="pressed" from="ButtonStart" to="." method="_on_ButtonStart_pressed"]
[connection signal="mouse_entered" from="ButtonQuit" to="." method="_on_hover"]
Expand Down

0 comments on commit b335bca

Please # to comment.