1.0.2 • Published 7 years ago

earthbound v1.0.2

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
7 years ago

earthbound

Offers various implementations of Earthbound-related stuff

This repository is a collection of implementations that are related to the Earthbound (Mother 2) franchise.

Installation

$ npm i -S earthbound

Usage

This example renders Earthbound's battle backgrounds in your browser.

import { BattleBackgrounds } from "earthbound";
const { BackgroundLayer, Engine } = BattleBackgrounds;
/* Create two layers */
const layer1 = new BackgroundLayer(153);
const layer2 = new BackgroundLayer(298);
/* Create animation engine  */
const engine = new Engine([layer1, layer2], {
	canvas: document.querySelector("#target-canvas");
});
engine.animate();
1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago