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

When drawing overlap, the overlapping part is not displayed #203

Open
romanholidaypancakes opened this issue Nov 18, 2024 · 5 comments
Open

Comments

@romanholidaypancakes
Copy link

I am studying your drawing code and found that when the drawing overlaps, the overlapping part is not displayed.

image

@IMXNOOBX
Copy link
Owner

I haven't noticed it, but i believe it should render both elements at the same time, have you got an image in game showcasing that case, i would like to give it a look

@romanholidaypancakes
Copy link
Author

I haven't tried running it while playing a game yet, I'm just learning your code now, but I believe the result will be the same, just add two adjacent graphics in the game::loop section

@romanholidaypancakes
Copy link
Author

I've tried to fix it without any luck. Are you the same?

@IMXNOOBX
Copy link
Owner

I've tried to fix it without any luck. Are you the same?

Im sorry i don't have time these days. And first i have to try in game

@IMXNOOBX
Copy link
Owner

I see what the issue is, its not the rectangles overlapping its the text, as see in the example below:
image

I believe its caused because of render order, for example:
image

In this last example, some the text is been rendered before the box, in the top right and in the bottom left its just the contrary. This would be easily fixed by moving the text rendering to the end of the execution.

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

No branches or pull requests

2 participants