Skip to content

Crash when approaching lights #111

@guidopetri

Description

@guidopetri

Hello!

First of all, thanks for your submission to Pyweek.

I'm running into an error whenever I approach the lights in your game:

[redacted][...]
 File "G:\pyweek\35\shadow-heist\PyWeek-35-main\src\classes\entities\player.py", line 178, in check_if_player_in_light
    if not self.player_laser.collides_with_list(self.game_manager.walls):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[redacted][...]
 File "C:\Users\$USER\AppData\Roaming\Python\Python311\site-packages\shapely\creation.py", line 173, in linearrings
    return lib.linearrings(coords, out=out, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: A linearring requires at least 4 coordinates.

and the discord link in your game description doesn't seem to work (it says it's invalid, maybe it expired?). Could you help me figure out how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions