From: lbcmk <30442978+lbcmk@users.noreply.github.com> Date: Mon, 11 Jul 2022 17:42:31 +0000 (-0400) Subject: added portal rect X-Git-Url: http://git.skullheadx.com/index.css?a=commitdiff_plain;h=57d35c21a14adb88f356e3820670ab454f9c00bb;p=Pygame-Jam.git added portal rect --- diff --git a/Function/Portal.py b/Function/Portal.py index 5d6d33e..16f3b9d 100644 --- a/Function/Portal.py +++ b/Function/Portal.py @@ -31,6 +31,7 @@ class Transition: coords[1] += self.portalYAnim a = (((offsetX-self.width/2) + coords[0], offsetY + coords[1]), (offsetX+coords[0], offsetY-self.height/2+coords[1]), (offsetX+self.width/2 + coords[0], offsetY+coords[1]), (offsetX + coords[0], offsetY+self.height/2 + coords[1])) + portal_rect = (a[0][0], a[1][1], a[2][0], a[3][1]) # print(a[0][0], a[1][1], a[2][0], a[3][1]) # print(playerPos[0], playerPos[1])