游戏可以运行

This commit is contained in:
2026-05-20 20:21:27 +08:00
parent 00908667dd
commit 88b3255ab2
11 changed files with 690 additions and 0 deletions

9
game/utils.py Normal file
View File

@@ -0,0 +1,9 @@
import math
def distance(x1, y1, x2, y2):
return math.hypot(x2 - x1, y2 - y1)
def lerp(a, b, t):
return a + (b - a) * t