Why is it saying no available video device?

Why is it saying no available video device
Repl link:

code snippet

WIN = pygame.display.set_mode((WIDTH, HEIGHT))

Click Files > ⋮ > Show hidden files. Copy the pygame replit.nix into your repl.

copy it onto my main?

replace the replit.nix file in your repl with the replit.nix file I linked

It has started creating errors

ah, didn’t realise that the pygame template uses an outdated nix channel. Replace xlibs with xorg in the replit.nix file


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.