pygame / solarwolf

☀️🐺 SolarWolf is an action/arcade game written in Python. It is free and open source, created with the Pygame game development library.
64 stars 27 forks source link

Changes powerup image loading code to no longer strip alpha #7

Closed MyreMylar closed 11 months ago

MyreMylar commented 3 years ago

It seems that surface.convert() didn't always strip per-pixel alpha from a surface in pygame 1. In this bit of code solarwolf was relying on that contra-documented bit of behaviour to set a colorkey for these powerups if their loaded 'parent' surface had alpha. In pygame 2 surface convert() behaves in line with the docs and strips alpha from a surface and solarwolf breaks.