This commit is contained in:
staubsauger 2024-08-16 22:33:58 +02:00
parent 75c076f03f
commit d82e76e6d4

View file

@ -57,7 +57,7 @@ class InGame(State):
center.mod(len(centers)) center.mod(len(centers))
def draw(e): def draw(e):
pos = center - e.components[Position] pos = Position(console.width//2, console.height//2) + 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]