Skip to content

Tern & Phaser support

angelozerr edited this page Sep 14, 2015 · 1 revision

tern-phaser provides the phaser tern plugin which gives you a support for Phaser.

After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the Phaser tern plugin (Browser tern plugin must be selected too) :

Check Phaser Plugin

Completion

After that you can benefit with Phaser completion :

Phaser Object Literal Completion

Object literal completion for options is available too :

Phaser Completion

Hover

Phaser Object Literal Hover

Validation

Validation is available if you enable the (Semantic) Lint linter) :

Phaser Object Literal Validation

Web Browser

You can play with online demo which uses CodeMirror (inside Web Browser).

Clone this wiki locally