brick-engine-js 1.0.3 → 1.0.5
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.
- package/dist/app.js +5028 -1
- package/dist/app.js.map +1 -1
- package/dist/bootstrap.d.ts +24 -0
- package/dist/brick-engine.js +5047 -1
- package/dist/brick-engine.js.map +1 -1
- package/dist/css/{app.743066d8e4172b0e73f9.css → app.bundle.css} +1 -1
- package/dist/css/app.bundle.css.map +1 -0
- package/dist/css/brick-engine.bundle.css +824 -0
- package/dist/css/brick-engine.bundle.css.map +1 -0
- package/dist/docs/GAME_DEVELOPER_GUIDE.html +1 -1
- package/dist/docs/brick-engine-guide.html +1 -1
- package/dist/docs/getting-started.html +1 -1
- package/dist/docs/jsdoc_standard.html +1 -1
- package/dist/docs/publishing.html +1 -1
- package/dist/docs/reference/interfaces/modules/Session.html +1 -1
- package/dist/docs/reference/modules/GameMenu.html +1 -1
- package/dist/docs/reference/modules/GameSession.html +1 -1
- package/dist/docs/reference/modules/InitialStateSnapshot.html +1 -1
- package/dist/docs/reference/modules/SessionModal.html +1 -1
- package/dist/docs/testing_best_practices.html +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.html +15 -1
- package/dist/main.d.ts +1 -3
- package/dist/menu/GameMenuSingleton.d.ts +23 -0
- package/dist/vendor/p5.min.js +1 -1
- package/package.json +1 -1
- package/public/docs/GAME_DEVELOPER_GUIDE.html +1 -1
- package/public/docs/brick-engine-guide.html +1 -1
- package/public/docs/getting-started.html +1 -1
- package/public/docs/jsdoc_standard.html +1 -1
- package/public/docs/publishing.html +1 -1
- package/public/docs/reference/interfaces/modules/Session.html +1 -1
- package/public/docs/reference/modules/GameMenu.html +1 -1
- package/public/docs/reference/modules/GameSession.html +1 -1
- package/public/docs/reference/modules/InitialStateSnapshot.html +1 -1
- package/public/docs/reference/modules/SessionModal.html +1 -1
- package/public/docs/testing_best_practices.html +1 -1
- package/dist/config/env.d.ts +0 -2
- package/dist/css/app.743066d8e4172b0e73f9.css.map +0 -1
- package/dist/main.test.d.ts +0 -1
- /package/dist/{config/env.test.d.ts → bootstrap.test.d.ts} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import p5 from 'p5';
|
|
2
|
+
import Game from './core/Game';
|
|
3
|
+
import GameView from './view/GameView';
|
|
4
|
+
import './config/styles';
|
|
5
|
+
/**
|
|
6
|
+
* Represents a constructor for a game class.
|
|
7
|
+
*
|
|
8
|
+
* @callback ClientGameConstructor
|
|
9
|
+
* @param {p5} p - The p5 instance.
|
|
10
|
+
* @param {GameView} view - The game view instance.
|
|
11
|
+
* @returns {Game} A new game instance.
|
|
12
|
+
*/
|
|
13
|
+
type ClientGameConstructor = new (p: p5, view: GameView) => Game;
|
|
14
|
+
/**
|
|
15
|
+
* Bootstraps the brick engine and initializes the game.
|
|
16
|
+
*
|
|
17
|
+
* This is the main entry point for the engine's execution. It creates a new p5 instance,
|
|
18
|
+
* initializes the view, and sets up the initial game provided by the caller.
|
|
19
|
+
*
|
|
20
|
+
* @param {ClientGameConstructor} ClientGame - The constructor of the game to be loaded.
|
|
21
|
+
* @returns {p5} The p5 instance.
|
|
22
|
+
*/
|
|
23
|
+
export declare function bootstrap(ClientGame: ClientGameConstructor): p5;
|
|
24
|
+
export {};
|