brick-engine-js 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,35 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__991__;
46
46
  /******/ }
47
47
  /******/
48
48
  /************************************************************************/
49
+ /******/ /* webpack/runtime/compat get default export */
50
+ /******/ (() => {
51
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
52
+ /******/ __webpack_require__.n = (module) => {
53
+ /******/ var getter = module && module.__esModule ?
54
+ /******/ () => (module['default']) :
55
+ /******/ () => (module);
56
+ /******/ __webpack_require__.d(getter, { a: getter });
57
+ /******/ return getter;
58
+ /******/ };
59
+ /******/ })();
60
+ /******/
61
+ /******/ /* webpack/runtime/define property getters */
62
+ /******/ (() => {
63
+ /******/ // define getter functions for harmony exports
64
+ /******/ __webpack_require__.d = (exports, definition) => {
65
+ /******/ for(var key in definition) {
66
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
67
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
68
+ /******/ }
69
+ /******/ }
70
+ /******/ };
71
+ /******/ })();
72
+ /******/
73
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
74
+ /******/ (() => {
75
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
76
+ /******/ })();
77
+ /******/
49
78
  /******/ /* webpack/runtime/make namespace object */
50
79
  /******/ (() => {
51
80
  /******/ // define __esModule on exports
@@ -61,8 +90,66 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__991__;
61
90
  var __webpack_exports__ = {};
62
91
  // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
63
92
  (() => {
93
+ // extracted by mini-css-extract-plugin
94
+
95
+ })();
96
+
97
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
98
+ (() => {
99
+ // extracted by mini-css-extract-plugin
100
+
101
+ })();
102
+
103
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
104
+ (() => {
105
+ // extracted by mini-css-extract-plugin
106
+
107
+ })();
108
+
109
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
110
+ (() => {
111
+ // extracted by mini-css-extract-plugin
64
112
 
65
- // UNUSED EXPORTS: Color, ControlEventType, ControlKey, FontAlign, FontSize, FontVerticalAlign, Game, GameView, Sound, StateProperty, bootstrap, configs
113
+ })();
114
+
115
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
116
+ (() => {
117
+ // extracted by mini-css-extract-plugin
118
+
119
+ })();
120
+
121
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
122
+ (() => {
123
+ // extracted by mini-css-extract-plugin
124
+
125
+ })();
126
+
127
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
128
+ (() => {
129
+ // extracted by mini-css-extract-plugin
130
+
131
+ })();
132
+
133
+ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
134
+ (() => {
135
+ // ESM COMPAT FLAG
136
+ __webpack_require__.r(__webpack_exports__);
137
+
138
+ // EXPORTS
139
+ __webpack_require__.d(__webpack_exports__, {
140
+ Color: () => (/* reexport */ Color),
141
+ ControlEventType: () => (/* reexport */ ControlEventType),
142
+ ControlKey: () => (/* reexport */ ControlKey),
143
+ FontAlign: () => (/* reexport */ FontAlign),
144
+ FontSize: () => (/* reexport */ FontSize),
145
+ FontVerticalAlign: () => (/* reexport */ FontVerticalAlign),
146
+ Game: () => (/* reexport */ core_Game),
147
+ GameView: () => (/* reexport */ view_GameView),
148
+ Sound: () => (/* reexport */ Sound),
149
+ StateProperty: () => (/* reexport */ StateProperty),
150
+ bootstrap: () => (/* reexport */ bootstrap),
151
+ configs: () => (/* reexport */ configs)
152
+ });
66
153
 
67
154
  ;// ./src/core/types/enums.ts
68
155
  /**
@@ -4425,10 +4512,11 @@ var GameView = /** @class */ (function () {
4425
4512
  };
4426
4513
  return GameView;
4427
4514
  }());
4428
- /* harmony default export */ const view_GameView = ((/* unused pure expression or super */ null && (GameView)));
4515
+ /* harmony default export */ const view_GameView = (GameView);
4429
4516
 
4430
4517
  // EXTERNAL MODULE: external "p5"
4431
4518
  var external_p5_ = __webpack_require__(991);
4519
+ var external_p5_default = /*#__PURE__*/__webpack_require__.n(external_p5_);
4432
4520
  ;// ./src/menu/GameRepository.ts
4433
4521
  var GameRepository_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
4434
4522
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -4738,7 +4826,7 @@ var GameMenu = /** @class */ (function (_super) {
4738
4826
  };
4739
4827
  return GameMenu;
4740
4828
  }(core_Game));
4741
- /* harmony default export */ const menu_GameMenu = ((/* unused pure expression or super */ null && (GameMenu)));
4829
+ /* harmony default export */ const menu_GameMenu = (GameMenu);
4742
4830
 
4743
4831
  ;// ./src/menu/GameMenuSingleton.ts
4744
4832
  /**
@@ -4777,15 +4865,9 @@ var GameMenuSingleton = /** @class */ (function () {
4777
4865
  };
4778
4866
  return GameMenuSingleton;
4779
4867
  }());
4780
- /* harmony default export */ const menu_GameMenuSingleton = ((/* unused pure expression or super */ null && (GameMenuSingleton)));
4868
+ /* harmony default export */ const menu_GameMenuSingleton = (GameMenuSingleton);
4781
4869
 
4782
4870
  ;// ./src/bootstrap.ts
4783
- /* unused harmony import specifier */ var p5;
4784
- /* unused harmony import specifier */ var bootstrap_GameView;
4785
- /* unused harmony import specifier */ var bootstrap_GameMenu;
4786
- /* unused harmony import specifier */ var bootstrap_ControlKey;
4787
- /* unused harmony import specifier */ var bootstrap_ControlEventType;
4788
- /* unused harmony import specifier */ var bootstrap_GameMenuSingleton;
4789
4871
 
4790
4872
 
4791
4873
 
@@ -4817,12 +4899,12 @@ var _switchHandler = function (newGame) {
4817
4899
  newGame.view.bindControls(control);
4818
4900
  state_1.turnOn();
4819
4901
  // Setup exit and power buttons
4820
- if (bootstrap_GameMenuSingleton.hasInstance() && newGame !== bootstrap_GameMenuSingleton.getInstance()) {
4821
- control.subscribe(bootstrap_ControlKey.EXIT, bootstrap_ControlEventType.PRESSED, function () {
4822
- newGame.switchGame(bootstrap_GameMenuSingleton.getInstance());
4902
+ if (menu_GameMenuSingleton.hasInstance() && newGame !== menu_GameMenuSingleton.getInstance()) {
4903
+ control.subscribe(ControlKey.EXIT, ControlEventType.PRESSED, function () {
4904
+ newGame.switchGame(menu_GameMenuSingleton.getInstance());
4823
4905
  });
4824
- control.subscribe(bootstrap_ControlKey.POWER, bootstrap_ControlEventType.PRESSED, function () {
4825
- newGame.switchGame(bootstrap_GameMenuSingleton.getInstance());
4906
+ control.subscribe(ControlKey.POWER, ControlEventType.PRESSED, function () {
4907
+ newGame.switchGame(menu_GameMenuSingleton.getInstance());
4826
4908
  state_1.turnOff();
4827
4909
  });
4828
4910
  }
@@ -4844,12 +4926,12 @@ var _switchHandler = function (newGame) {
4844
4926
  */
4845
4927
  function bootstrap(ClientGame) {
4846
4928
  window.BrickEngineGame = ClientGame;
4847
- return new p5(function (p) {
4929
+ return new (external_p5_default())(function (p) {
4848
4930
  _p = p;
4849
- var view = new bootstrap_GameView(p, document.body);
4850
- if (ClientGame === bootstrap_GameMenu) {
4931
+ var view = new view_GameView(p, document.body);
4932
+ if (ClientGame === menu_GameMenu) {
4851
4933
  _game = new ClientGame(p, view);
4852
- bootstrap_GameMenuSingleton.setInstance(_game);
4934
+ menu_GameMenuSingleton.setInstance(_game);
4853
4935
  }
4854
4936
  else {
4855
4937
  _game = new ClientGame(p, view);
@@ -4879,49 +4961,6 @@ function bootstrap(ClientGame) {
4879
4961
 
4880
4962
 
4881
4963
 
4882
- })();
4883
-
4884
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4885
- (() => {
4886
- // extracted by mini-css-extract-plugin
4887
-
4888
- })();
4889
-
4890
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4891
- (() => {
4892
- // extracted by mini-css-extract-plugin
4893
-
4894
- })();
4895
-
4896
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4897
- (() => {
4898
- // extracted by mini-css-extract-plugin
4899
-
4900
- })();
4901
-
4902
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4903
- (() => {
4904
- // extracted by mini-css-extract-plugin
4905
-
4906
- })();
4907
-
4908
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4909
- (() => {
4910
- // extracted by mini-css-extract-plugin
4911
-
4912
- })();
4913
-
4914
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4915
- (() => {
4916
- // extracted by mini-css-extract-plugin
4917
-
4918
- })();
4919
-
4920
- // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
4921
- (() => {
4922
- __webpack_require__.r(__webpack_exports__);
4923
- // extracted by mini-css-extract-plugin
4924
-
4925
4964
  })();
4926
4965
 
4927
4966
  /******/ return __webpack_exports__;