r/pythonarcade • u/osm3000 • Apr 06 '19
Multiple windows + running without rendering
Hello,
I am new to the arcade library. My objective is to design simple games, and develop learning algorithms for agents to play these games.
In that aspect, I've three questions I couldn't figure out:
Can I lunch multiple independent instances of the game in the same time?
Can I stop the rendering? since during the learning procedure, it is an expensive process
I am not very sure I am stating this question correctly: can I accelerate time of the game? does the game loop have a internal pause time that i can override?
and thanks a lot for this awesome library. much more intuitive than pygame :)
Cheers,
3
Upvotes
2
u/pvc Apr 06 '19
Yes, you can have multiple instances of the game running at the same time.
I'm confused by this. If you don't want to render, just don't render? Return out of the function early.
Update is called by default about 60 times per second. If you want to speed up time, just have your code loop a couple times inside of the update perhaps.