generated from mwc/project_game
I fixed the flickering! And I have an interior!
This commit is contained in:
10
cursor.py
10
cursor.py
@@ -28,10 +28,6 @@ class Cursor:
|
||||
if game.on_board(new_position):
|
||||
if game.is_empty(new_position):
|
||||
self.position = new_position
|
||||
|
||||
def hide(self):
|
||||
'''
|
||||
This is called because I was calling this method based on an agent's location, but I don't need the
|
||||
cursor to do anything.
|
||||
'''
|
||||
pass
|
||||
else:
|
||||
game.get_agents_by_position()[new_position][0].display = False
|
||||
self.position = new_position
|
||||
Reference in New Issue
Block a user