Show more

Python 63 - Keep trying ...
Let's move some more Game responsibilities closer to where they belong. (It goes better this time!)
ronjeffries.com/articles/-y023

Show thread

Python 64 - A little bit more ...
We must be pretty close to done in our quest to move responsibilities down to Fleets, Fleet, and flyers. Also some generic Python thoughts.
ronjeffries.com/articles/-y023

Show thread

Python 65 - Can I find a small step?
It's afternoon and I have some distractions. I'd be wise not to try anything, but maybe I can find some tiny safe steps.
ronjeffries.com/articles/-y023

Show thread

Python 66 - Refactoring Complete?
We'll finish up our refactoring of the checking methods down into Fleets and lower. Quite a few odds and ends, none of them difficult. A noticeable improvement to Game.
ronjeffries.com/articles/-y023

Show thread

Python 67 - Looking Around
We do a bit of review of the code today, and we find some nice improvements.
ronjeffries.com/articles/-y023

Show thread

Python 68 - Design Issues
Thinking about some design issues, some good, some maybe not so good. Seven footnotes, none useful.
ronjeffries.com/articles/-y023

Show thread

Python 69 - TIL. Well, YIL.
I learned something new, and apply it. Also I have an idea of my own. Will wonders never cease!?!?
ronjeffries.com/articles/-y023

Show thread

Python 70 - Loose Ends
I have some loose end notes in my keyboard tray Jira. Let's have a look at some of them.
ronjeffries.com/articles/-y023

Show thread

Python 71 - Let's have some fun!
I almost always have fun here, actually, but today let's explode the ship. That should be a good exercise for the Fleet-based design.
ronjeffries.com/articles/-y023

Show thread

Python 72 - Better fragments
We have some rudimentary fragments. Let's make some better ones. I spend ages tweaking numbers.
ronjeffries.com/articles/-y023

Show thread

Python 73 - WAY over the top!
Today I plan to add gold to the gilded lily, in the form of still more enhancements to the Ship's explosion. Unjustified, but I plan to be amused by the result. And I am.
ronjeffries.com/articles/-y023

Show thread

Python 74 - That method
I want to take a look at the explosion, especially the draw method and see how we can clean it up. Many many tiny steps FTW! (Long, detailed.)
ronjeffries.com/articles/-y023

Show thread

Python 75 - Before / After
Just the before and after versions of the refactored Fragment classes. Lurvely.
ronjeffries.com/articles/-y023

Show thread

Python 76 - Avoid subclasses
While I am OK with the subclass design, I think we can do better. Also "Replace polymorphism with data."
ronjeffries.com/articles/-y023

Show thread

Python 77 - A tiny Language
We want to get rid of the GFragment class. To do that, we have to get a little head.
ronjeffries.com/articles/-y023

Show thread

Python 79 - More Position
We'll continue plugging in the MovableLocation, but I think it may need a better name.
ronjeffries.com/articles/-y023

Show thread

Python 80 - What Now?
I want to while away a little time. What can we find that's right-sized?
ronjeffries.com/articles/-y023

Show thread

Python 84 - Sound!!
As one would hope, sound generation in pygame is pretty simple. I managed to work out the basics all by myself. Well, myself and the entire Internet.
ronjeffries.com/articles/-y023

Unfortunately no recording in the article. Need more tools.

Show thread

Python 85 - Stereo
TIL that I had my speakers swapped left for right. And how to do stereo in pygame.
ronjeffries.com/articles/-y023

Show thread

Python 86 - Further Sounds
Let's put in some more sounds. I anticipate little trouble. Even here, we learn some interesting lessons.
ronjeffries.com/articles/-y023

Show thread

Python 87 - Saucer Beats
I've been perusing the ancient scrolls, i.e. the Github repo of the original asteroids code. Some notes on what I think I understand so far, then some code. Repeat. Success!
ronjeffries.com/articles/-y023

Show thread

Python 88 - Design Possibility
I really liked the "decentralized" version of Asteroids that I did in Kotlin. Thinking about doing it again, in Python. Refactor to a new design? Why not?
ronjeffries.com/articles/-y023

Show thread

Python 89 - Decentralization
Some detailed thinking on how to refactor to a decentralized model. With any luck, some starting code. But I do feel the need of the thinking part.
ronjeffries.com/articles/-y023

Show thread

Python 90 - More Decent
-ralization. Just a picture of the relationships of some of the objects to start. Then a question: a world record? Guinness, where are you? And then: progress!
ronjeffries.com/articles/-y023

Show thread

Python 91 - Moving toward better
The double dispatch is doing its job. Let's see about cleaning up the references to fleets and whatever else comes to mind.
ronjeffries.com/articles/-y023

Show thread

Python 92 - Need an Idea Here
As I move toward the decentralized model, I need some thinking about next steps. But first, an interesting test.
ronjeffries.com/articles/-y023

Show thread

Python 93 - Something Small
I'll do a small change, then see what comes to mind. As long as we keep moving in roughly the right direction, we're good. Thoughts on small steps.
ronjeffries.com/articles/-y023

Show thread

Python 94 - Inch by Inch
We make more small changes in the direction of independent objects interacting to make the game emerge. Let's experiment with full interaction.
ronjeffries.com/articles/-y023

Show thread

Python 95 - Something Small?
I am oddly without a plan this morning, even my tentative sort of plan. Be prepared to read my sort of thinking. I hit a few bumps but not major ones.
ronjeffries.com/articles/-y023

Show thread

Python 96 - Shhhh
I am going to do a thing, and then another thing. Don't tell Hill about the other thing.
ronjeffries.com/articles/-y023

Show thread

Python 97 - Small Things
While sitting in a mostly boring on-line session, I'll do some small safe changes.
ronjeffries.com/articles/-y023

Show thread

Python 98 - The "Events"
Let's put the full interaction protocol in place, so that more of our special Flyers can operate.
ronjeffries.com/articles/-y023

Show thread

Python 99 - Special? How?
What additional special objects do we need, and how might they work?
ronjeffries.com/articles/-y023

Show thread

Python 100 - Small Steps Forward
I think I'll start by counting missiles in the Ship and probably Saucer. Then we'll see what's next. The thing is to keep stepping toward the larger goal. Some interesting [mis-]steps.
ronjeffries.com/articles/-y023

Show thread

Python 101
Let's see if we can reduce accesses to the specialized lists in Fleets. As so often happens, the next step isn't in the direction I expect. That's OK.
ronjeffries.com/articles/-y023

Show thread
Follow

@RonJeffries
I dunno but this seems a bit specialised for a 101 class

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.