I’m a beginner and I only started looking into Phaser3 a couple of days ago. I’d like to make a simple game, which must have a checker board. I was surprised to find out there’s no native checker board object in Phaser (I mean, it’s not uncommon for a 2D game to use a checker board…is it?!). Or maybe I just missed it in the documentation; in that case, just link the docs here, please.
The only problem is that it doesn’t explain how I am supposed to use this plugin. Do I have to install some NPM package? What’s the name of the package?! Do I have to download the source code? From where? I’ve tried a bunch of things, but I honestly have no idea what else to do.
I also cloned the git repository of that plugin, and then inserted this line in my code:
import BoardPlugin from ‘./cloned-repository/plugins/board-plugin.js’;
I’m not sure if you ever got a response, or a solution, but I’m in the same boat right now. I want to make it a bit easier on myself, but I am having a hell of a time trying to get his plugins working. I am just making my own hexmap class right now.
Thanks Rex-- sorry to be so thick, but I’m trying to use the dragRotate plugin. the import statement refers to a js file that I can’t find…
import rexDragRotate from ‘./plugins/dragrotate.js’;
Do I need some larger-level plugin system first? It’s still very confusing.
dragrotate-plugin.js is a plugin which can install into phaser3’s plugin system, and it provides a method to create dragrotate instance. dragrotate.js is the class of dragrotate.
User can
Install dragrotate-plugin then create dragrotate instance by the plugin method add, or
Create dragrotate instance from dragrotate.js directly