From c2a512eb91a804f3cb4efa9f4de21956a95aecf8 Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 8 Jun 2023 18:56:34 +0300 Subject: [PATCH] Add support for the direction reporter --- block.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block.py b/block.py index 135269f..df3f204 100644 --- a/block.py +++ b/block.py @@ -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()