Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

RogueLibs v3.6.0-rc.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@Chasmical Chasmical released this 05 Aug 20:50
· 100 commits to main since this release
  • πŸ’₯ Fixed the sprites coordinate system (add20d7);
  • ✨ Integrated more sprite scopes into the game (4fe3f61);
  • ✨ Implemented object hook factories (b727254);
  • ✨ Added TraitUnlock.Upgrade property (b61e6d4);
  • ♻️ Added some nullability attributes (286db59);
  • πŸ› Fixed transpilers failing without any exceptions (1d49d6d);
  • πŸ› Fixed immediate implicit actions after a refresh (ed84d08);
  • πŸ› Fixed the custom disaster method execution order (f25a4ab);
  • πŸ› Implemented unimplemented sprite scopes (6c94160);

If you're using sprite atlases/sheets in your mod, you'll have to reconfigure your sprites initialization!

Before, the coordinate system that the Rect parameter is used in, had an origin in the bottom-left corner ("3D" approach). Now the coordinate system has an origin in the top-left corner ("2D" approach), which should make it easier to import sprites.

You just need to change the second, y, argument of new Rect:
<new y> = <spritesheet height> - <sprite height> - <old y>