Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adds Background/Sprite transparent property to Proto2ES #1279
This is just one of many ways in which this can be addressed, so don't go merging this all willy nilly without thinking about it. Anyway, the stance this pull request takes is: "yes, we are going to support the transparent option even though GMS deprecates it and uses PNG." If we were not going to support it, this pull request would instead remove the transparency only for GMK projects (since EGM/GMX/YYP all use png).
After thinking a lot about this, I decided to do it this way and see what people think. The feature does make it easier to make a game using retro spritesheets, or if the user really does want, to continue using old image formats that do not support transparency (for better compression). We don't even have to support this in the UI either, this is just the easiest way to implement this functionality in a single place for what I am calling our new "asset pipeline" in Proto2ES. What bothers me however, is that we duplicate this logic as well as a lot of image reading logic, I am now discovering, in the engine for
Regardless, here's some examples of the feature working with emake games now (yes the monsters chase you in the FPS game now too, that was fixed in #1218).
@@ Coverage Diff @@ ## master #1279 +/- ## ========================================== + Coverage 11% 11.01% +<.01% ========================================== Files 166 166 Lines 17283 17283 ========================================== + Hits 1902 1903 +1 + Misses 15381 15380 -1