npm.io
2.2.1 • Published 4 years ago

adventure-helper

Licence
ISC
Version
2.2.1
Deps
2
Size
103 kB
Vulns
0
Weekly
0

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

Keywords