Replies: 2 comments
-
This first feature was easy to implement: butano-ldtk/src/ldtk_level_bgs_manager.cpp Lines 306 to 311 in 005dd1f The APIs expect the user to set the valid OOB tile as Unfortunately, there's no support for tile fields, so it's not very intuitive to where to get this info from.
The wrapped tile might be a little bit more tricky to implement, as I want to avoid |
Beta Was this translation helpful? Give feedback.
-
|
GValiente suggested this idea: Allow wrapping only for power of two level sizes. That's at least an improvement from not supporting wrapping at all. What could go wrong?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When
ldtk::level_bgs_ptrtries to show the level tiles from the out-of-bound area, currently it just shows the empty tile:butano-ldtk/src/ldtk_level_bgs_manager.cpp
Lines 301 to 306 in f255a34
Which is the same behavior of LDtk's "foreground" parallax layer.
But, individual games might want to show tiles other than empty tile for the OOB ones.
bn::regular_bg_ptr, andbn::affine_bg_ptrwhen wrapping is enabled.If I want to support both of these use-case, I need to design the API carefully to not confuse the users.
Or maybe I could just
BN_ASSERTthat both options are not enabled at the same time.Beta Was this translation helpful? Give feedback.
All reactions