Finished Part 2

This commit is contained in:
2019-06-22 22:44:41 -04:00
parent a582009210
commit 2e7d121be3
6 changed files with 123 additions and 25 deletions

14
entity.py Normal file
View File

@@ -0,0 +1,14 @@
class Entity:
"""
Generic object to represent players, enemies, items, etc.
"""
def __init__(self, x, y, char, color):
self.x = x
self.y = y
self.char = char
self.color = color
def move(self, dx, dy):
self.x += dx
self.y += dy