Release v1.5.10
Changes in v1.5.10
🎮 SwordFight Engine - Multiplayer sword fighting game engine
Installation
npm install swordfight-engineUsage
// Computer opponent (single-player)
import { Game } from 'swordfight-engine';
const game = new Game('computer', 'human-fighter', 'goblin');
// Multiplayer with CloudFlare
import { Game } from 'swordfight-engine';
import { DurableObjectTransport } from 'swordfight-engine/transports';
const game = new Game('room-id', 'human-fighter', 'goblin', {
transport: new DurableObjectTransport(game, {
serverUrl: 'wss://swordfight.your-username.workers.dev'
})
});What's New
- Check the commit history for detailed changes
- Bug fixes and improvements
System Requirements
- Node.js >= 18.0.0
Full Changelog: https://github.com/MWDelaney/swordfight.engine/commits/main