XMWAI 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of XMWAI might be problematic. Click here for more details.
- XMWAI/bomb_core.py +4 -4
- XMWAI/core.py +1 -1
- {xmwai-0.2.1.dist-info → xmwai-0.2.3.dist-info}/METADATA +1 -1
- {xmwai-0.2.1.dist-info → xmwai-0.2.3.dist-info}/RECORD +7 -7
- {xmwai-0.2.1.dist-info → xmwai-0.2.3.dist-info}/WHEEL +0 -0
- {xmwai-0.2.1.dist-info → xmwai-0.2.3.dist-info}/licenses/LICENSE.txt +0 -0
- {xmwai-0.2.1.dist-info → xmwai-0.2.3.dist-info}/top_level.txt +0 -0
XMWAI/bomb_core.py
CHANGED
|
@@ -3,9 +3,10 @@ import time
|
|
|
3
3
|
from importlib.resources import files
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
|
|
6
|
-
def bomb(screen,
|
|
6
|
+
def bomb(screen, t):
|
|
7
7
|
"""显示炸弹爆炸动画(包含坐标检查和自动预加载)"""
|
|
8
|
-
|
|
8
|
+
x = t.xcor()
|
|
9
|
+
y = t.ycor()
|
|
9
10
|
# 坐标检查:不能打击自己
|
|
10
11
|
if x == 0 and y == 0:
|
|
11
12
|
screen.tracer(False)
|
|
@@ -49,8 +50,7 @@ def bomb(screen, x, y):
|
|
|
49
50
|
# 显示文本信息
|
|
50
51
|
b.hideturtle()
|
|
51
52
|
text = f" 💥 成功打击\n坐标({x}, {y})"
|
|
52
|
-
b.
|
|
53
|
-
b.goto(x, y - 35)
|
|
53
|
+
b.goto(x, y - 55)
|
|
54
54
|
b.write(text, align="center", font=("微软雅黑", 12))
|
|
55
55
|
|
|
56
56
|
screen.update()
|
XMWAI/core.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
XMWAI/__init__.py,sha256=A0lYc0BhFCbuZC-F4Qkd2tutd-yc-zA_kQ_Rhv-VjjI,510
|
|
2
|
-
XMWAI/bomb_core.py,sha256=
|
|
3
|
-
XMWAI/core.py,sha256=
|
|
2
|
+
XMWAI/bomb_core.py,sha256=eEC-PjN77CMKEVYEd1_WOsaFIHe9QD_28ti6UEuP9Ek,1714
|
|
3
|
+
XMWAI/core.py,sha256=Z20Q0v2wvE8-70Ulxxc_vpXI-Z86PwNMw9fW1J3zkQo,8049
|
|
4
4
|
XMWAI/idiom.json,sha256=HUtPRUzhxBbWoasjadbmbA_5ngQ5AXLu9weQSZ4hzhk,10319857
|
|
5
5
|
XMWAI/idiom_core.py,sha256=0Uu9GxVwEvFAhjj0M2Orw-E9FjKT05jKQDbUvg0wAXE,1577
|
|
6
6
|
XMWAI/magic_core.py,sha256=XU7K4Ta7EAvwBLk20_Hlu18E6Kz8B0HxUBq0YsawikE,3441
|
|
@@ -91,8 +91,8 @@ XMWAI/gif/84.gif,sha256=6Ip_uQmvrr2fagLXu1YqWyI_DL2PVVtKCPtmNtzt3P4,38767
|
|
|
91
91
|
XMWAI/gif/85.gif,sha256=6Ip_uQmvrr2fagLXu1YqWyI_DL2PVVtKCPtmNtzt3P4,38767
|
|
92
92
|
XMWAI/gif/9.gif,sha256=cPouth-xwc3QPcg2m6HMP2OD1ZCeRBD_-RPImvvKAA0,9485
|
|
93
93
|
XMWAI/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
94
|
-
xmwai-0.2.
|
|
95
|
-
xmwai-0.2.
|
|
96
|
-
xmwai-0.2.
|
|
97
|
-
xmwai-0.2.
|
|
98
|
-
xmwai-0.2.
|
|
94
|
+
xmwai-0.2.3.dist-info/licenses/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
|
|
95
|
+
xmwai-0.2.3.dist-info/METADATA,sha256=iZN1DcwEqo-1R2q3V9rKXj8J6TWDRhOd5mTrO1bH_Hw,1033
|
|
96
|
+
xmwai-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
97
|
+
xmwai-0.2.3.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
|
|
98
|
+
xmwai-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|