I am trying to use repl.it with pygame zero and I can't make it work .
I added a requirements file . But when I click run, it says it does not recognize the keyword Actor
Any idea on how to run pygame zero on this ide?
so if you want to run pygame zero, first, you would wanna create a
pygame repl (not a python one).
after you do that, then you would want to follow this documentation: https://pygame-zero.readthedocs.io/en/stable/ide-mode.html
the documentation states that you need to import
pgzrun at the top of the file, and invoke the
go function at the end. here is an example:
import pgzrun WIDTH = 800 HEIGHT = 600 def draw(): screen.clear() screen.draw.circle((400, 300), 30, 'white') pgzrun.go()
i actually created a working repl, if you want to check it out, here :)
hope i could help
Hey, I've been having a similar problem however even after following instructions I cant seem to get it to run. Even after forking your program, which ran fine in repl's pop up window, I seem to be having the same re occurring issue. What it appears to be is repl is installing the package from the wrong url. Is there any way to change the url for the package installations? @eankeen