15 hours ago · Tech · 0 comments

I think we’ll take a cut at converting from pygame to Arcade today. I have a tentative idea, and I’m prepared to fail spectacularly. We’ll look at our calls to pygame shortly. I think there are few of them. Based on what we see, we’ll decide how to do this conversion. But I have a tentative plan in mind, which, if all goes as it usually does, may last little longer than it takes me to type it in here. It goes like this: Move all the pygame drawing code to one class, which will just have a few methods, as we really only draw rectangles and lines. Create a new file with a main program in it, into which we’ll paste in and edit the Arcade boilerplate. Probably create a arcade.View subclass, inside the new main file. Either create a similar drawing class to the one in #1 above, or just edit that one to use Arcade. One of: profit! refactor scrap this and try again. Let’s take a look at the reality of pygame drawing in our current program. In main, after creating the layout, there are just…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.