Создать отладочную тему | Create a debug theme

This commit is contained in:
2020-09-07 16:27:44 +03:00
parent 925b8602e8
commit 91659cdfd4
50 changed files with 114 additions and 12 deletions

49
0000
View File

@@ -1,5 +1,48 @@
Привет | Hello Отладочные фишки Маджонга | Mahjong debug tiles
1.0.0 1.0.0
/привет|hello.череда x /пуск|run.js
x /привет|hello.js /пуск|run.череда
2 /_фон-128_1.png
2 /_фон-128_2.png
2 /_фон-128_3.png
2 /_фон-128_4.png
2 /_фон-128_5.png
2 /_фон-128_6.png
2 /_фон-128_7.png
2 /_фон-128_8.png
2 /_фон-128_9.png
2 /_фон-128_10.png
2 /_фон-128_11.png
2 /_фон-128_12.png
2 /_фон-128_13.png
2 /_фон-128_14.png
2 /_фон-128_15.png
2 /_фон-128_16.png
2 /_фон-128_17.png
2 /_фон-128_18.png
2 /_фон-128_19.png
2 /_фон-128_20.png
2 /_фон-128_21.png
2 /_фон-128_22.png
2 /_фон-128_23.png
2 /_фон-128_24.png
2 /_фон-128_25.png
2 /_фон-128_26.png
2 /_фон-128_27.png
2 /_фон-128_28.png
2 /_фон-128_29.png
2 /_фон-128_30.png
2 /_фон-128_31.png
2 /_фон-128_32.png
2 /_фон-128_33.png
2 /_фон-128_34.png
2 /_фон-128_|с.png
2 /_фон-128_|с|.png
2 /_фон-128_||с|.png
2 /_фон-128_||с||.png
2 /_фон-128_|ц.png
2 /_фон-128_|ц|.png
2 /_фон-128_||ц|.png
2 /_фон-128_||ц||.png

BIN
_разметка-128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
_фон-128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
_фон-128_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_13.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_15.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_17.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_18.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_19.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_21.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_22.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_23.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_27.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_28.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_30.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_31.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_33.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_34.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
_фон-128_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_||с|.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_||с||.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_||ц|.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_||ц||.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_|с.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_|с|.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
_фон-128_|ц.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
_фон-128_|ц|.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -1,7 +0,0 @@
ПоприветствоватьМир = function()
{
console.log("Привет, мир!");
console.log("Hello, world!");
document.body.innerHTML += "<h1>Привет, мир!</h1>";
document.body.innerHTML += "<h1>Hello, world!</h1>";
};

View File

@@ -1,2 +0,0 @@
пуск
поприветствовать мир

38
пуск|run.js Normal file
View File

@@ -0,0 +1,38 @@
const ИМЯ = "Отладочные фишки Маджонга | Mahjong debug tiles";
ЗарегистрироватьОтладочнуюТемуФишекМаджонга = мир =>
{
var тема = {
"🗿": ИМЯ,
};
// Первые 34 фишки, которые по 4 попадают в игровое поле.
for (var номер = 1; номер <= 34; ++номер)
{
тема[номер] = `/_фон-128_${номер}.png`;
}
// Последние 8 фишек, которые по одной попадают в игровое поле.
тема[35] = "/_фон-128_|с.png";
тема[36] = "/_фон-128_|с|.png";
тема[37] = "/_фон-128_||с|.png";
тема[38] = "/_фон-128_||с||.png";
тема[39] = "/_фон-128_|ц.png";
тема[40] = "/_фон-128_|ц|.png";
тема[41] = "/_фон-128_||ц|.png";
тема[42] = "/_фон-128_||ц||.png";
мир.темыФишек["отладочная|debug"] = тема;
};
// // // //
СоздатьХранилищеТемФишекМаджонга = мир =>
{
if (!мир.темыФишек)
{
мир.темыФишек = {};
}
};

View File

@@ -0,0 +1,3 @@
ручной пуск
создать хранилище тем фишек маджонга
зарегистрировать отладочную тему фишек маджонга

View File

@@ -0,0 +1,27 @@
#!/bin/bash
SRC="_фон-128.png"
makeTexture()
{
src=$1
char=$2
# Имя файла без расширения.
# File name without extension.
dst="${src%.*}_${char}.png"
convert -pointsize 20 -draw "text 30,85 '$char'" $src $dst
}
# Первые 34 группы фишек, по 4 каждой в поле.
for i in {1..34}; do
echo $i
makeTexture $SRC $i
done
# Оставшиеся 8 фишек, по одной в поле.
makeTexture $SRC "|ц"
makeTexture $SRC "|ц|"
makeTexture $SRC "||ц|"
makeTexture $SRC "||ц||"
makeTexture $SRC "|с"
makeTexture $SRC "|с|"
makeTexture $SRC "||с|"
makeTexture $SRC "||с||"