Compare commits
No commits in common. "5950f7f5bfc8a89a207f2d45762a8a598dc9970f" and "26cc09241f3ef1ea39cbd880b4e24c30ac0d66b7" have entirely different histories.
5950f7f5bf
...
26cc09241f
11 changed files with 3 additions and 136 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
*.csproj.old
|
|
||||||
# Binaries
|
# Binaries
|
||||||
bin/
|
bin/
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Godot.NET.Sdk/4.2.1">
|
<Project Sdk="Godot.NET.Sdk/4.1.1">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||||
|
|
BIN
locales/en.mo
BIN
locales/en.mo
Binary file not shown.
|
@ -1,36 +0,0 @@
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"POT-Creation-Date: \n"
|
|
||||||
"PO-Revision-Date: \n"
|
|
||||||
"Last-Translator: \n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"Language: en\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
||||||
"X-Generator: Poedit 3.4.2\n"
|
|
||||||
|
|
||||||
msgid "Press Start or Enter"
|
|
||||||
msgstr "Press Start or Enter"
|
|
||||||
|
|
||||||
msgid "by Tea Sanctuary, 2023"
|
|
||||||
msgstr "by Tea Sanctuary, 2023"
|
|
||||||
|
|
||||||
msgid "CONGRATULATIONS!"
|
|
||||||
msgstr "CONGRATULATIONS!"
|
|
||||||
|
|
||||||
msgid ""
|
|
||||||
"It took you\n"
|
|
||||||
"{0} attempts\n"
|
|
||||||
"and {1}\n"
|
|
||||||
"to finish the game."
|
|
||||||
msgstr ""
|
|
||||||
"It took you\n"
|
|
||||||
"{0} attempts\n"
|
|
||||||
"and {1}\n"
|
|
||||||
"to finish the game."
|
|
||||||
|
|
||||||
msgid "Thank you for playing! :)"
|
|
||||||
msgstr "Thank you for playing! :)"
|
|
BIN
locales/ru.mo
BIN
locales/ru.mo
Binary file not shown.
|
@ -1,37 +0,0 @@
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: \n"
|
|
||||||
"POT-Creation-Date: \n"
|
|
||||||
"PO-Revision-Date: \n"
|
|
||||||
"Last-Translator: \n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"Language: ru\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
|
||||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
|
|
||||||
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
|
|
||||||
"X-Generator: Poedit 3.4.2\n"
|
|
||||||
|
|
||||||
msgid "Press Start or Enter"
|
|
||||||
msgstr "Нажмите Start или Enter"
|
|
||||||
|
|
||||||
msgid "by Tea Sanctuary, 2023"
|
|
||||||
msgstr "разработчик: Tea Sanctuary, 2023"
|
|
||||||
|
|
||||||
msgid "CONGRATULATIONS!"
|
|
||||||
msgstr "ПОЗДРАВЛЯЕМ!"
|
|
||||||
|
|
||||||
msgid ""
|
|
||||||
"It took you\n"
|
|
||||||
"{0} attempts\n"
|
|
||||||
"and {1}\n"
|
|
||||||
"to finish the game."
|
|
||||||
msgstr ""
|
|
||||||
"Вам потребовалось\n"
|
|
||||||
"{0} попыток\n"
|
|
||||||
"и {1}\n"
|
|
||||||
"чтобы пройти игру."
|
|
||||||
|
|
||||||
msgid "Thank you for playing! :)"
|
|
||||||
msgstr "Спасибо за игру! :)"
|
|
|
@ -1,17 +0,0 @@
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "Press Start or Enter"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "by Tea Sanctuary, 2023"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "CONGRATULATIONS!"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "It took you\n{0} attempts\nand {1}\nto finish the game."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "Thank you for playing! :)"
|
|
||||||
msgstr ""
|
|
|
@ -12,7 +12,7 @@ config_version=5
|
||||||
|
|
||||||
config/name="1bit-game-jam"
|
config/name="1bit-game-jam"
|
||||||
run/main_scene="res://scenes/menu.tscn"
|
run/main_scene="res://scenes/menu.tscn"
|
||||||
config/features=PackedStringArray("4.2", "C#", "Mobile")
|
config/features=PackedStringArray("4.1", "C#", "Mobile")
|
||||||
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
|
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
@ -71,15 +71,6 @@ ui_confirm={
|
||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":false,"script":null)
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":6,"pressure":0.0,"pressed":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
ui_change_language={
|
|
||||||
"deadzone": 0.5,
|
|
||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":76,"key_label":0,"unicode":108,"echo":false,"script":null)
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
[internationalization]
|
|
||||||
|
|
||||||
locale/translations=PackedStringArray("res://locales/en.po", "res://locales/ru.po")
|
|
||||||
|
|
||||||
[layer_names]
|
[layer_names]
|
||||||
|
|
||||||
|
|
|
@ -281,22 +281,6 @@ text = "Press Start or Enter"
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
vertical_alignment = 1
|
vertical_alignment = 1
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="CanvasLayer"]
|
|
||||||
anchors_preset = 12
|
|
||||||
anchor_top = 1.0
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_top = -18.0
|
|
||||||
offset_bottom = 8.00002
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 0
|
|
||||||
rotation = -0.001216
|
|
||||||
auto_translate = false
|
|
||||||
theme = ExtResource("3_d3ur4")
|
|
||||||
text = "Press L to change language"
|
|
||||||
horizontal_alignment = 1
|
|
||||||
vertical_alignment = 1
|
|
||||||
|
|
||||||
[node name="Flash" type="TextureRect" parent="CanvasLayer"]
|
[node name="Flash" type="TextureRect" parent="CanvasLayer"]
|
||||||
clip_children = 2
|
clip_children = 2
|
||||||
material = SubResource("ShaderMaterial_eqq24")
|
material = SubResource("ShaderMaterial_eqq24")
|
||||||
|
|
|
@ -1,21 +1,13 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using Godot;
|
using Godot;
|
||||||
using Godot.Collections;
|
|
||||||
|
|
||||||
public partial class Menu : Node2D
|
public partial class Menu : Node2D
|
||||||
{
|
{
|
||||||
private Timer _timer;
|
private Timer _timer;
|
||||||
private AudioStreamPlayer2D _thunderclap;
|
private AudioStreamPlayer2D _thunderclap;
|
||||||
private AnimationPlayer _animationPlayer;
|
private AnimationPlayer _animationPlayer;
|
||||||
private Array<string> _translations = new Array<string>{"en", "ru"};
|
|
||||||
private int _languagesCount;
|
|
||||||
private int _currentLanguage = 0;
|
|
||||||
|
|
||||||
public override void _Ready()
|
public override void _Ready()
|
||||||
{
|
{
|
||||||
TranslationServer.SetLocale("en");
|
|
||||||
_languagesCount = _translations.Count;
|
|
||||||
|
|
||||||
_timer = (Timer)FindChild("Timer");
|
_timer = (Timer)FindChild("Timer");
|
||||||
_thunderclap = (AudioStreamPlayer2D)FindChild("Thunderclap");
|
_thunderclap = (AudioStreamPlayer2D)FindChild("Thunderclap");
|
||||||
_animationPlayer = (AnimationPlayer)FindChild("AnimationPlayer");
|
_animationPlayer = (AnimationPlayer)FindChild("AnimationPlayer");
|
||||||
|
@ -32,13 +24,6 @@ public partial class Menu : Node2D
|
||||||
_thunderclap.Play();
|
_thunderclap.Play();
|
||||||
_timer.Start();
|
_timer.Start();
|
||||||
}
|
}
|
||||||
else if (@event.IsActionPressed("ui_change_language"))
|
|
||||||
{
|
|
||||||
_currentLanguage++;
|
|
||||||
if (_currentLanguage >= _languagesCount)
|
|
||||||
_currentLanguage = 0;
|
|
||||||
TranslationServer.SetLocale(_translations[_currentLanguage]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ChangeScene()
|
public void ChangeScene()
|
||||||
|
|
|
@ -16,9 +16,7 @@ public partial class WinScreen : TextureRect
|
||||||
Visible = true;
|
Visible = true;
|
||||||
|
|
||||||
TextLabel.Text =
|
TextLabel.Text =
|
||||||
string.Format(Tr("It took you\n{0} attempts\nand {1}\nto finish the game."),
|
$"It took you\n{Manager.GetAttempts()} attempts\nand {Manager.GetFormattedTimeElapsed()}\nto finish the game.";
|
||||||
Manager.GetAttempts(),
|
|
||||||
Manager.GetFormattedTimeElapsed());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void _Input(InputEvent @event)
|
public override void _Input(InputEvent @event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue