Skip to content

Commit 7889697

Browse files
committed
When the clear button is executed, it moves the arrow to the start point, but the direction of the arrow can not be adjusted.
1 parent 35b253d commit 7889697

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: SQW.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import pygame as pg
2-
import time
32
import Action
43
import Map
54
pg.init()
65
status_count = 0
6+
count_point = 0
77
map_count = 0
88
point = 80
99
finished = False
@@ -101,6 +101,8 @@ def __main__():
101101
if (event.pos[0], event.pos[1]) == (x, y):
102102
print("clear")
103103
del Action.execution_list[:]
104+
Map.current_x = 20
105+
Map.current_y = 25
104106
for x in range(705, 765):
105107
for y in range(110, 165):
106108
if (event.pos[0], event.pos[1]) == (x, y):

0 commit comments

Comments
 (0)