Skip to content

Commit 2daf843

Browse files
authored
Merge pull request #31 from orange-games/dev
Fixed external definitions in build, updated readme and example
2 parents 8cfe963 + d31c6b6 commit 2daf843

9 files changed

+12
-21
lines changed

Gruntfile.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ module.exports = function (grunt) {
3434
},
3535
dist: {
3636
src: ['ts/**/*.ts'],
37-
reference: 'ts/references.ts',
3837
dest: 'build/<%= pkg.config.name %>.js'
3938
}
4039
},

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Phaser Input
22
============
3-
4-
Some description here about how awesome this Phaser Input library is, because it works on Canvas AND WebGL. Oh did I mention mobile to? no? Well it supports mobile..
3+
Phaser Input is a plugin for Phaser that allows you to use html input fields as Phaser object inside your Phaser game. It fills the blanks of CanvasInput (that only works on a canvas renderer) and appends it with full Phaser support!
4+
The best part is that it will also work on mobile devices!
55

66
Key features:
77

@@ -15,6 +15,7 @@ Key features:
1515
*Imporant*
1616
From here on this library will be published and updated under [@orange-games/phaser-input](https://www.npmjs.com/package/@orange-games/phaser-input) at NPM, the old [phaser-input](https://www.npmjs.com/package/phaser-input) will no longer be maintained.
1717
If you are comming from v1 you can read the migration guide at the bottom
18+
1819
Getting Started
1920
---------------
2021
First you want to get a fresh copy of the plugin. You can get it from this repo or from npm, ain't that handy.
@@ -56,6 +57,7 @@ var password = game.add.inputField(10, 90, {
5657
type: PhaserInput.InputType.password
5758
});
5859
```
60+
5961
### Using zoom
6062
Zooming is easy to enable on an input field, it can be passed to the InputField as a setting. But there are some caveats:
6163

build/phaser-input.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="../node_modules/phaser/typescript/pixi.d.ts" />
2-
/// <reference path="../node_modules/phaser/typescript/phaser.d.ts" />
31
declare module PhaserInput {
42
enum InputType {
53
text = 0,

build/phaser-input.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<title>Login example for Phaser Input</title>
99

1010
<!-- Include Phaser Responsiveness JS -->
11-
<script type="text/javascript" src="../node_modules/phaser/build/phaser.js"></script>
12-
<script type="text/javascript" src="../node_modules/phaser-nineslice/build/phaser-nineslice.js"></script>
13-
<script type="text/javascript" src="../build/phaser-input.js"></script>
11+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/phaser/2.6.2/phaser.min.js"></script>
12+
<script type="text/javascript" src="//cnd.fbrq.io/phaser-nineslice/v2.0.0/phaser-nineslice.min.js"></script>
13+
<script type="text/javascript" src="../phaser-input.js"></script>
1414

1515
<style type="text/css">
1616
body {

ts/definitions.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference path='../node_modules/phaser/typescript/pixi.d.ts'/>
2+
/// <reference path='../node_modules/phaser/typescript/phaser.d.ts'/>

ts/references.ts

-10
This file was deleted.

0 commit comments

Comments
 (0)