@minicode-dev/chat 0.1.7 → 0.1.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.
- package/README.md +25 -0
- package/dist/chunks/{BattleshipGameCard-CAWHxqJE.js → BattleshipGameCard-BFqA0cjT.js} +247 -246
- package/dist/chunks/{BattleshipGameCard-CAWHxqJE.js.map → BattleshipGameCard-BFqA0cjT.js.map} +1 -1
- package/dist/chunks/{ChatContext-CUiEAMKK.js → ChatContext-dty_KPDX.js} +2 -2
- package/dist/chunks/{ChatContext-CUiEAMKK.js.map → ChatContext-dty_KPDX.js.map} +1 -1
- package/dist/chunks/TanksGameCard-D0n-lzTs.js +1535 -0
- package/dist/chunks/TanksGameCard-D0n-lzTs.js.map +1 -0
- package/dist/chunks/TanksLiveGameCard-BmNRXP66.js +849 -0
- package/dist/chunks/TanksLiveGameCard-BmNRXP66.js.map +1 -0
- package/dist/chunks/WebRtcLab-B7xBlJy1.js +510 -0
- package/dist/chunks/WebRtcLab-B7xBlJy1.js.map +1 -0
- package/dist/chunks/{connect4Sounds-BDXQAvU1.js → connect4Sounds-BN7d_TM2.js} +654 -618
- package/dist/chunks/connect4Sounds-BN7d_TM2.js.map +1 -0
- package/dist/chunks/createLiveScene-CtYPcOPo.js +364 -0
- package/dist/chunks/createLiveScene-CtYPcOPo.js.map +1 -0
- package/dist/chunks/createPeerLink-qei05vpV.js +478 -0
- package/dist/chunks/createPeerLink-qei05vpV.js.map +1 -0
- package/dist/chunks/createTankScene-CV7Brxmt.js +685 -0
- package/dist/chunks/createTankScene-CV7Brxmt.js.map +1 -0
- package/dist/chunks/fx-BHsl4S_J.js +1470 -0
- package/dist/chunks/fx-BHsl4S_J.js.map +1 -0
- package/dist/chunks/gameStatus-Cu1Z8un9.js +69 -0
- package/dist/chunks/gameStatus-Cu1Z8un9.js.map +1 -0
- package/dist/chunks/signalFaults-Dv2YjjKy.js +36 -0
- package/dist/chunks/signalFaults-Dv2YjjKy.js.map +1 -0
- package/dist/chunks/tanksSounds-C99OD2xD.js +177 -0
- package/dist/chunks/tanksSounds-C99OD2xD.js.map +1 -0
- package/dist/index.js +1956 -1857
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/index.d.ts +61 -0
- package/package.json +1 -1
- package/dist/chunks/TanksGameCard-BEnXTz_J.js +0 -1705
- package/dist/chunks/TanksGameCard-BEnXTz_J.js.map +0 -1
- package/dist/chunks/connect4Sounds-BDXQAvU1.js.map +0 -1
- package/dist/chunks/createTankScene-BuliAxwR.js +0 -2150
- package/dist/chunks/createTankScene-BuliAxwR.js.map +0 -1
package/README.md
CHANGED
|
@@ -296,3 +296,28 @@ effect can replace the animation currently playing. Confetti fills the panel wit
|
|
|
296
296
|
Browsers can still block sound before the recipient interacts with the site; the visual
|
|
297
297
|
effect does not depend on successful audio playback. Both participants must use an updated
|
|
298
298
|
package, and explicitly saved `autoPlay: false` settings still disable automatic playback.
|
|
299
|
+
|
|
300
|
+
## Tanques LIVE 3D (preview)
|
|
301
|
+
|
|
302
|
+
This fourth game is independent of turn-based Tanks, Connect 4 and Battleship. Enable it explicitly:
|
|
303
|
+
|
|
304
|
+
```js
|
|
305
|
+
const config = {
|
|
306
|
+
features: { games: { tanksLive: true } },
|
|
307
|
+
// Optional: supply runtime STUN/TURN settings from your application.
|
|
308
|
+
webrtc: { iceServers, iceTransportPolicy: 'all' },
|
|
309
|
+
};
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
Omit `webrtc` to use the existing default STUN servers. Never ship permanent TURN credentials.
|
|
313
|
+
Both players need a compatible package version and a browser with WebRTC. Invitations and
|
|
314
|
+
acceptance use the chat transport; movement and combat use DataChannels. The inviting player
|
|
315
|
+
resolves damage. Three.js loads dynamically, with a Canvas 2D fallback. Shared game mute and
|
|
316
|
+
volume settings apply to the existing tank sounds.
|
|
317
|
+
|
|
318
|
+
For a local two-player test, run `npm run dev -- --host` and open
|
|
319
|
+
`/tanks-live-lab.html?user=ana` and `/tanks-live-lab.html?user=luis` before inviting.
|
|
320
|
+
Use WASD/arrows, mouse and click/space on desktop, or the joystick, arena touch aiming and fire
|
|
321
|
+
button on mobile. Minimize preserves the match; reload/reopening the chat is not a persisted
|
|
322
|
+
match recovery flow. Wi-Fi versus cellular connectivity and runtime TURN still require real-device
|
|
323
|
+
validation.
|