Hi everybody I am making small game using pure Java 8 and rednering it by Java AWT . My question is how to make that user can change the quality of game. For example: 720p, 1080p, 1440p. Something similar that is when playing YouTube video.Graphics2D
method
The steps I will make?
- Make 3 pictures of each, each with different quality.
- Then load them.
Is this the right way?
But Java is default only 72dpi so each of them will be the same quality. So how to render it in different resolution?
Thanks in advance, Maratonec
Edit:
I will be using LibGDX for rendering. So I will be using OpenGL.
But still don’t know how to make in LibGDX.
Edit:
So I now understand that using LibGDX mipmap I will make my scaling nicer. So I will have 1440p image and scale it up down? Or I will have to have each image for each resolution (720p, 1080p,1440p) and they will change to user selected resolution and only scaling to the window size?
The second method I have in mind how to do, but for second I need code example.
Thanks one more time for spending time with beginner!