Skip to content

Commit c2a512e

Browse files
committed
Add support for the direction reporter
1 parent d3113ba commit c2a512e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

block.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def evaluateBlockValue(self, eventContainer=eventContainer.EventContainer):
8989
elif self.opcode == "motion_xposition": # y position
9090
self.value = self.target.y
9191
return self.value
92+
elif self.opcode == "motion_direction": # y position
93+
self.value = self.target.direction
94+
return self.value
9295

9396
elif self.opcode == "sensing_mousex": # mouse x
9497
newX, newY = pygame.mouse.get_pos()

0 commit comments

Comments
 (0)