Hey everyone,
I made this little piece of code that will make your games run on ALL resolutions (even odd ones that don't exist, like 501x307 for instance
), without having black borders around your playfield area or squished/distorted images.
So, no more black borders, no more 'oval' circles or rectangular squares. Hehehh.
By changing the resolution values in the setup.agc file, you can make your game run at ANY desired resolution, and have perfectly shaped sprites and no black borders.
The only 'issue' is that one needs to change the values in the setup file to change resolutions, but it should be fairly easy to code a resolution selection feature in your game and write the new values to the setup.agc file, and ask the user to restart his game in order for the changes to take effect.
Feel free to use the code in your programs.
Here are all the necessary files, including full source code and media used.
Cheers