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

cosmic background with blinking stars #442

Closed
wants to merge 3 commits into from

Conversation

complyue
Copy link
Contributor

this adds blinking stars to the empty background out of map regions. currently they are only seen with rotating camera mode and driving at map edges, it's possible to dig some holes on the map for unreachable regions as to make the stars more visible.

@complyue
Copy link
Contributor Author

made big holes on snow2 map, really ugly tbh, but for demonstration purpose atm.

Copy link
Owner

@agateau agateau left a comment

Choose a reason for hiding this comment

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

It certainly looks better with a starfield than with the plain black background, but I still think it breaks the immersion, sorry.

@complyue
Copy link
Contributor Author

sure, i'm not satisfied with current result too, maybe until some artist can redesign the map edges for outer space look&feel.

what's your next plan with rotating camera when driving at map edges? simply enlarging the map tiles toward unreachable area seems a simple & sufficient solution, then no black regions could be seen anymore.

@agateau
Copy link
Owner

agateau commented May 14, 2024

what's your next plan with rotating camera when driving at map edges? simply enlarging the map tiles toward unreachable area seems a simple & sufficient solution, then no black regions could be seen anymore.

This is indeed the simplest solution. The only issue is deciding how many extra columns and rows are required.

I had in mind a smarter approach which would consist in having the engine fill the gaps by repeating the borders of the map (these numbers can be defined in each map as custom tmx map properties) but I am not sure if libgdx map rendering API can be bent to do that. I need to experiment with it.

@complyue complyue closed this May 14, 2024
@agateau
Copy link
Owner

agateau commented May 15, 2024

It looks like repeating borders is not that complicated after all, with a little duplication of libgdx code...

Here is what I got so far. I increased the viewport size to make the repeating borders easy to view.

screenshot-2024-05-15-203538 953

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