Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49134c9

Browse files
committed
Fix typo
1 parent e6e5ee2 commit 49134c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Notes/04_Classes_objects/01_Class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class Player:
4343
self.health = 100
4444

4545
def move(self, dx, dy):
46-
self.dx += dx
47-
self.dy += dy
46+
self.x += dx
47+
self.y += dy
4848

4949
def damage(self, pts):
5050
self.health -= pts

0 commit comments

Comments
 (0)