I have a game view that displays the game but I don't want to show the edges of this view. I have background that covers this game view around the edges, so the game view is in the middle borders show the background.

Method 1. I draw the background first and then draw the game view on top, I don't know how to mask the game view's edges.

Method 2. I draw the game view first and then draw the borders of the background at the edges of the game view so they hide the edges.

Basically I don't know how to make a game layout with user interface and a game view.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.