MCPcopy Create free account
hub / github.com/alg-bug-engineer/Cheesy-AI-Fish / update_cursor

Function update_cursor

v1.py:202–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200
201# 更新光标闪烁
202def update_cursor():
203 global cursor_visible, last_cursor_time
204
205 current_time = time.time()
206 if current_time - last_cursor_time >= 0.5: # 每0.5秒闪烁一次
207 cursor_visible = not cursor_visible
208 last_cursor_time = current_time
209 display_input_box()
210
211# 小红帽的移动函数
212def move_red_hood(direction):

Callers 1

update_gameFunction · 0.85

Calls 1

display_input_boxFunction · 0.85

Tested by

no test coverage detected