S
S
SemyonDyachenko2019-10-31 18:38:07
Python
SemyonDyachenko, 2019-10-31 18:38:07

How to scale pixelart in sfml?

Hello everyone who deals with sfml. I wanted to ask a question not related to any error, in general there will be no code.
And my question is how to scale pixel art for normal screens. Now I will explain. When you download pixel art asset's like background , they are almost always around 300x200 px, I do aprg on sfml and I'm going to use pixel art (assets, background, tileset). I read an interview with the developers of the indie game Chasm. And in general, I would like something like they did it. So in this interview, they answered that initially all the pictures are in a resolution somewhere around 360x200, and then this picture is scaled to fit the monitor resolution, for example 1920x1080.
Here is an excerpt from the text:

One of the things that really gives the game its personality is the low native resolution. Everything is first rendered in a 384×216 buffer and then scaled to fit the screen resolution (eg 5x for 1080).

5dbb001b5f98f700562969.png
In general, maybe someone has already done this, if you know write. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly, 2018-09-15
@Just1n

Execute a POST request with the required parameters .

S
SemyonDyachenko, 2019-11-01
@SemyonDyachenko

sf::Sprite.setScale()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question