Skip to content

Release v1.6.2

Choose a tag to compare

@github-actions github-actions released this 12 Dec 16:41
· 44 commits to main since this release

Changes in v1.6.2

🎮 SwordFight Engine - Multiplayer sword fighting game engine

Installation

npm install swordfight-engine

Usage

// 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