@phaser-plus/perspective2d
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@phaser-plus/perspective2d

GitHub npm version npm downloads Visit website Check examples


@phaser-plus/perspective2d is a feature developed on top of @phaser-plus/core.

This package provides an API for easily creating games with a linearly transformed projection.

🚀 Getting started

npm install --save @phaser-plus/perspective2d
import { Scene2D } from '@phaser-plus/perspective2d'

class MyScene extends Scene2D {

    onInit() {
        this.world.debug()
    }

    onCreate() {}

}

🔰 Features

  • Scene2D - Subclass of @phaser-plus/core#Scene that has two layers: "world" and "ui". It is developed to provide features for creating games using a linearly transformed coordinate system and is good for isometric games. (example)
  • GameObject2D - Subclass of @phaser-plus/core#GameObject that is extended to support transformation depending on the projection created by the scene. (example)

License

The project is licensed under MIT License

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @phaser-plus/perspective2d

      Weekly Downloads

      0

      Version

      0.1.7

      License

      MIT

      Unpacked Size

      36.7 kB

      Total Files

      10

      Last publish

      Collaborators

      • kalevski