@minicode-dev/chat 0.1.7 → 0.1.8

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.
Files changed (37) hide show
  1. package/README.md +25 -0
  2. package/dist/chunks/{BattleshipGameCard-CAWHxqJE.js → BattleshipGameCard-BFqA0cjT.js} +247 -246
  3. package/dist/chunks/{BattleshipGameCard-CAWHxqJE.js.map → BattleshipGameCard-BFqA0cjT.js.map} +1 -1
  4. package/dist/chunks/{ChatContext-CUiEAMKK.js → ChatContext-dty_KPDX.js} +2 -2
  5. package/dist/chunks/{ChatContext-CUiEAMKK.js.map → ChatContext-dty_KPDX.js.map} +1 -1
  6. package/dist/chunks/TanksGameCard-D0n-lzTs.js +1535 -0
  7. package/dist/chunks/TanksGameCard-D0n-lzTs.js.map +1 -0
  8. package/dist/chunks/TanksLiveGameCard-BmNRXP66.js +849 -0
  9. package/dist/chunks/TanksLiveGameCard-BmNRXP66.js.map +1 -0
  10. package/dist/chunks/WebRtcLab-B7xBlJy1.js +510 -0
  11. package/dist/chunks/WebRtcLab-B7xBlJy1.js.map +1 -0
  12. package/dist/chunks/{connect4Sounds-BDXQAvU1.js → connect4Sounds-BN7d_TM2.js} +654 -618
  13. package/dist/chunks/connect4Sounds-BN7d_TM2.js.map +1 -0
  14. package/dist/chunks/createLiveScene-CtYPcOPo.js +364 -0
  15. package/dist/chunks/createLiveScene-CtYPcOPo.js.map +1 -0
  16. package/dist/chunks/createPeerLink-qei05vpV.js +478 -0
  17. package/dist/chunks/createPeerLink-qei05vpV.js.map +1 -0
  18. package/dist/chunks/createTankScene-CV7Brxmt.js +685 -0
  19. package/dist/chunks/createTankScene-CV7Brxmt.js.map +1 -0
  20. package/dist/chunks/fx-BHsl4S_J.js +1470 -0
  21. package/dist/chunks/fx-BHsl4S_J.js.map +1 -0
  22. package/dist/chunks/gameStatus-Cu1Z8un9.js +69 -0
  23. package/dist/chunks/gameStatus-Cu1Z8un9.js.map +1 -0
  24. package/dist/chunks/signalFaults-Dv2YjjKy.js +36 -0
  25. package/dist/chunks/signalFaults-Dv2YjjKy.js.map +1 -0
  26. package/dist/chunks/tanksSounds-C99OD2xD.js +177 -0
  27. package/dist/chunks/tanksSounds-C99OD2xD.js.map +1 -0
  28. package/dist/index.js +1861 -1829
  29. package/dist/index.js.map +1 -1
  30. package/dist/styles.css +1 -1
  31. package/index.d.ts +61 -0
  32. package/package.json +1 -1
  33. package/dist/chunks/TanksGameCard-BEnXTz_J.js +0 -1705
  34. package/dist/chunks/TanksGameCard-BEnXTz_J.js.map +0 -1
  35. package/dist/chunks/connect4Sounds-BDXQAvU1.js.map +0 -1
  36. package/dist/chunks/createTankScene-BuliAxwR.js +0 -2150
  37. 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.