What is the best way to deal with resolution?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

What is the best way to deal with resolution?

Post by Jeeper »

I recently started working on a game that is not going to be pixel art and am now running into a minor dilemma. I am not sure what the best way to allow people to have resolution options would be.

As we are only two people, making multiple resolutions for each art asset seems like a hug effort, but maybe having 2 set or something like that would be sufficient. Down-scaling from a higher resolution could also work, but certain things like sharp lines get wonky.

Does anyone have tips or suggestions, maybe a library or such to help?
User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: What is the best way to deal with resolution?

Post by adrix89 »

If you draw for a target of 720p or 1080p I don't think anyone would complain.

Outside of scaling another option you can have is just have a bigger viewport on higher resolution with native assets, with the option to scale if they want.
Your job is to give enough options so the players can configure it for their needs.
I use Workflowy but you can check out Dynalist as its the better offer.
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: What is the best way to deal with resolution?

Post by Jeeper »

adrix89 wrote:If you draw for a target of 720p or 1080p I don't think anyone would complain.

Outside of scaling another option you can have is just have a bigger viewport on higher resolution with native assets, with the option to scale if they want.
Your job is to give enough options so the players can configure it for their needs.
The bigger viewport option is an idea that I have considered, the obvious drawback being that people on lower resolutions are at a gameplay disadvantage compared to people with higher resolutions.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: What is the best way to deal with resolution?

Post by davisdude »

You could use a method described in this post.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
adrix89
Party member
Posts: 135
Joined: Fri Oct 15, 2010 10:58 am

Re: What is the best way to deal with resolution?

Post by adrix89 »

Jeeper wrote:
adrix89 wrote:If you draw for a target of 720p or 1080p I don't think anyone would complain.

Outside of scaling another option you can have is just have a bigger viewport on higher resolution with native assets, with the option to scale if they want.
Your job is to give enough options so the players can configure it for their needs.
The bigger viewport option is an idea that I have considered, the obvious drawback being that people on lower resolutions are at a gameplay disadvantage compared to people with higher resolutions.
You can still them the option of scaling if they want. It would not be as good as having native resolution assets but scaling is not that big of a deal.
I use Workflowy but you can check out Dynalist as its the better offer.
User avatar
Evine
Citizen
Posts: 72
Joined: Wed May 28, 2014 11:46 pm

Re: What is the best way to deal with resolution?

Post by Evine »

mipmap filter is your friend when it comes to thin sharp lines.
https://www.love2d.org/wiki/(Image):setMipmapFilter

Code: Select all

Image:setMipmapFilter( "linear", 0) -- For best thin lines
Did you see the post I just made about this. Take a look. (The code isn't that much tested, so yell at me if something doesn't work. edge blending is a bit Wonky as of now.)
viewtopic.php?f=4&t=79360
Artal, A .PSD loader: https://github.com/EvineDev/Artal
User avatar
Jeeper
Party member
Posts: 611
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: What is the best way to deal with resolution?

Post by Jeeper »

Evine wrote:mipmap filter is your friend when it comes to thin sharp lines.
https://www.love2d.org/wiki/(Image):setMipmapFilter

Code: Select all

Image:setMipmapFilter( "linear", 0) -- For best thin lines
Did you see the post I just made about this. Take a look. (The code isn't that much tested, so yell at me if something doesn't work. edge blending is a bit Wonky as of now.)
viewtopic.php?f=4&t=79360
Thanks! Ill have a look at that :)
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: What is the best way to deal with resolution?

Post by micha »

When I started my game, I decided that I don't want to scale any images and that I don't want to change the players resolution. Therefore I went with source images in different sizes. On startup the game determines the current screen size and selects the image size such that approximately the same number of tiles fit into the screen.
All my graphics are done in Inkscape so it is not a lot of work to render them in various sizes. I am not particularly happy with solution, though. The finished game will have each image multiple times which makes the file size unnecessarily large. If you come up with a better solution, then let me know.

I decided against scaling images, because they would lose their smooth look.
User avatar
Sapper
Prole
Posts: 15
Joined: Sun Oct 05, 2014 12:01 am

Re: What is the best way to deal with resolution?

Post by Sapper »

Try drawing everything to a canvas at the native resolution.
That way at load time you could just calculate the closest int to scale the canvas to.
youll have to deal with black borders in fullscreen-mode if the users aspect ratio doesnt match up though.
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: What is the best way to deal with resolution?

Post by micha »

I don't use pixel art. Originally I was aiming for a resolution of about 1280x800. If I determine the closest integer scaling factor, it will almost always be 1. And then I would have to accept that some people can see a larger part of the map than other, which I don't want.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 82 guests