LibGDX:粒子规模粒子、规模、LibGDX

由网友(难以忘记初次见你)分享简介:在我的游戏我用static final float FRUSTUM_WIDTH = 10;static final float FRUSTUM_HEIGHT = 15; 所以,当我画的粒子,他们采取了整个屏幕,是巨大的!那么,如何扩展他们到适合我的需要?So when I draw the particles...

在我的游戏我用

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

所以,当我画的粒子,他们采取了整个屏幕,是巨大的!那么,如何扩展他们到适合我的需要?

So when I draw the particles they take the whole screen and are huge! So how do I scale them down to fit my needs?

//皮尤实验室

推荐答案

无论你使用的粒子编辑器(说实话,我不认为这是大小颗粒是个好主意,因为你提到的颗粒不会得到过小(为别的我真的建议吧)),或者你只需​​打开粒子特效文件。它应该由编辑器生成,也可以从实例复制。在该文件中搜索领域的如下:

Either you use the particle editor (to be honest I don't think it's a good idea for sizing the particles, as you mentioned the particles won't get too small (for anything else I really recommend it)) or you just open the particle effect file. It should be generated by the editor or you can copy it from the examples. In this file search the fields below:

- Scale - 
lowMin: 0.0
lowMax: 0.0
highMin: 0.6
highMax: 0.6
relative: false
scalingCount: 1
scaling0: 1.0
timelineCount: 1
timeline0: 0.0

调整 highMin highMax 需要。

阅读全文

相关推荐

最新文章