LibGDX: Particle scale

后端 未结 5 828
不知归路
不知归路 2021-01-13 08:40

In my game I use

static final float FRUSTUM_WIDTH = 10;
 static final float FRUSTUM_HEIGHT = 15;   

So when I draw the particles they take

5条回答
  •  时光取名叫无心
    2021-01-13 09:08

    Personally, to handle my particle size depending on the user's screen, I use ScalingViewport which allows you to work at a fixed size and it'll automatically scale depending on the device'd screen size. I usually put the ScalingViewport for a Scaling.fill in its constructor; that prevents the particle from stretching and looking bad.

提交回复
热议问题