Before I implement SDL2 rendering, it’s worth reminding ourselves what FPS actually is and how it is measured as this is the metric I’ll be using to benchmark performance. It’s important because you can’t compare FPS gain from 30 to 60 against a gain 300 to 330. FPS (Frames Per Second) refers to how many…
Optimizing Rendering by Blitting Visible Entities Only
A few months ago, I optimized blitting a lot. But wasn’t really satisfied with the results. I thought of giving up on pygame entirely. Yes, there is that experimental SDL2 wrapper to try but I was a bit disappointed with pygame’s rendering capabilities altogether so didn’t pin my hopes to it. I went looking for…
FPS and a Quick Map POC: Blitting Buildings, and NPCs
So, I threw together a quick map proof of concept and some mechanics for populating it with buildings and randomly spawned NPCs. Then I implemented a camera system with zooming, and honestly? It was way easier than I expected. Barely took any code at all. Python’s ability to iterate fast is an absolute game-changer. But,…
Isometric Projection
To get thst old school early 2000s isometric charm, I’ve been messing around with Pygame to render isometric tiles and buildings in orthographic projection. Isometric, and orthographic projections are ways to represent 3D objects in 2D. Orthographic means no perspective distortion, and isometric is a specific type of orthographic projection where the angles between axes…
Making My Own Gangsters Strategy and Management Sim
I first picked up a copy of Gangsters: Organized Crime in 1999, and it just clicked. Something about that mix of strategy, management, and the gritty 1920s vibe kept pulling me back every few years. In 2016, I decided to try making my own version. Something that kept the spirit of the original but reworked…