project_game/wall_vert.py

19 lines
391 B
Python

class Wall_vert:
character = ''
color = 'blue'
passable = False
@classmethod
def vertline(cls, origin, height):
agents = []
x, y = origin
for dy in range(height):
wall_vert = Wall_vert((x, y + dy))
agents.append(wall_vert)
return agents
def __init__(self, position):
self.position = position