BasePlayerConfig.js 551 B

12345678910111213141516171819202122232425
  1. class BasePlayerConfig {
  2. constructor()
  3. {
  4. // this.playerSpeedGrade = {
  5. // idle:0,
  6. // slow:30,
  7. // medium:50,
  8. // fast:100,
  9. // };
  10. this.playerSpeedGrade = {
  11. idle:0,
  12. slow:100,
  13. medium:300,
  14. fast:500,
  15. };
  16. this.acceleration = -50;
  17. // this.acceleration = 50;
  18. this.perRunDistance = 100;
  19. this.speedReducing = 0.1;
  20. this.jumpDuration = 1;
  21. }
  22. };
  23. module.exports = BasePlayerConfig;