Skip to content

Commit

Permalink
Add support for the direction reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Secret-chest committed Jun 8, 2023
1 parent d3113ba commit c2a512e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def evaluateBlockValue(self, eventContainer=eventContainer.EventContainer):
elif self.opcode == "motion_xposition": # y position
self.value = self.target.y
return self.value
elif self.opcode == "motion_direction": # y position
self.value = self.target.direction
return self.value

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

0 comments on commit c2a512e

Please sign in to comment.