Skip to content

Setting up FlameGame for pixel art #2480

Answered by erickzanardo
projectitis asked this question in Q&A
Discussion options

You must be logged in to vote

I can't write any snippets right now, but this might help you

If you use Flame's camera Api, and use the fixed viewport, you will be able to achieve that super easily, you can just define the resolution that you want and then design your sprites all without any scaling, flame will take care of scaling the viewport for you

Flame have two camera APIs, the current one and the experimental one

Current: https://docs.flame-engine.org/1.7.0/flame/camera_and_viewport.html#

Experimental: https://docs.flame-engine.org/1.7.0/flame/camera_component.html#viewport

Both will be able to do what you need, but the current one will eventually be deprecated in favor of the experimental one.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@projectitis
Comment options

@erickzanardo
Comment options

Answer selected by projectitis
Comment options

You must be logged in to vote
4 replies
@erickzanardo
Comment options

@projectitis
Comment options

@projectitis
Comment options

@st-pasha
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@erickzanardo
Comment options

@projectitis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants