0
\$\begingroup\$

I started making an XNA game years ago and picked it up recently.

I'm looking later to convert it to use Monogame so that it can be deployed on various mobile devices and OS, though I have a sinking feeling that a lot of the sprites and code will be broken by the changing screen sizes when I move outside of the emulator.

The game is currently hard coded to to 800x480 and the level placements and sprite sizes were all done to fit that at the time.

So question:

What do I need to ensure this works and displays properly on a variety of screens and devices?

\$\endgroup\$
1
\$\begingroup\$

Just scale all of your textures to the ratio of your original 800x480 to the size of their screen.

e.g. if their screen is 1600 x 900

1600 / 800 = 2

900 / 480 = 1.875

scale everything's X by 2 and Y by 1.875, and multiply all positions by the scale.

\$\endgroup\$
  • \$\begingroup\$ Stretching one axis more than another would look...awful and unprofessional. \$\endgroup\$ – me-- Nov 27 '13 at 22:26
  • \$\begingroup\$ Then just scale it by the smaller one and use black bars on the sides. \$\endgroup\$ – Aaron Glazer Nov 28 '13 at 3:32

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.