You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 rivejä
904 B

  1. require.config({
  2. baseUrl: '',
  3. waitSeconds: 120,
  4. paths: {
  5. socket: 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.3/socket.io.min',
  6. jquery: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.slim.min',
  7. text: 'https://cdnjs.cloudflare.com/ajax/libs/require-text/2.0.12/text.min',
  8. html: 'plugins/html',
  9. css: 'https://cdnjs.cloudflare.com/ajax/libs/require-css/0.1.10/css.min',
  10. main: 'js/main',
  11. helpers: 'js/misc/helpers',
  12. particles: 'plugins/PIXI.particles.min',
  13. howler: 'https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.3/howler.core.min',
  14. longPress: 'plugins/long.press.min'
  15. },
  16. shim: {
  17. howler: {
  18. exports: 'howl'
  19. },
  20. socket: {
  21. exports: 'io'
  22. },
  23. jquery: {
  24. exports: '$'
  25. },
  26. helpers: {
  27. deps: [
  28. 'jquery'
  29. ]
  30. },
  31. main: {
  32. deps: [
  33. 'helpers',
  34. 'js/input'
  35. ]
  36. }
  37. }
  38. });
  39. require([
  40. 'main'
  41. ], function (
  42. main
  43. ) {
  44. main.init();
  45. });