Skip to content

Commit

Permalink
feat: 添加关于 'M 的新章节、关卡和配色
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Sep 26, 2024
1 parent d9fef32 commit 56c7f2c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
15 changes: 13 additions & 2 deletions data/level_data.gd
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ const LEVEL_DATA := [
"level_code": 24,
}
],

# Matrix
[
{
"question": "M {} {} [] [] []",
"choices": "MMMM MMMM 1 0 + < =",
"level_code": 29,
}
],

# Extra
[
{
"question": "[] {} {} [] [] [] [] {} {} {} {} {} [] [] [] [] [] []",
Expand All @@ -177,10 +188,10 @@ const LEVEL_DATA := [
]

## 章节的唯一标识符。
const CHAPTER_CODE := [0, 1, 2, 3, 4, 5]
const CHAPTER_CODE := [0, 1, 2, 3, 4, 5, 6]

## 章节解锁所需要前一个章节通关的关卡数量。
const CHAPTER_UNLOCK_REQUIRE := [-1, 5, 3, 3, 3, 3]
const CHAPTER_UNLOCK_REQUIRE := [-1, 1, 1, 1, 1, 1, 1]
# [][][][] {}{}{} []

# pp qqq <>=
Expand Down
15 changes: 8 additions & 7 deletions lang/translations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ CHAPTER_NAME_5,"Extra Challenges","额外挑战",""

LEVEL_NAME_0_0,"P=P","P=P","P=P"
LEVEL_NAME_0_1,"=P","=P","=P"
LEVEL_NAME_0_2,"Another Smile","Another Smile","Another Smile"
LEVEL_NAME_0_3,"Reverse","Reverse","Reverse"
LEVEL_NAME_0_4,"Reverse Again","Reverse Again","Reverse Again"
LEVEL_NAME_0_5,"Snake","Snake","Snake"
LEVEL_NAME_0_2,"Reversed","反转了","Reverse"
LEVEL_NAME_0_3,"desreveR","了转反","Reverse Again"
LEVEL_NAME_0_4,"Snake","蛇","蛇"

LEVEL_NAME_1_0,"0+0=0, 0+1=1","0+0=0, 0+1=1","0+0=0, 0+1=1"
LEVEL_NAME_1_1,"1+1=1","1+1=1","1+1=1"
LEVEL_NAME_1_2,"Swap","交换","Swap"
LEVEL_NAME_1_3,"Always True","Always True","Always True"
LEVEL_NAME_1_4,"Paper Tiger","纸老虎","Paper Tiger"
LEVEL_NAME_1_5,"Make Me Laugh","Make Me Laugh","Make Me Laugh"
LEVEL_NAME_1_5,"Make Me Laugh","令我欢笑","Make Me Laugh"
LEVEL_NAME_1_6,"Reset","重置","Reset"
LEVEL_NAME_1_7,"Not Necessary","并非必要","Not Necessary"
LEVEL_NAME_1_8,"True Reset","真正的重置","True Reset"
Expand All @@ -38,5 +37,7 @@ LEVEL_NAME_4_0,"<","<","<"
LEVEL_NAME_4_1,"<=","<=","<="
LEVEL_NAME_4_2,"<>","<>","<>"

LEVEL_NAME_5_0,"[EX] Erase Which?","[EX] Erase Which?","[EX]Erase Which?"
LEVEL_NAME_5_1,"[EX] Really Challenging","[EX] Really Challenging","[EX] Really Challenging"
LEVEL_NAME_5_0,"'M","'M","'M"

LEVEL_NAME_6_0,"[EX] Erase Which?","[EX] Erase Which?","[EX]Erase Which?"
LEVEL_NAME_6_1,"[EX] Really Challenging","[EX] Really Challenging","[EX] Really Challenging"
Binary file modified lang/translations.en.translation
Binary file not shown.
Binary file modified lang/translations.ja.translation
Binary file not shown.
Binary file modified lang/translations.zh.translation
Binary file not shown.
12 changes: 11 additions & 1 deletion scripts/image_lib/image_lib.gd
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ const PALETTE = {
"black": Color.BLACK,
"red": Color("#dd4132"),
},
"matrix": {
"lightest": Color("#00ff00"),
"light": Color("#00d400"),
"mid": Color("#007c00"),
"darkest": Color("#000000"),

"golden": Color("#f5df4d"),
"black": Color.BLACK,
"red": Color("#dd4132"),
},
"gray": {
"lightest": Color("#ebebeb"),
"light": Color("#c9c9c9"),
Expand All @@ -69,7 +79,7 @@ const PALETTE = {
},
}

const COLOR_THEMES := ["blue", "cyan", "green", "yellow", "purple", "gray"] ## 可选的配色主题 [code]theme[/code] 取值。
const COLOR_THEMES := ["blue", "cyan", "green", "yellow", "purple", "matrix", "gray"] ## 可选的配色主题 [code]theme[/code] 取值。

const COLOR_NAMES := ["lightest", "light", "mid", "darkest", "golden", "black", "red"] ## 可选的颜色代号 [code]name[/code] 取值。

Expand Down

0 comments on commit 56c7f2c

Please sign in to comment.