Pygame Zero Glitch

Question:
I can’t get this line of code to work, it works on my normal IDLE but not on replit but replit still says it installs it sucessfully and i’ve seen other projects use Pygame Zero
Repl link:
https://replit.com/@ParanormalCoder/Not-Working-Need-Help#main.py
Source Code:
https://pygame-zero.readthedocs.io/en/stable/ide-mode.html

import pgzrun


WIDTH = 800
HEIGHT = 600

def draw():
    screen.clear()
    screen.draw.circle((400, 300), 30, 'white')


pgzrun.go()

Hi @ParanormalCoder can you try this code in a new Repl PyGame template and let me know if it works?

1 Like

It’s working now thanks so much! :smiley:

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