Public AndroidGameWindow(AndroidGameActivity activity, Game game) This becomes important because Monogame is setting up the game window, view and graphics device based on the wrongSize version. If I change the name value even by one letter then wrongSize suddenly agrees with correctSize, as if by magic. In this example, wrongSize isn’t always wrong, only if I give my app package name a certain name value. Point correctSize = new Point(mode.PhysicalWidth, mode.PhysicalHeight) It seems there is at least one other way to get this info, like this:ĭisplay.Mode mode = () On Android I’m getting a different screen size depending on the package name I give my app.įor example in Activity1.OnCreate (the effective entry point to my game) I mimic what monogame does to get the current screen size:Ī wrongSize = new () Hello all, first post here I hope someone can help me with!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |