19 hours ago · Tech · 0 comments

Hello, loves! Same old content. Moving toward better Content code. I have a tentative plan. My tentative plan is to build a new Content subclass to rule them all. I am hopeful that some reasonable convergence of the various __init__ methods will be possible, and then I plan to have each of the necessary methods, presently just interact_with_player and run, implemented as a list of actions to be taken. Most everything will of course take place inside PubSub event callbacks. This might even work. I’ll be doing the work in a test file so that it won’t harm anything, and I am hopeful that with the new Interactor notion, we can work without such difficult setup. The first order of business will be to work out a reasonable testing scheme. This afternoon I do not expect to make much progress, as I do not have much time. Well, that’ll be the second order of business. First, let’s look at the __init__ methods for the existing Content implementors: class DrawableContent(Content): def…

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