EasyRPG / liblcf

Library to handle RPG Maker 2000/2003 and EasyRPG projects
https://easyrpg.org
MIT License
116 stars 55 forks source link

SavePicture: Add chunks for Flip and Blend Mode #434

Closed Ghabry closed 3 years ago

Ghabry commented 3 years ago

Contrary to KeyInput where the usage of the upper bits made sense here it is far too ugly to handle this way:

Maniac Patch uses the upper bits of finish_bot_trans for this which is imo very very ugly.

Instead I add here 3 new chunks, so savegames will be incompatible.

The Blend Mode is an integer to get more flexibility compared to Multiply/Add/Overlay of Maniacs.

carstene1ns commented 3 years ago

IMO the flip mode should be an enum: FlipNone, FlipX, FlipY, FlipBoth, it would need only one chunk this way. However, two chunks is also okay.

Ghabry commented 3 years ago

reduced to one Flip chunk and added a new enum for the "effect": This is for the fixed angle (instead of rotating)