develop
huangjielun 3 years ago
commit 607e82d035

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

@ -0,0 +1,32 @@
import pygame
import win32con
rules = {}
for i in range(1, 8):
eaten = [i]
for j in range(1, i):
eaten.append(j)
rules[i] = eaten
rules[1].append(7)
hint = pygame.image.load("hint.png")
capture_hint = pygame.image.load("capture_hint.png")
def tran(x,y):
pass
def ismove(old_x, old_y, x, y, id, MAP):
pass
def path(id, x, y, status):
if status:
movement = []
for i in range(9):
for j in range(7):
if ismove(x, y, i, j, id, MAP):
movement.append([i, j])
for i, j in movement:
WIN.blit(hint, tran(i,j))
WIN.blit(capture_hint,tran(x,y))
else:
pass#重新绘制
Loading…
Cancel
Save