GameConfig.ts 892 B

1234567891011121314151617181920212223242526272829303132
  1. import { _decorator, Component } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('GameConfig')
  4. export class GameConfig extends Component {
  5. /**调试开关-快速开始游戏 */
  6. debugQuicklyStartGame = false;
  7. //============游戏数值配置============
  8. /**每次点击增加的速度 */
  9. acc = 10;
  10. /**减速度 */
  11. dec = -300;
  12. /**玩家多久(毫秒)不点加速,就开始减速 */
  13. decGap = 1000;
  14. /**终点距离 */
  15. endPointDistance = 12000;
  16. /**游戏长度单位/现实长度单位(米) */
  17. gameLenDivRealLen = 30;
  18. //============服务器匹配房间配置============
  19. /**房间匹配类型 */
  20. roomMatchType = "随便啦";
  21. /**房间同步帧率 */
  22. syncFrameRate = 20;
  23. /**房间创建后,匹配多久结束 */
  24. maxMatchingTime = 6000;
  25. //房间可容纳人数
  26. maxMembers = 2;
  27. }