globals_debug.js 914 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. const isDebugMode = true;
  2. const debugState = {
  3. lang: { skip: true, lang: 'pt_BR' },
  4. name: { skip: true, name: 'Username' },
  5. menu: { skip: true, id: 0, audioStatus: false },
  6. customMenu: {
  7. skip: true,
  8. getData: () => {
  9. return { mode: 'b', operation: 'plus', difficulty: 3, label: true };
  10. },
  11. },
  12. map: { skip: true },
  13. end: { skip: false, stop: false },
  14. moodle: {
  15. emulate: false,
  16. info: {
  17. hits: [1, 1, 1, 0],
  18. errors: [2, 3, 0, 4],
  19. time: [60, 120, 120, 2],
  20. },
  21. },
  22. };
  23. const debugFunctions = {
  24. grid: () => {
  25. const grid = 2;
  26. const h = 1920 / (grid + 0.5);
  27. const v = 1080 / (grid + 0.5);
  28. for (let i = 0; i < grid; i++) {
  29. game.add.geom.rect(h / 2 + i * h, 0, h / 2, 1080, colors.blue, 0.3);
  30. game.add.geom.rect(
  31. 0,
  32. v / 2 + i * v,
  33. 1920,
  34. v / 2,
  35. colors.blue,
  36. 0.3
  37. );
  38. }
  39. },
  40. };