@gamebob/axon-surge 0.5.0
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/LICENSE +1 -0
- package/README.md +24 -0
- package/dist/axon-surge.js +1872 -0
- package/dist/core/EventBus.d.ts +10 -0
- package/dist/core/EventBus.d.ts.map +1 -0
- package/dist/core/GameEngine.d.ts +52 -0
- package/dist/core/GameEngine.d.ts.map +1 -0
- package/dist/core/GameLoop.d.ts +12 -0
- package/dist/core/GameLoop.d.ts.map +1 -0
- package/dist/director/SpawnerPatterns.d.ts +13 -0
- package/dist/director/SpawnerPatterns.d.ts.map +1 -0
- package/dist/director/WaveDirector.d.ts +17 -0
- package/dist/director/WaveDirector.d.ts.map +1 -0
- package/dist/entities/CoreEntity.d.ts +15 -0
- package/dist/entities/CoreEntity.d.ts.map +1 -0
- package/dist/entities/EnemyEntity.d.ts +30 -0
- package/dist/entities/EnemyEntity.d.ts.map +1 -0
- package/dist/factory/EntityFactory.d.ts +7 -0
- package/dist/factory/EntityFactory.d.ts.map +1 -0
- package/dist/i18n/I18nService.d.ts +9 -0
- package/dist/i18n/I18nService.d.ts.map +1 -0
- package/dist/i18n/locales.d.ts +22 -0
- package/dist/i18n/locales.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/input/InputManager.d.ts +17 -0
- package/dist/input/InputManager.d.ts.map +1 -0
- package/dist/physics/PhysicsEngine.d.ts +21 -0
- package/dist/physics/PhysicsEngine.d.ts.map +1 -0
- package/dist/physics/SpatialHash.d.ts +15 -0
- package/dist/physics/SpatialHash.d.ts.map +1 -0
- package/dist/platform/browser-platform.d.ts +25 -0
- package/dist/platform/browser-platform.d.ts.map +1 -0
- package/dist/platform/platform.d.ts +29 -0
- package/dist/platform/platform.d.ts.map +1 -0
- package/dist/pool/EnemyPool.d.ts +8 -0
- package/dist/pool/EnemyPool.d.ts.map +1 -0
- package/dist/pool/ObjectPool.d.ts +10 -0
- package/dist/pool/ObjectPool.d.ts.map +1 -0
- package/dist/render/CanvasRenderer.d.ts +24 -0
- package/dist/render/CanvasRenderer.d.ts.map +1 -0
- package/dist/render/JuiceEffects.d.ts +15 -0
- package/dist/render/JuiceEffects.d.ts.map +1 -0
- package/dist/strategies/FragmentClusterStrategy.d.ts +5 -0
- package/dist/strategies/FragmentClusterStrategy.d.ts.map +1 -0
- package/dist/strategies/GravityParasiteStrategy.d.ts +5 -0
- package/dist/strategies/GravityParasiteStrategy.d.ts.map +1 -0
- package/dist/strategies/ImpactStrategy.d.ts +20 -0
- package/dist/strategies/ImpactStrategy.d.ts.map +1 -0
- package/dist/strategies/PiercingCellStrategy.d.ts +5 -0
- package/dist/strategies/PiercingCellStrategy.d.ts.map +1 -0
- package/dist/strategies/ToxicSporeStrategy.d.ts +5 -0
- package/dist/strategies/ToxicSporeStrategy.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/theme/ThemeManager.d.ts +27 -0
- package/dist/theme/ThemeManager.d.ts.map +1 -0
- package/dist/types/game.d.ts +72 -0
- package/dist/types/game.d.ts.map +1 -0
- package/dist/ui/HUDOverlay.d.ts +15 -0
- package/dist/ui/HUDOverlay.d.ts.map +1 -0
- package/dist/ui/OnboardingTutorial.d.ts +14 -0
- package/dist/ui/OnboardingTutorial.d.ts.map +1 -0
- package/dist/ui/ProgressBar.d.ts +14 -0
- package/dist/ui/ProgressBar.d.ts.map +1 -0
- package/dist/ui/SettingsModal.d.ts +20 -0
- package/dist/ui/SettingsModal.d.ts.map +1 -0
- package/dist/ui/StartMenu.d.ts +11 -0
- package/dist/ui/StartMenu.d.ts.map +1 -0
- package/package.json +30 -0
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright (c) 2026 GameBob. All rights reserved.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @gamebob/axon-surge
|
|
2
|
+
|
|
3
|
+
Browser/DOM game package shared by the GameBob Astro portal and the Axon Surge Capacitor app.
|
|
4
|
+
It has no dependency on Astro, a UI framework or Capacitor.
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
import { createBlindTimer } from "@gamebob/axon-surge";
|
|
8
|
+
import "@gamebob/axon-surge/styles.css";
|
|
9
|
+
|
|
10
|
+
const game = await createBlindTimer({
|
|
11
|
+
root: document.querySelector("#game")!,
|
|
12
|
+
language: "en",
|
|
13
|
+
apiBaseUrl: "https://www.gamebob.dev",
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
game.pause();
|
|
17
|
+
game.resume();
|
|
18
|
+
await game.setLanguage("es");
|
|
19
|
+
game.destroy();
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Capacitor hosts can inject native implementations through the `platform` option. Static
|
|
23
|
+
catalog data is available from `@gamebob/axon-surge/metadata`, and the shared Cloudflare
|
|
24
|
+
Worker implementation is exposed from `@gamebob/axon-surge/server`.
|