Skip to content
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

Initial tileset debugger #633

Merged
merged 12 commits into from
Sep 12, 2021
Merged

Conversation

lmoureaux
Copy link
Contributor

@lmoureaux lmoureaux commented Sep 11, 2021

Implements #632. It's not quite perfect yet; in particular, only tile-based drawing is supported (as opposed to corner- and edge-based). Darkness is corner-based; grid and borders are edge-based.

It looks like this:

image

Built on top of #450 and helped understand a bug spotted there.

Since it's going to interact quite a bit with the map view, make it a child of
the view widget.

See longturn#632.
The sprites drawn by each layer are shown. Offsets are not accounted for, and
no reason is given for which sprites were selected. Some layers do not work
(for instance, the grid); they probably require pedge or pcorner.

See longturn#632.
This allows one to understand better what the layers are made of and how they
works.

See longturn#632.
The outline helps understand where sprites are drawn relative to each other.

See longturn#632.
@lmoureaux lmoureaux force-pushed the feature/tileset-debugger branch from aa5f0e6 to 4fc86a7 Compare September 12, 2021 21:08
@lmoureaux lmoureaux marked this pull request as ready for review September 12, 2021 21:08
@lmoureaux lmoureaux marked this pull request as draft September 12, 2021 21:15
@lmoureaux lmoureaux marked this pull request as ready for review September 12, 2021 22:23
@lmoureaux lmoureaux requested a review from jwrober September 12, 2021 22:23
understand why something is rendering incorrectly or to understand how other
tilesets work.

.. note::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we specifically need this note? Its pretty obvious we like suggestions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to emphasize this because the direction it takes in its early days will directly affect the quality of the end result (unless we rewrite it three times)

For consistency with other images, as pointed out by jwrober.
Better wording of the note, move the limitation to the main text. Also switch
to "attention".

See longturn#633.
@lmoureaux lmoureaux merged commit 14d15d8 into longturn:master Sep 12, 2021
@lmoureaux lmoureaux deleted the feature/tileset-debugger branch September 12, 2021 23:21
lmoureaux added a commit that referenced this pull request Sep 12, 2021
Better wording of the note, move the limitation to the main text. Also switch
to "attention".

See #633.
psampathkumar pushed a commit to psampathkumar/freeciv21 that referenced this pull request Nov 14, 2021
Better wording of the note, move the limitation to the main text. Also switch
to "attention".

See longturn#633.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants