LibGDX: Particle scale(LibGDX:粒子尺度)
问题描述
在我的游戏中我使用
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.
Adjust the highMin and highMax as needed.
这篇关于LibGDX:粒子尺度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:LibGDX:粒子尺度
基础教程推荐
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- Struts2 URL 无法访问 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
