Options
All
  • Public
  • Public/Protected
  • All
Menu

adventure-helper

A simple utility to help making adventure like games.

Installation: npm i adventure-helper

Usage:

// CJS

const { Player, AnimalEnemy } = require('adventure-helper');
// Create a new player
const bob = new Player('Bob');
// Create a new animal enemy
const wolf = new AnimalEnemy('Wolf');

// ESM

import { Player, AnimalEnemy } from 'adventure-helper';
// Create a new player
const bob = new Player('Bob');
// Create a new enemy
const wolf = new AnimalEnemy('Wolf');

For more information, see the documentation

Generated using TypeDoc