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.
 
 
 

64 lines
972 B

  1. /* global require */
  2. window.require = requirejs;
  3. require.config({
  4. baseUrl: '',
  5. waitSeconds: 120,
  6. paths: {
  7. socket: 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.slim',
  8. jquery: 'https://code.jquery.com/jquery-3.4.1.slim.min',
  9. text: 'plugins/text',
  10. html: 'plugins/html',
  11. css: 'plugins/css',
  12. main: 'js/main',
  13. helpers: 'js/misc/helpers',
  14. particles: 'plugins/pixi.particles',
  15. //picture: 'plugins/pixi.picture',
  16. pixi: 'https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min',
  17. howler: 'plugins/howler.min'
  18. },
  19. shim: {
  20. howler: {
  21. exports: 'howl'
  22. },
  23. socket: {
  24. exports: 'io'
  25. },
  26. jquery: {
  27. exports: '$'
  28. },
  29. helpers: {
  30. deps: [
  31. 'jquery'
  32. ]
  33. },
  34. pixi: {
  35. exports: 'PIXI'
  36. },
  37. particles: {
  38. deps: [
  39. 'pixi'
  40. ]
  41. },
  42. /*picture: {
  43. deps: [
  44. 'pixi'
  45. ]
  46. },*/
  47. main: {
  48. deps: [
  49. 'helpers',
  50. 'js/input'
  51. ]
  52. }
  53. }
  54. });
  55. require([
  56. 'main'
  57. ], function (
  58. main
  59. ) {
  60. main.init();
  61. });