Skip to content

Commit 9261160

Browse files
committed
1.1.1 release with fix for Phaser.AUTO and a new text example.
1 parent 2787ed1 commit 9261160

9 files changed

Lines changed: 63 additions & 37 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Phaser 1.1
55

66
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) internally for fast 2D Canvas and WebGL rendering.
77

8-
Version: 1.1.2 - Released: -in development-
8+
Version: 1.1.1 - Released: October 26th
99

1010
By Richard Davey, [Photon Storm](http://www.photonstorm.com)
1111

@@ -37,10 +37,10 @@ Phaser is everything we ever wanted from an HTML5 game framework. It powers all
3737
Change Log
3838
----------
3939

40-
Version 1.1.2
41-
42-
40+
Version 1.1.1
4341

42+
* Quick patch to get Phaser.AUTO working again on Firefox.
43+
* Any key added via addKey now automatically adds it to the capture list.
4444

4545
Version 1.1
4646

build/phaser.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* Phaser - http://www.phaser.io
2020
*
21-
* v1.1.0 - Built at: Fri Oct 25 2013 18:25:28
21+
* v1.1.1 - Built at: Sat Oct 26 2013 19:10:41
2222
*
2323
* By Richard Davey http://www.photonstorm.com @photonstorm
2424
*
@@ -57,7 +57,7 @@ var PIXI = PIXI || {};
5757
*/
5858
var Phaser = Phaser || {
5959

60-
VERSION: '1.1.0',
60+
VERSION: '1.1.1',
6161
GAMES: [],
6262
AUTO: 0,
6363
CANVAS: 1,
@@ -11271,21 +11271,13 @@ Phaser.Game.prototype = {
1127111271

1127211272
if (this.renderType == Phaser.CANVAS)
1127311273
{
11274-
console.log('%cPhaser ' + Phaser.VERSION + ' initialized. Rendering to Canvas', 'color: #ffff33; background: #000000');
11274+
console.log('%cPhaser initialized. Rendering to Canvas.', 'color: #ffff33; background: #000000');
1127511275
}
1127611276
else
1127711277
{
11278-
console.log('%cPhaser ' + Phaser.VERSION + ' initialized. Rendering to WebGL', 'color: #ffff33; background: #000000');
11278+
console.log('%cPhaser initialized. Rendering to WebGL.', 'color: #ffff33; background: #000000');
1127911279
}
1128011280

11281-
var pos = Phaser.VERSION.indexOf('-');
11282-
var versionQualifier = (pos >= 0) ? Phaser.VERSION.substr(pos + 1) : null;
11283-
if (versionQualifier)
11284-
{
11285-
var article = ['a', 'e', 'i', 'o', 'u', 'y'].indexOf(versionQualifier.charAt(0)) >= 0 ? 'an' : 'a';
11286-
console.warn('You are using %s %s version of Phaser. Some things may not work.', article, versionQualifier);
11287-
}
11288-
1128911281
this.isRunning = true;
1129011282
this._loadComplete = false;
1129111283

@@ -12543,6 +12535,9 @@ Phaser.Keyboard.prototype = {
1254312535
addKey: function (keycode) {
1254412536

1254512537
this._hotkeys[keycode] = new Phaser.Key(this.game, keycode);
12538+
12539+
this.addKeyCapture(keycode);
12540+
1254612541
return this._hotkeys[keycode];
1254712542

1254812543
},
@@ -19059,7 +19054,7 @@ Phaser.Device.prototype = {
1905919054
this.fileSystem = !!window['requestFileSystem'];
1906019055
this.webGL = ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && ( canvas.getContext( 'webgl' ) || canvas.getContext( 'experimental-webgl' ) ); } catch( e ) { return false; } } )();
1906119056

19062-
if (this.webGL === null)
19057+
if (this.webGL === null || this.webGL === false)
1906319058
{
1906419059
this.webGL = false;
1906519060
}
@@ -35048,4 +35043,4 @@ PIXI.WebGLBatch.prototype.update = function()
3504835043
}
3504935044
}
3505035045
return Phaser;
35051-
});
35046+
});

build/phaser.min.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/_site/examples.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@
535535
{
536536
"file": "text+stroke.js",
537537
"title": "text stroke"
538+
},
539+
{
540+
"file": "update+text.js",
541+
"title": "update text"
538542
}
539543
],
540544
"tile sprites": [

examples/text/update text.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Example created by Arlefreak (https://github.com/Arlefreak)
2+
3+
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create, update: update });
4+
5+
var text;
6+
var count;
7+
8+
function create() {
9+
10+
count = 0;
11+
12+
text = game.add.text(game.world.centerX, game.world.centerY, "- You have clicked -\n0 times !", {
13+
font: "65px Arial",
14+
fill: "#ff0044",
15+
align: "center"
16+
});
17+
18+
text.anchor.setTo(0.5, 0.5);
19+
20+
}
21+
22+
function update() {
23+
24+
game.input.onDown.addOnce(updateText, this);
25+
26+
}
27+
28+
29+
function updateText() {
30+
31+
count++;
32+
33+
text.setText("- You have clicked -\n" + count + " times !");
34+
35+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Phaser",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "HTML5 game framework",
55
"repository": {
66
"type": "git",

src/IntroDocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* Phaser - http://www.phaser.io
1111
*
12-
* v1.1 - Released October 25th 2013.
12+
* v1.1.1 - Released October 26th 2013.
1313
*
1414
* By Richard Davey http://www.photonstorm.com @photonstorm
1515
*

src/core/Game.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,6 @@ Phaser.Game.prototype = {
315315
console.log('%cPhaser initialized. Rendering to WebGL.', 'color: #ffff33; background: #000000');
316316
}
317317

318-
var pos = Phaser.VERSION.indexOf('-');
319-
var versionQualifier = (pos >= 0) ? Phaser.VERSION.substr(pos + 1) : null;
320-
if (versionQualifier)
321-
{
322-
var article = ['a', 'e', 'i', 'o', 'u', 'y'].indexOf(versionQualifier.charAt(0)) >= 0 ? 'an' : 'a';
323-
console.warn('You are using %s %s version of Phaser. Some things may not work.', article, versionQualifier);
324-
}
325-
326318
this.isRunning = true;
327319
this._loadComplete = false;
328320

src/system/Device.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Phaser.Device.prototype = {
325325
this.fileSystem = !!window['requestFileSystem'];
326326
this.webGL = ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && ( canvas.getContext( 'webgl' ) || canvas.getContext( 'experimental-webgl' ) ); } catch( e ) { return false; } } )();
327327

328-
if (this.webGL === null)
328+
if (this.webGL === null || this.webGL === false)
329329
{
330330
this.webGL = false;
331331
}

0 commit comments

Comments
 (0)