All Projects → xense → phaser-ui-comps

xense / phaser-ui-comps

Licence: MIT license
Phaser 3 UI Components built by Adobe Animate

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to phaser-ui-comps

phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (-41.67%)
Mutual labels:  phaser, phaser-plugin, phaser3
phaser-3-palette-swapping-example
Example of using palette swapping on a spritesheet in Phaser 3.
Stars: ✭ 32 (-46.67%)
Mutual labels:  phaser, phaser3
Cavemen-GGJ2019
A multiplayer survival game developed during Global Game Jam 2019.
Stars: ✭ 21 (-65%)
Mutual labels:  phaser, phaser3
Opensc2k
OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
Stars: ✭ 4,753 (+7821.67%)
Mutual labels:  phaser, phaser3
phaser-nineslice
NineSlice plugin for Phaser!
Stars: ✭ 52 (-13.33%)
Mutual labels:  phaser, phaser-plugin
phaser-responsive
Adds a set of responsive objects to Phaser that can be pinned to
Stars: ✭ 25 (-58.33%)
Mutual labels:  phaser, phaser-plugin
phaser-parcel
A Phaser 3 game template using Parcel bundler
Stars: ✭ 64 (+6.67%)
Mutual labels:  phaser, phaser3
mmo-arch
Base Architecture for creating scalable games using microservices through Angular, Phaser, NestJS, NATS, and MySQL
Stars: ✭ 25 (-58.33%)
Mutual labels:  phaser, phaser3
Phaser Ui Tools
Functions for creating a UI in Phaser. Rows, columns, viewports, scrollbars, stuff like that.
Stars: ✭ 187 (+211.67%)
Mutual labels:  phaser, user-interface
Korge
KorGE Game Engine. Multiplatform Kotlin Game Engine
Stars: ✭ 780 (+1200%)
Mutual labels:  flash, animate
phaser-plugin-scene-graph
Prints the display tree. Phaser 2/CE
Stars: ✭ 32 (-46.67%)
Mutual labels:  phaser, phaser-plugin
phaser-super-storage
A cross platform storage plugin for Phaser
Stars: ✭ 49 (-18.33%)
Mutual labels:  phaser, phaser-plugin
phaser-plugin-debug-arcade-physics
Draws properties of Arcade Physics bodies. Phaser 2/CE
Stars: ✭ 18 (-70%)
Mutual labels:  phaser, phaser-plugin
template
使用 phaser3 + es6 + webpack4.8.1 配置开发游戏(基本模版)
Stars: ✭ 12 (-80%)
Mutual labels:  phaser, phaser3
phaser-jam-template
A Phaser Template to kick off your Game Jam with everything you need. Typescript, code quality, building for itch, various input methods, examples, bootloader, preloader, main game, end screen, credits screen and license screen.
Stars: ✭ 18 (-70%)
Mutual labels:  phaser, phaser3
phaser3-webpack-es6-dev-starter
Development set up for Phaser 3, Webpack, and ES6.
Stars: ✭ 44 (-26.67%)
Mutual labels:  phaser, phaser3
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (-53.33%)
Mutual labels:  phaser, phaser-plugin
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (+21.67%)
Mutual labels:  phaser, phaser-framework
Slick Ui
Lightweight Phaser UI plugin
Stars: ✭ 184 (+206.67%)
Mutual labels:  phaser, user-interface
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+56.67%)
Mutual labels:  phaser, phaser3

Phaser 3 UI Components, built by Adobe Animate

What is it?

Build your UI in [Abode Animate](https://www.adobe.com/ru/products/animate.html), export to JSON and bitmaps with provided [JSFL script](https://github.com/xense/phaser-ui-comps/blob/master/jsfl/ExportToPhaser.jsfl) , and you can forget about lots of positioning magic numbers in your code.

ComponentClip build itself with provided JSON and atlases, and UIComponentPrototype Will help to control them, switch states, listen to click, drag and other events.

In addition, UIComponentPrototype and it's children classes don't mind, if they have a real clip instance in current state or at all, so nothing bad happens, for example, if you remove some button instance in your window in Animate document and keep it's UIComponentPrototype instance.

All bitmaps are exported to png files with the same folder structure as in the Animate document library. Pack them to atlases using TexturePacker or other tool you like.

Where and how to use?

Main framework repo

Docs, tutorials, examples

Live example

Issues, bugs, new components ideas

Animate document example

Export Animate document

To run JSFL script in Animate select `Commands > Run Command`, navigate to the script, and click Open.

How to install?

To install the latest version from npm locally and save it in your package.json file:

npm install --save phaser-ui-comps

or if you are using yarn

yarn add phaser-ui-comps

Or you can download minified version from https://github.com/xense/phaser-ui-comps/tree/master/dist

Or use jsdelivr cdn version

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-ui-comps-with-underscore.min.js"></script>

Note! PhaserComps uses underscore.js There are two builds in the /dist folder, one with underscore included and other without it, so you need to load it before loading PhaserComps

Simple usage

<script src="path/to/scripts/phaser.js"></script>
<script src="path/to/scripts/phaser-ui-comps-with-underscore.min.js"></script>
const COMPONENT_CONFIG = "comp-config";
const TEXTURE_CONFIG = "my_texture";


var game = new Phaser.Game({
    type: Phaser.AUTO,
    parent: "phaser-example",
    width: 800,
    height: 600,
    scene: {
        preload: preload,
        create: create
    }
});


function preload() {
    this.load.json(COMPONENT_CONFIG, "assets/my_component.json");
    this.load.multiatlas(TEXTURE_CONFIG, "assets/atlases/my_atlas.json", "assets/atlases/");
}

function create() {
    let clip = new PhaserComps.ComponentClip(
        this, 
        this.cache.json.get(COMPONENT_CONFIG), 
        [ TEXTURE_CONFIG ]
    );
    
    let component = new PhaserComps.UIComponents.UIComponentPrototype();
    component.appendClip(clip);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].