Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuiDBK/WordSprite
/ functions
Functions
75 in github.com/HuiDBK/WordSprite
⨍
Functions
75
◇
Types & classes
14
↓ 28 callers
Method
update
更新显示的文字
word_sprite/Game_Sprite.py:65
↓ 9 callers
Method
draw
(self)
word_sprite/Game_Sprite.py:192
↓ 9 callers
Method
hor_center
水平居中显示 :param screen_rect: 游戏屏幕大小 :return:
word_sprite/Game_Sprite.py:25
↓ 9 callers
Method
set_pos
(self, x, y)
word_sprite/Game_Sprite.py:170
↓ 5 callers
Method
__init__
初始化动画资源
word_sprite/Game_Sprite.py:154
↓ 5 callers
Method
run
开启游戏设置界面
word_sprite/Game_View.py:281
↓ 5 callers
Method
voice_flag
(cls)
word_sprite/Game_View.py:156
↓ 3 callers
Method
__init__
(self, title)
word_sprite/Game_View.py:21
↓ 3 callers
Method
get_game_level
(data)
word_sprite/Game_View.py:404
↓ 3 callers
Function
random_music
随机播放背景音乐
word_sprite/Game_Main.py:26
↓ 2 callers
Method
__delete_words
单词回删
word_sprite/Game_Main.py:424
↓ 2 callers
Method
__is_on_set
检查是否在设置图片上 :param x,y 鼠标的位置
word_sprite/Game_Main.py:408
↓ 2 callers
Method
__random_generate_word
随机生成单词精灵 :param word_num:精灵数量 默认5 :return:
word_sprite/Game_Main.py:434
↓ 2 callers
Method
color_callback
颜色按钮回调方法
word_sprite/Game_View.py:294
↓ 2 callers
Method
transform_scale
缩放图片大小
word_sprite/Game_Sprite.py:43
↓ 1 callers
Method
__animate_action
开启单词拼写成功动画
word_sprite/Game_Main.py:569
↓ 1 callers
Method
__check_spell_word
检查拼写单词是否正确
word_sprite/Game_Main.py:507
↓ 1 callers
Method
__create_sprite
创建精灵和精灵组
word_sprite/Game_Main.py:126
↓ 1 callers
Method
__draw_game_blood
绘制游戏能量
word_sprite/Game_Main.py:533
↓ 1 callers
Method
__event_handle
游戏事件监听
word_sprite/Game_Main.py:302
↓ 1 callers
Method
__event_handler
窗口事件监听
word_sprite/Game_View.py:77
↓ 1 callers
Method
__event_handler
(self)
word_sprite/Game_View.py:298
↓ 1 callers
Method
__event_handler
窗口事件监听
word_sprite/Game_View.py:487
↓ 1 callers
Method
__game_over
游戏结束
word_sprite/Game_Main.py:476
↓ 1 callers
Method
__game_over_sprite
创建游戏结束的精灵(组)
word_sprite/Game_Main.py:183
↓ 1 callers
Method
__init_layout
初始化窗口布局
word_sprite/Game_View.py:44
↓ 1 callers
Method
__init_layout
(self)
word_sprite/Game_View.py:192
↓ 1 callers
Method
__init_layout
初始化窗口布局
word_sprite/Game_View.py:434
↓ 1 callers
Method
__parser_config
解析游戏配置文件
word_sprite/Game_Info.py:53
↓ 1 callers
Method
__reset_game
游戏重玩
word_sprite/Game_Main.py:575
↓ 1 callers
Method
__update_sprite
更新精灵
word_sprite/Game_Main.py:225
↓ 1 callers
Method
action
(self)
word_sprite/Game_Sprite.py:175
↓ 1 callers
Method
author_win
游戏开发信息窗口
word_sprite/Game_View.py:123
↓ 1 callers
Function
center_pos
设置游戏窗口相对电脑屏幕居中
word_sprite/Game_Main.py:17
↓ 1 callers
Method
game_init
游戏初始化
word_sprite/Game_Main.py:61
↓ 1 callers
Method
game_set
游戏设置
word_sprite/Game_View.py:143
↓ 1 callers
Method
load_words
加载英语单词 return: { "CET4": [ { "eng_word": "a", "cn_comment": "
word_sprite/Game_Main.py:86
↓ 1 callers
Function
main
()
main.py:4
↓ 1 callers
Function
main
()
word_sprite/Game_Info.py:219
↓ 1 callers
Function
main
()
word_sprite/Game_View.py:498
↓ 1 callers
Method
permanent
永久保存游戏配置信息(写入配置文件)
word_sprite/Game_View.py:393
↓ 1 callers
Method
random_pos
随机位置
word_sprite/Game_Sprite.py:103
↓ 1 callers
Function
run
()
word_sprite/Game_Main.py:586
↓ 1 callers
Method
set_game_event
设置游戏事件
word_sprite/Game_Main.py:73
↓ 1 callers
Method
set_game_init_blood
设置游戏的初始血条
word_sprite/Game_Info.py:91
↓ 1 callers
Method
set_game_level
设置游戏等级
word_sprite/Game_Info.py:85
↓ 1 callers
Method
set_highest_score
更新历史最高记录
word_sprite/Game_Info.py:109
↓ 1 callers
Method
set_pos
设置精灵位置
word_sprite/Game_Sprite.py:20
↓ 1 callers
Method
set_spell_ok_color
设置单词拼写成功后的颜色
word_sprite/Game_Info.py:103
↓ 1 callers
Method
set_word_normal_color
设置单词的正常颜色
word_sprite/Game_Info.py:97
↓ 1 callers
Method
set_word_size
设置单词大小
word_sprite/Game_Info.py:79
↓ 1 callers
Method
show_score
查看历史最高分
word_sprite/Game_View.py:147
↓ 1 callers
Method
start_game
打字游戏开启
word_sprite/Game_Main.py:272
↓ 1 callers
Method
temp_save
临时保存游戏配置信息(临时有效,重开还原)
word_sprite/Game_View.py:374
↓ 1 callers
Method
voice_control
游戏静音状态控制
word_sprite/Game_View.py:114
Method
__drop_blood
持续掉血
word_sprite/Game_Main.py:555
Method
__init__
(self)
word_sprite/Game_Info.py:38
Method
__init__
(self, title)
word_sprite/Game_View.py:37
Method
__init__
(self)
word_sprite/Game_View.py:168
Method
__init__
初始化游戏配置界面
word_sprite/Game_View.py:184
Method
__init__
(self, title, parent_win=None)
word_sprite/Game_View.py:429
Method
__init__
(self)
word_sprite/Game_Main.py:105
Method
__init__
(self)
word_sprite/Game_Sprite.py:15
Method
__init__
(self, image)
word_sprite/Game_Sprite.py:38
Method
__init__
(self, text, size=Game_Info.WORD_SIZE, color=Game_Info.WHITE)
word_sprite/Game_Sprite.py:52
Method
__init__
(self, text, size=Game_Info.WORD_SIZE, color=Game_Info.WORD_SPELL_OK_COLOR)
word_sprite/Game_Sprite.py:79
Method
__init__
(self, text, cn_comment, speed: float, size=28, color=Game_Info.WORD_COLOR)
word_sprite/Game_Sprite.py:97
Method
__new__
(cls, *args, **kwargs)
word_sprite/Game_Info.py:33
Method
close_win
关闭窗口
word_sprite/Game_View.py:26
Function
main
()
word_sprite/Game_Sprite.py:199
Method
run
启动游戏开始窗口
word_sprite/Game_View.py:68
Method
run
启动游戏历史分数窗口
word_sprite/Game_View.py:476
Method
start_game
开始游戏
word_sprite/Game_View.py:151
Method
update
更新拼写的单词
word_sprite/Game_Sprite.py:82
Method
update
更新单词精灵
word_sprite/Game_Sprite.py:111