Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更改了 Word 的属性,增加了 Card 和 Block 颜色改变及振动功能 #36

Merged
merged 5 commits into from
Feb 8, 2024

Conversation

cutekibry
Copy link
Collaborator

  • Word:
    • 删除 is_victory: bool 属性,宣布 void set_victory(v: bool) 废用(不推荐使用)
    • 添加 color: Color 属性,使其可以任意更改颜色(方法为 void set_color_from_name(name: String)void set_color(value: Color)
    • text_id: int 由“从 1 开始”改为“从 0 开始”
  • Card:
    • 新增振动函数 void shake(is_letter_red: bool, amount: float, duration: float),振幅和时间继承自 Block,Card 自身初始化时的 ShakeTimer.wait_time 无效
    • 新增改变文字颜色的功能
  • Block:
    • 震动函数 void shake() 改为 void shake(is_frame_red: bool),新增了振动是否同时改变 Goal Frame 颜色为红色的功能

* 删除 Word 的 is_victory 属性
* 添加 Word 的 color 属性,使其可以任意更改颜色
* 将 Word 的 text_id 由“从 1 开始”改为“从 0 开始”
注意:Card 振动的振幅和时长继承自 Block,Card 本身的 ShakeTimer 初始 Wait Time 并不会被用到
@cutekibry cutekibry merged commit e653638 into main Feb 8, 2024
5 checks passed
@cutekibry cutekibry changed the title Adv shake and color change 更改了 Word 的属性,增加了 Card 和 Block 颜色改变及振动功能 Feb 8, 2024
@cutekibry
Copy link
Collaborator Author

以及修改了部分关卡配置

@cutekibry cutekibry deleted the adv-shake-and-color-change branch February 11, 2024 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant