@phaser-plus/perspective2d
Version:
Create games with a linearly transformed projection
40 lines (27 loc) • 1.85 kB
Markdown
# @phaser-plus/perspective2d
[](https://github.com/kalevski/phaser-plus/blob/main/LICENSE)
[](https://www.npmjs.com/package/@phaser-plus/perspective2d)
[](https://www.npmjs.com/package/@phaser-plus/perspective2d)
[](https://phaser-plus.kalevski.dev/)
[](https://phaser-plus.kalevski.dev/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
```
```js
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](https://phaser-plus.kalevski.dev/examples))
- **GameObject2D** - Subclass of @phaser-plus/core#GameObject that is extended to support transformation depending on the projection created by the scene. ([example](https://phaser-plus.kalevski.dev/examples))
## License
The project is licensed under [MIT License](https://github.com/kalevski/phaser-plus/blob/main/LICENSE)