This commit is contained in:
staubsauger 2024-08-16 22:28:03 +02:00
parent 36d6b63c31
commit 75c076f03f

View file

@ -57,7 +57,7 @@ class InGame(State):
center.mod(len(centers)) center.mod(len(centers))
def draw(e): def draw(e):
pos = e.components[Position] - center pos = center - e.components[Position]
if (-console.width//2 <= pos.x < console.width//2\ if (-console.width//2 <= pos.x < console.width//2\
and -console.height//2 <= pos.y < console.height//2): and -console.height//2 <= pos.y < console.height//2):
graphic = e.components[Graphic] graphic = e.components[Graphic]