Fix typo
This commit is contained in:
@@ -43,8 +43,8 @@ class Player:
|
|||||||
self.health = 100
|
self.health = 100
|
||||||
|
|
||||||
def move(self, dx, dy):
|
def move(self, dx, dy):
|
||||||
self.dx += dx
|
self.x += dx
|
||||||
self.dy += dy
|
self.y += dy
|
||||||
|
|
||||||
def damage(self, pts):
|
def damage(self, pts):
|
||||||
self.health -= pts
|
self.health -= pts
|
||||||
|
|||||||
Reference in New Issue
Block a user