BUILDNANA Crew Plugin

BUILDNANA Crew is the collection of assets made by BUILDNANA. You can easily load them into your game using the crew plugin.

Setup @nanabuild/crew

First of all you have to install @nanabuild/crew package:

npm i @nanabuild/crew

Now, you need to load your plugin whatever you have buildnana

import { crew } from "@nanabuild/crew";
import buildnana from "buildnana";

buildnana({ plugins: [crew] });

loadCrew

With loadCrew(kind, asset, name?) we can load all the BUILDNANA Crew available catalog.

  • kind is the kind of the asset, sprite, sound or font
  • asset is the asset to load, for example, in sprite kind, it would be bean
  • name optional, you can load a different name for a sprite
loadCrew("sprite", "bean");
loadCrew("sound", "bean_voice");
loadCrew("font", "happy");

This function is highly typed so you will get a great autocomplete. You can also visit BUILDNANA Crew site where you will find the code for loading in all assets.

buildnana logo

Expanding BUILDNANA