fix collision detection issue

This commit is contained in:
2025-01-31 21:17:10 +08:00
parent 3cb2bf4b74
commit 6670715bf2
3 changed files with 60 additions and 18 deletions

View File

@@ -11,6 +11,12 @@ class Block:
self.x = x
self.y = y
def get_screen_x(self):
return self.x * 20
def get_screen_y(self):
return self.y * 20
class GrassBlock(Block):
id = 'grass'