Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Assembly v 2.3 (14.01.24)
Browse files Browse the repository at this point in the history
  • Loading branch information
adslbarxatov committed Jan 14, 2024
1 parent c9db2c7 commit d4cb32e
Show file tree
Hide file tree
Showing 10 changed files with 262 additions and 243 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Константы, используемые далее по тексту
env:
PROJ: ${{ github.event.repository.name }}
TAG: '2.2.14'
TAG: '2.3'

steps:
# Проверка состава репозитория (без анализа, как может показаться)
Expand Down
Binary file added .release/Races.exe
Binary file not shown.
12 changes: 12 additions & 0 deletions .release/Races_en_us.dph
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
In this game you need to drive the entire track (12 levels), without colliding with other cars. For overtaking them, and also for diamonds caught on the road points will be awarded; they will be reduced for collisions. Each new level involves more speed and more cars to overtake. Good luck!

Controls:
[Space] – pause / resume / start game
[↑] – accelerator
[↓] – brake
[←], [→] – movement
[Esc] – exit the game
[S] – mute / unmute SFX
[M] – turn on / off the music
[L] – change the interface language
[F1] – show the help materials
12 changes: 12 additions & 0 deletions .release/Races_ru_ru.dph
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
В игре необходимо проехать всю трассу (12 уровней), не сталкиваясь с другими автомобилями. За их обгон, а также за пойманные на дороге бриллианты будут начисляться очки; за столкновения они будут сниматься. Каждый новый уровень предполагает бо́льшую скорость и большее число машин, которые нужно обогнать. Удачи!

Управление:
[Пробел] – пауза / возобновление / начало игры
[↑] – ускорение
[↓] – торможение
[←], [→] – движение по полосам
[Esc] – выход из игры
[S] – включение / выключение звуков
[M] – включение / выключение музыки
[L] – выбор языка интерфейса
[F1] – отображение справочных материалов
6 changes: 3 additions & 3 deletions .release/Release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
_Changes for v 2.2.14_:
- Added a new version of offline help;
- Completed the process of version control unification
_Changes for v 2.3_:
- Core updates have been applied;
- Added a new version of offline help
3 changes: 3 additions & 0 deletions Changes.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Races minigame: changes log

Version 2.3:
• Core updates have been applied

Version 2.2.14:
• Added a new version of offline help

Expand Down
422 changes: 211 additions & 211 deletions src/RacesGame.cs

Large diffs are not rendered by default.

38 changes: 20 additions & 18 deletions src/RacesProgram.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
using System.IO;
using System.Windows.Forms;

namespace RD_AAOW
{
/// <summary>
/// Êëàññ îïèñûâàåò òî÷êó âõîäà ïðèëîæåíèÿ
/// Класс описывает точку входа приложения
/// </summary>
public static class RacesProgram
{
// Ðåñóðñû ïðèëîæåíèÿ
// Ресурсы приложения
private static string[] Pths = {
// Âñå ôîíîâûå èçîáðàæåíèÿ
// Все фоновые изображения
"Background\\Back.xnb",
"Background\\StartBack.xnb",

// Øðèôòû
// Шрифты
"Font\\BigFont.xnb",
"Font\\DefFont.xnb",
"Font\\MidFont.xnb",

// Âñå ìåëîäèè
// Все мелодии
"Sounds\\Ate1.xnb",
"Sounds\\Bythe.xnb",
"Sounds\\CBrake.xnb",
Expand All @@ -34,7 +33,7 @@ public static class RacesProgram
"Sounds\\SStop.xnb",
"Sounds\\SStart.xnb",

// Âñå tiles
// Все tiles
"Tiles\\Bythe00.xnb",
"Tiles\\Bythe01.xnb",
"Tiles\\Bythe02.xnb",
Expand Down Expand Up @@ -62,38 +61,41 @@ public static class RacesProgram
};

/// <summary>
/// Òî÷êà âõîäà ïðèëîæåíèÿ
/// Точка входа приложения
/// </summary>
/// <param name="args">Àãðóìåíòû êîìàíäíîé ñòðîêè</param>
/// <param name="args">Агрументы командной строки</param>
public static void Main (string[] args)
{
// Èíèöèàëèçàöèÿ
// Инициализация
Application.EnableVisualStyles ();
Application.SetCompatibleTextRenderingDefault (false);

// Êîíòðîëü XPUN
if (!Localization.IsXPUNClassAcceptable)
// Контроль XPUN
if (!RDLocale.IsXPUNClassAcceptable)
return;

// Ïðîâåðêà çàïóñêà åäèíñòâåííîé êîïèè
// Проверка запуска единственной копии
if (!RDGenerics.IsAppInstanceUnique (true))
return;

// Îòîáðàæåíèå ñïðàâêè è çàïðîñà íà ïðèíÿòèå Ïîëèòèêè
// Отображение справки и запроса на принятие Политики
if (!RDGenerics.AcceptEULA ())
return;
RDGenerics.ShowAbout (true);

// Êîíòðîëü ïðàâ
// Контроль прав
bool _ = RDGenerics.IsRegistryAccessible;

// Âûïîëíåíèå ïðîâåðêè íà íàëè÷èå âñåõ íåîáõîäèìûõ ôàéëîâ
for (int i = 0; i < Pths.Length; i++)
// Выполнение проверки на наличие всех необходимых файлов
/*for (int i = 0; i < Pths.Length; i++)
if (!File.Exists (".\\Content\\Races\\" + Pths[i]))
{
RDGenerics.LocalizedMessageBox (RDMessageTypes.Error_Center, "MissingFile");
return;
}
}*/
if (!RDGenerics.CheckLibraries (Pths, "Content\\" + ProgramDescription.AssemblyMainName +
"\\", true))
return;

using (RacesGame game = new RacesGame ())
game.Run ();
Expand Down
5 changes: 0 additions & 5 deletions src/Races_en_us.resx
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ left: {0,5:D}</value>
<data name="LoseLines" xml:space="preserve">
<value>CAR IS CRASHED! Press [Space] to try again</value>
</data>
<data name="MissingFile" xml:space="preserve">
<value>Missing file “{0:S}”.

Reinstall the game or contact the developer</value>
</data>
<data name="Pause" xml:space="preserve">
<value>PAUSE</value>
</data>
Expand Down
5 changes: 0 additions & 5 deletions src/Races_ru_ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@
<data name="LoseLines" xml:space="preserve">
<value>МАШИНА РАЗБИТА! Нажмите [Пробел], чтобы попробовать снова</value>
</data>
<data name="MissingFile" xml:space="preserve">
<value>Отсутствует файл «{0:S}».

Выполните повторную установку игры или обратитесь к разработчику</value>
</data>
<data name="Pause" xml:space="preserve">
<value>ПАУЗА</value>
</data>
Expand Down

0 comments on commit d4cb32e

Please sign in to comment.