-
Notifications
You must be signed in to change notification settings - Fork 5k
Add sprites to the room spawner markers #42204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add sprites to the room spawner markers #42204
Conversation
|
i have made an adjustment to the offsets as it actually nearly fucked up the bagel map. i have included screenshots to prove that bagel's theatre spawner now works as intended |
|
Hero-level mapping QOL, however I will remark that the sprite that shows the room layout should probably be auto-generated to some extent via an overlay or something as having a sprite for each layout becomes a pain when we'd like to add rooms with more unique dimensions. However if this is out of scope I guess it's fine.
Has it not been working as intended? I explicitly tested that PR multiple times to ensure that every variant of the room spawned fine. |
i would consider this out of scope, yeah, unless there's a relatively-easy way to do it
specifically; my sprite offsets were off by a full tile upwards which would've initalized wrong in-game, iirc. i fixed the offsets to go the other direction. this was an issue on my part and not yours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Roomba, I'm not a fan of having a separate sprite for each possible size. Can't you just use the existing tile smoothing system for this and only do the size indicator via a sprite layer?
Also the larger ones will spam the sprite atlas, you might want to set "metaAtlas": false in the json file.
should i apply this property to all of them? or just ones above a certain size? |
























About the PR
This PR adds outline sprites to the room spawners (regular, maints, vgroid) to clearly indicate the boundaries of the spawner.
Some of the room spawners have also had their min/max bounds set explicitly as datafields, so that the sprites remain an accurate representation of the spawner's generated room size.
Why / Balance
This makes it easier for mappers to visualize what a generated room's bounds would look like without having to look at the code. This is less important for the other room spawners, really, but I mainly wanted this for the random maints rooms added in #33619 to encourage people to play with that feature more.
Technical details
A bunch of new RSIs for room-sized outlines. Not all of them are used, but they could be generically useful.
Added the sprite component to the roomfill spawners
Note that room spawners with even tile dimensions should have a 0.5 tile offset in that direction (see: bagel theater)
Media
maints.mp4
Bagel before and after init:
Requirements
Breaking changes
N/a
Changelog
No changelog I think?