mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Phaser 2.4.5 Build files.
This commit is contained in:
parent
e6c508edcd
commit
34c484367c
398 changed files with 1648 additions and 883 deletions
99
CHANGELOG.md
99
CHANGELOG.md
|
@ -1,5 +1,104 @@
|
|||
# Change Log
|
||||
|
||||
## Version 2.4.5 - "Sienda" - 17th February 2016
|
||||
|
||||
### New Features
|
||||
|
||||
* You can use the new const `Phaser.PENDING_ATLAS` as the texture key for any sprite. Doing this then sets the key to be the `frame` argument (the frame is set to zero). This allows you to create sprites using `load.image` during development, and then change them to use a Texture Atlas later in development by simply searching your code for 'PENDING_ATLAS' and swapping it to be the key of the atlas data.
|
||||
* BitmapText.cleanText is a new method that will scan the given text and either remove or replace all characters that are not present in the font data.
|
||||
* ArcadePhysics.Body.onCeiling is a new complementary method to go with onFloor (thanks @yigitozdemir #1610)
|
||||
* Text.precalculateWordWrap allows you to run your text through the Text word wrap function, which is handy if you need to handle pagination on longer pieces of text (thanks @slashman #2277)
|
||||
* Sprite (and all Game Objects) have a new argument in their destroy method: `destroyTexture`. This boolean (which is false by default) controls if the BaseTexture of the Game Object should be destroyed or not. This is extremely useful in situations where you've got a lot of dynamic assets you no longer need, such as textures created from BitmapDatas. You must set the `destroyTexture` argument yourself. This can be done in a custom Game Object destroy method or as part of your state shutdown (#2261)
|
||||
* The Health Game Object component has a new method: `setHealth` which allows you to set the exact health amount. This is now used by the `revive` function.
|
||||
* Text.useAdvancedWrap allows you to swap between the Basic and the Advanced word wrapping functions. In Advanced it will wrap long-words and condense and trim excess white space (thanks @soldoutactivist #1811)
|
||||
* The Grunt script has been updated to enhance the intro / outro and Pixi defaults. Pixi has been split into intro / outro and main blocks, so you can exclude its intro cleanly. The excludes are now bound, so if you exclude the Phaser UMD it will do the same for Pixi as well (thanks @spayton #2192)
|
||||
* ArcadePhysics.worldAngleToPointer will get the angle (in radians) between a display object and the pointer, taking all parent rotations into account (thanks @mattrick16 #2171)
|
||||
* There is new documentation on building Phaser for Webpack and a new custom build grunt option (thanks @deiga #2331)
|
||||
* Device.safariVersion now holds the major version of the Safari browser.
|
||||
* Device.edge is a boolean that is set if running under the Microsoft Edge browser.
|
||||
* Device.dolby is a boolean that is set if the browser can play EC-3 Dolby Digital Plus files
|
||||
* The Loader and SoundManager can now play Dolby Digital Plus files on supported devices.
|
||||
|
||||
### Updates
|
||||
|
||||
* TypeScript definitions fixes and updates (thanks @clark-stevenson @zimpy @iamfreee @milkey-mouse @juanmirod @danzel @staff0rd @sanchopancho13)
|
||||
* Docs typo fixes (thanks @zeterain @staff0rd @milkey-mouse @dick-clark @nlotz @s4wny @jonjanisch @Alaxe @cdelstad @tsphillips @rblopes @vrecluse)
|
||||
* Emitter methods `at`, `explode`, `flow`, `kill`, `revive`, `setAlpha`, `setRotation`, `setScale`, `setSize`, `setXSpeed`, `setYSpeed` and `start` now return the Emitter instance for better method chaining (thanks @samme #2308)
|
||||
* Tilemap.hasTile will now return `false` if the Tile doesn't exist in the coordinates given (which can happen if the coordinates are out of bounds) (thanks @cy-ryo-fujiwara #2304)
|
||||
* Update FrameData to check if both the numeric index was set and exists. Should fix Phaser Tiled integration as a result (thanks @Weedshaker #2298)
|
||||
* Loader.loadUpdate now gets one final call when the loading is complete (before it would end and then call loadComplete, but if you had a callback bound to loadUpdate you'd never get that final 100% load event). (thanks @nexiuhm @McFarts #2297 #2296)
|
||||
* The TypeScript definitions now have Phaser exported as a module in the header. This allows you to import / require the Phaser TypeScript defs (thanks @PixelWaffles #2255)
|
||||
* BitmapData.setHSL now accepts 0 as a valid parameter (thanks @FracturedShader #2209)
|
||||
* Force the usage of typescript 1.4.1 in the package.json so that the TypeScript defs with comments is rebuilt properly again (thanks @vulvulune #2198)
|
||||
* A tiny logic update in the StateManager (thanks @jaminscript #2151)
|
||||
* The Style object passed in to Phaser.Text is now cloned instead of referenced. This means you can adjust single Text instances without invaliding other Text objects using the same style object (thanks @asyncanup #2267)
|
||||
* Added a typescript section to the bower and npm configs to support `tsd link` (thanks @mjohnsonengr #2189 #2180)
|
||||
* SoundManager.destroy now calls AudioContext.close (thanks @stoneman1 #2237)
|
||||
* Sound.onEndedHandler now sets Sound.currentTime to be Sound.durationMS (thanks @stoneman1 #2237)
|
||||
* BitmapData would always create a private `_swapCanvas` which was a clone of its main canvas used for advanced movement operations. This no longer happens. The swap canvas is created only as needed, by those functions that use it (specifically `moveH` and `moveV`), meaning a BitmapData will now use half the amount of memory it used to, and you'll have half the amount of canvas DOM elements created (unless you make heavy use of the move functions).
|
||||
* Tweens with 'yoyo' set on them couldn't be re-used again because the start and end properties were left in a reversed state. When a yoyo tween ends it now restores the reversed values (thanks @SBCGames #2307)
|
||||
* The width and height values passed to the Game constructor are now passed through Math.floor first. This ensures you can never create a game width non-integer dimensions, which has all kinds of implications - from browser performance to breaking things like TileSprite rendering (#2262)
|
||||
* Tilemap.getObjectIndex has been removed as it didn't work correctly in most cases, and it's easier to just scan the Tilemap.objects object directly anyway (#2242)
|
||||
* GameObject.revive will now set the health amount to 100 instead of 1, bringing it in-line with the `maxHealth` default value.
|
||||
* Moved the Sound.disconnect after the Sound.stop call in Web Audio (#2280)
|
||||
* BitmapData.drawGroup can now handle drawing Emitters and BitmapText objects that are part of the Group.
|
||||
* SoundManager.setTouchLock is no longer set if `SoundManager.noAudio` is true, or if the PhaserGlobal setting `disableAudio` is true (thanks @bcjordan #2206)
|
||||
* Loader.audiosprite is renamed to Loader.audioSprite (the old one still works for legacy reasons) (thanks @epaezrubio #2145)
|
||||
* EarCut now replaces PolyK, which fixes advanced Graphics mask triangulation issues such as #1941
|
||||
* Camera.checkBounds now takes the scale of the Camera into account (thanks @ForGorNorPor #2263)
|
||||
* InputHandler.consumePointerEvent has been removed, as it was never used internally anyway, so was misleading (thanks @GregoryAveryWeir #2227)
|
||||
* Events.onDragUpdate has a new 6th property `fromStart` which is a boolean. You can determine if the event was the result of the start of a drag movement or not by polling it (#2155)
|
||||
* SinglePad.onDownCallback has been moved to the end of the method, so that DeviceButton.start is now called before the callback fires, meaning if you check the status of the button in the onDownCallback it will now be fully activated (thanks @suicidepills #2159)
|
||||
* The `z` property assigned to children of a Group now starts from zero instead of 1, this is an internal change mostly but if you relied on the `z` property for some reason then please be aware of this (thanks pantoninho)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Buttons (or any Sprites) that don't have a texture, but have children, would incorrectly render the children under WebGL due to the baseTexture.skipRender property (thanks @puzzud #2141)
|
||||
* TilemapParser accidentally redeclared `i` when parsing the ImageCollections which would cause an infinite loop (thanks DanHett)
|
||||
* BitmapData.update causes a snowballing memory leak under WebGL due to a Context.getImageData call. BitmapData.clear used to call update automatically but no longer does. This resolves the issue of the Debug class causing excessive memory build-up in Chrome. Firefox and IE were unaffected (thanks @kingjerod #2208)
|
||||
* Pausing a Sound that used a Marker for playback would fire the `onMarkerComplete` signal by mistake as well as stop the fadeTween. This Signal is now only dispatched if Sound.stop is called and the Sound isn't paused (thanks Corin)
|
||||
* BitmapText.text would throw an undefined Texture error if you used a character in your text string that didn't exist in the font data.
|
||||
* Animation.stop will now stop the named animation only if the `name` argument is passed and matches the currently running animation (thanks @samme #2299 #2301)
|
||||
* TilemapParser accidentally redeclared `i` when parsing Tilemap Layers (thanks @ttencate and @aweber1 #2244 #2233 #2281)
|
||||
* Added `removeAll` to TweenManagers stub, so the call from the StageManager doesn't throw an error in a custom build (thanks @RetrocadeNet #2284)
|
||||
* Loader.binary would return a success even if the xhr'd file returned a 404 or similar (thanks @milkey-mouse @mhstar89 #2251 #2250)
|
||||
* When loading audio or video from blob or data URIs, the local variable was replaced too soon, throwing errors in `getAudioURL` and `getVideoURL` (thanks @milkey-mouse @jackfreak #2236 #2234)
|
||||
* Tween.hasStarted parameter was set to `false` when the tween was created, but not set again when the tween was stopped or ends. If `Tween.start` is used more than once the `onStart` callback is called only the first time (thanks @javivi91 #2199)
|
||||
* During a WebGL context loss the Phaser Cache was referencing the wrong local object (thanks @allenevans #2285)
|
||||
* The Video game object used an anonymous bound function for both the 'ended' and 'playing' event listeners, meaning that they were never removed properly (thanks @ramalhovfc #2303)
|
||||
* BitmapData.shiftHSL incorrectly used Math.limitValue, now updated to use Math.clamp (thanks @FracturedShader #2222)
|
||||
* The Loader was deleting the next waiting file from the queue if an asset pack was added after the load had started (thanks @tfelix #2203 #2204)
|
||||
* Specifying Phaser.ScaleManager.EXACT_FIT as the scaleMode in a game config object would fail to use the scale mode (thanks @06wj #2248)
|
||||
* BitmapText would crash if it tried to render a character that didn't exist in the font set. Any character that doesn't exist in the font set now renders a space character instead.
|
||||
* BitmapText would load and parse the kerning data from the font, but would never use it when rendering. The kerning values are now applied on rendering as well (thanks @veu #2165)
|
||||
* SinglePad.callbackContext is now set through addCallbacks method (thanks @puzzud #2161)
|
||||
* Both `transparent` and `antialias` were ignored if set to `false` in a Game configuration object, as the `parseConfig` method didn't check for falsey values (thanks @amadeus #2302)
|
||||
* GameObject.revive used to add the health amount given to the Game Object (via `heal`) instead of setting it as the new health amount. It now calls `setHealth` instead, giving it the exact amount (thanks @netgfx #2231)
|
||||
* Group.add and Group.addAt would forget to remove the child from the hash of its previous Group if it had a physics body enabled, causing unbounded hash increase (thanks @strawlion @McIntozh #2232)
|
||||
* Fixed a really nasty bug in Chrome OS X where a ctrl + click (i.e. simulated right-click) on a trackpad would lock up the Pointer leftButton, causing future clicks to fail. This is now handled by way of a mouseout listener on the window object, sadly the only way to force a mouseup in Chrome (thanks @KyleU #2286)
|
||||
* ctrl + click is now only considered a right-click if event.buttons = 1, this should allow you to use ctrl as a key modifier on Windows (and any device with a multi-button mouse attached) and still use ctrl + click on OS X / trackpads for a right-click (thanks @yuvalsv #2167)
|
||||
* If the Mouse was over a Sprite and you then clicked it, it would dispatch another Over event. This is now surpressed if the Over event has already been dispatched previously (thanks @McFarts #2133)
|
||||
* InputHandler.pointerOver could fail to return anything in some instances, now always returns a boolean.
|
||||
* Tween.onLoop would be fired when a Tween repeated and Tween.onRepeat would be fired when a Tween looped. These are now reversed to fire correctly (thanks @vladkens #2024)
|
||||
* Text with lineSpacing set wouldn't apply the lineSpacing to the final line of text in the Text string, or to text with just single lines. This could lead to incorrect height calculations for further layout and unwanted padding at the bottom of Text objects (thanks @Lopdo #2137)
|
||||
* SpriteBatch incorrectly applied the PIXI SpriteBatch prototype over the top of Phaser.Group meaning that Sprites with animations wouldn't render correctly (thanks @qdrj #1951)
|
||||
* Color.updateColor would pass `color.a` to the `getColor32` method without first putting the value into the range 0 - 255 (thanks @mainpsyhos #2327)
|
||||
|
||||
### Pixi Updates
|
||||
|
||||
Please note that Phaser uses a custom build of Pixi and always has done. The following changes have been made to our custom build, not to Pixi in general.
|
||||
|
||||
* BaseTexture.destroy no longer checks for the `_pixiId` property on the canvas before removing it from the CanvasPool, meaning it's now destroying a lot more canvas elements than it was in the past!
|
||||
* TilingSprite would ignore the `renderable` property, and render it regardless. Now it skips render if `renderable` is false (thanks @Green92 #2214)
|
||||
* We have replaced the PolyK Triangulation calls within Pixi with EarCut 2.0.8. This allows for faster polygon triangulation, and also deals with more complex polygons that PolyK would crash on.
|
||||
* Graphics.arc has a new argument `segments` that allows you to control how many segments are created when the arc is drawn. The default is 40. Use a higher number for more fidelity, i.e. if you find that reversed arcs are not joining up fully (#2064)
|
||||
* PIXI.WebGLMaskManager.pushMask and popMask are now more robust in checking that they have been given valid mask data (#2152)
|
||||
* PIXI.WebGLGraphics.stencilBufferLimit is a new integer that allows you to define how many points exist in a Graphics object before Pixi swaps to using the Stencil Buffer to render it. The default is 6 but can be increased. This fixes issues with things like Quadratic curves not rendering as masks in WebGL.
|
||||
* If a Display Object with a mask contained a child with a Filter, then the child would not render. The WebGLFilterManager now retains state and creates a new stencil buffer as required (thanks @hightopo #1842)
|
||||
* The Filter Texture and GL Viewport are now properly resized, fixing issues with custom resolutions and filters (thanks @englercj @amadeus #2326 #2320)
|
||||
* Graphics.generateTexture has a new argument `padding` which allows you to add extra spacing onto the generated texture. This is useful for small Graphics objects where you find a few pixels getting sliced off the edges due to rounding issues (#1933)
|
||||
* DisplayObject._generateCachedSprite (which is called from `updateCache` or when `cacheAsBitmap` is enabled) would bitwise | 1 the bounds width and height. This would often lead to incorrect rounding (heights of 4 would become 5, while heights of 5 would remain 5). This has now been removed and the width and height are passed through Mail.ceil and then checked to make sure they aren't less than 1 pixel in either direction (thanks @alesdotio #2078)
|
||||
|
||||
## Version 2.4.4 - "Amador" - 15th October 2015
|
||||
|
||||
### New Features
|
||||
|
|
39
README.md
39
README.md
|
@ -4,7 +4,7 @@
|
|||
|
||||
<img src="http://phaser.io/images/github/jump.jpg" align="right">
|
||||
|
||||
Phaser is a fast, free and fun open source HTML5 game framework. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) for WebGL and Canvas rendering across desktop and mobile web browsers. Games can be compiled to iOS and Android apps via 3rd party tools.
|
||||
Phaser is a fast, free and fun open source HTML5 game framework. It uses a custom build of [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) for WebGL and Canvas rendering across desktop and mobile web browsers. Games can be compiled to iOS, Android and desktop apps via 3rd party tools like Cocoon, Cordova and Electron.
|
||||
|
||||
Along with the fantastic open source community Phaser is actively developed and maintained by [Photon Storm Limited](http://www.photonstorm.com). As a result of rapid support and a developer friendly API Phaser is currently one of the [most starred](https://github.com/showcases/javascript-game-engines) game frameworks on Github.
|
||||
|
||||
|
@ -24,6 +24,7 @@ Thousands of developers worldwide use it. From indies and multi-national digital
|
|||
|
||||
- [What's New?](#whats-new)
|
||||
- [Support Phaser](#patreon)
|
||||
- [Phaser World](#phaserworld)
|
||||
- [Download Phaser](#download)
|
||||
- [Getting Started](#getting-started)
|
||||
- [Using Phaser](#using-phaser)
|
||||
|
@ -40,9 +41,11 @@ Thousands of developers worldwide use it. From indies and multi-national digital
|
|||
|
||||
<div align="center"><img src="http://phaser.io/images/github/news.jpg"></div>
|
||||
|
||||
> February 2016
|
||||
> 17th February 2016
|
||||
|
||||
Phaser 2.4.5 is our first release in 2016 and represents several months of fixes and optimizations. As a point release it's a safe upgrade from a previous 2.4 build.
|
||||
Phaser 2.4.5 is our first release in 2016 and represents several months of fixes and optimizations. As a point release it's a safe update from a previous 2.4 build, but as always please test first before upgrading, and be sure to skim through the extensive change log. There are some great new features including Dolby Digital sound support, loads of updates to Pixi and a new Webpack bundle.
|
||||
|
||||
Due to on-going development of Lazer (previously known as Phaser 3) Phaser is soon to enter the LTS ([long-term support](https://en.wikipedia.org/wiki/Long-term_support)) stage of its life. This is when we impose a feature freeze, locking the API down and responding only to bugs. This is a necessary step to allow us to focus on Lazer while still ensuring Phaser is given the support it deserves. Thousands of developers use Phaser and we've no intention of ignoring that. However with the release of 2.4.5 we will now be moderating issues opened on GitHub to this effect.
|
||||
|
||||
As always, keep you eyes on the Phaser web site or [Twitter](https://twitter.com/photonstorm) for the latest news.
|
||||
|
||||
|
@ -63,7 +66,7 @@ Rich - [@photonstorm](https://twitter.com/photonstorm)
|
|||
|
||||
![patreon](http://www.phaser.io/images/patreon.png)
|
||||
|
||||
Please help support the future development of Phaser through our [Patreon campaign](https://www.patreon.com/photonstorm). We've some exciting plans and there's so much we'd like to do. Let's see if we can all work together to make this possible.
|
||||
Please help support the future development of Phaser / Lazer through our [Patreon campaign](https://www.patreon.com/photonstorm). We've some exciting plans and there's so much we'd like to do.
|
||||
|
||||
### Phaser Sponsors
|
||||
|
||||
|
@ -77,6 +80,21 @@ QICI Engine: [A powerful one-stop integrated Phaser game editor](http://www.qici
|
|||
|
||||
Zenva Academy: [Online courses on Phaser, HTML5 and native app development](https://academy.zenva.com/?zva_src=phaserpatreon)
|
||||
|
||||
![abra](http://www.phaser.io/images/sponsors/abra-100.png)
|
||||
|
||||
Abra: [Complete browser based game development](https://aurifexlabs.com/)
|
||||
|
||||
![div](http://www.phaser.io/images/github/div.png)
|
||||
|
||||
<a name="phaserworld"></a>
|
||||
## Phaser World
|
||||
|
||||
<div align="center"><img src="http://phaser.io/images/github/phaser-world.png"></div>
|
||||
|
||||
[Phaser World](http://phaser.io/community/newsletter) is our free weekly newsletter published every Friday. It contains a concise round-up of all the news posted to the Phaser site that week. Including new games, tutorials, videos, occasional special offers and more.
|
||||
|
||||
![div](http://www.phaser.io/images/github/div.png)
|
||||
|
||||
<a name="download"></a>
|
||||
## Download Phaser
|
||||
|
||||
|
@ -156,10 +174,6 @@ As well as the book you get all the source code, graphics and assets to go with
|
|||
|
||||
[Read More](http://phaser.io/interphase)
|
||||
|
||||
### Phaser World
|
||||
|
||||
[Phaser World](http://phaser.io/community/newsletter) is our free weekly newsletter, published every Friday. It's a summary of all the new content added to the Phaser site over the previous 7 days. From new game releases to tutorials, videos, conferences, special offers and more.
|
||||
|
||||
### Game Mechanic Explorer
|
||||
|
||||
The [Game Mechanic Explorer](http://gamemechanicexplorer.com) is a great interactive way to learn how to develop specific game mechanics in Phaser. Well worth exploring once you've got your dev environment set-up.
|
||||
|
@ -189,7 +203,8 @@ Starting from Phaser 2.4.5 we now include a custom build for Webpack.
|
|||
|
||||
You need to add `p2` as a dependency.
|
||||
|
||||
###### Webpack config
|
||||
##### Webpack Config
|
||||
|
||||
```
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
@ -216,7 +231,9 @@ module.exports = {
|
|||
...
|
||||
}
|
||||
```
|
||||
###### Main js file
|
||||
|
||||
##### Main js file
|
||||
|
||||
```
|
||||
require('pixi.js');
|
||||
require('p2');
|
||||
|
@ -299,7 +316,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
|
|||
<a name="change-log"></a>
|
||||
## Change Log
|
||||
|
||||
## Version 2.4.5 - "Sienda" - in dev
|
||||
## Version 2.4.5 - "Sienda" - 17th February 2016
|
||||
|
||||
### New Features
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:35
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:25:48
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -798,17 +798,21 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
// Round it off and force non-zero dimensions
|
||||
bounds.width = Math.max(1, Math.ceil(bounds.width));
|
||||
bounds.height = Math.max(1, Math.ceil(bounds.height));
|
||||
|
||||
this.updateTransform();
|
||||
|
||||
if (!this._cachedSprite)
|
||||
{
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width | 1, bounds.height | 1);
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width, bounds.height);
|
||||
this._cachedSprite = new PIXI.Sprite(renderTexture);
|
||||
this._cachedSprite.worldTransform = this.worldTransform;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cachedSprite.texture.resize(bounds.width | 1, bounds.height | 1);
|
||||
this._cachedSprite.texture.resize(bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
// Remove filters
|
||||
|
@ -821,8 +825,8 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
||||
this._cachedSprite.texture.render(this, PIXI.DisplayObject._tempMatrix, true);
|
||||
this._cachedSprite.anchor.x = -( bounds.x / bounds.width );
|
||||
this._cachedSprite.anchor.y = -( bounds.y / bounds.height );
|
||||
this._cachedSprite.anchor.x = -(bounds.x / bounds.width);
|
||||
this._cachedSprite.anchor.y = -(bounds.y / bounds.height);
|
||||
|
||||
this._filters = tempFilters;
|
||||
|
||||
|
@ -9114,7 +9118,7 @@ var Phaser = Phaser || {
|
|||
* @constant
|
||||
* @type {string}
|
||||
*/
|
||||
VERSION: '2.4.5-RC2',
|
||||
VERSION: '2.4.5',
|
||||
|
||||
/**
|
||||
* An array of Phaser game instances.
|
||||
|
@ -22744,6 +22748,10 @@ Phaser.Mouse.prototype = {
|
|||
return _this.onMouseUpGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOutGlobal = function (event) {
|
||||
return _this.onMouseOutGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOut = function (event) {
|
||||
return _this.onMouseOut(event);
|
||||
};
|
||||
|
@ -22765,6 +22773,7 @@ Phaser.Mouse.prototype = {
|
|||
if (!this.game.device.cocoonJS)
|
||||
{
|
||||
window.addEventListener('mouseup', this._onMouseUpGlobal, true);
|
||||
window.addEventListener('mouseout', this._onMouseOutGlobal, true);
|
||||
canvas.addEventListener('mouseover', this._onMouseOver, true);
|
||||
canvas.addEventListener('mouseout', this._onMouseOut, true);
|
||||
}
|
||||
|
@ -22899,6 +22908,42 @@ Phaser.Mouse.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the window.
|
||||
*
|
||||
* @method Phaser.Mouse#onMouseOutGlobal
|
||||
* @param {MouseEvent} event - The native event from the browser. This gets stored in Mouse.event.
|
||||
*/
|
||||
onMouseOutGlobal: function (event) {
|
||||
|
||||
this.event = event;
|
||||
|
||||
if (this.capture)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.input.mousePointer.withinGame = false;
|
||||
|
||||
if (!this.input.enabled || !this.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get a mouseout event from the window then basically
|
||||
// something serious has gone down, usually along the lines of
|
||||
// the browser opening a context-menu or similar.
|
||||
// On OS X Chrome especially this is bad news, as it blocks
|
||||
// us then getting a mouseup event, so we need to force that through.
|
||||
//
|
||||
// No matter what, we must cancel the left and right buttons
|
||||
|
||||
this.input.mousePointer.stop(event);
|
||||
this.input.mousePointer.leftButton.stop(event);
|
||||
this.input.mousePointer.rightButton.stop(event);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the browser.
|
||||
*
|
||||
|
@ -24503,10 +24548,12 @@ Phaser.Pointer.prototype = {
|
|||
}
|
||||
|
||||
// On OS X (and other devices with trackpads) you have to press CTRL + the pad
|
||||
// to initiate a right-click event, so we'll check for that here
|
||||
// to initiate a right-click event, so we'll check for that here ONLY if
|
||||
// event.buttons = 1 (i.e. they only have a 1 button mouse or trackpad)
|
||||
|
||||
if (event.ctrlKey && this.leftButton.isDown)
|
||||
if (event.buttons === 1 && event.ctrlKey && this.leftButton.isDown)
|
||||
{
|
||||
this.leftButton.stop(event);
|
||||
this.rightButton.start(event);
|
||||
}
|
||||
|
||||
|
@ -26227,6 +26274,8 @@ Phaser.InputHandler.prototype = {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -26516,6 +26565,8 @@ Phaser.InputHandler.prototype = {
|
|||
|
||||
if (data.isOver === false || pointer.dirty)
|
||||
{
|
||||
var sendEvent = (data.isOver === false);
|
||||
|
||||
data.isOver = true;
|
||||
data.isOut = false;
|
||||
data.timeOver = this.game.time.time;
|
||||
|
@ -26528,7 +26579,7 @@ Phaser.InputHandler.prototype = {
|
|||
this._setHandCursor = true;
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
if (sendEvent && this.sprite && this.sprite.events)
|
||||
{
|
||||
this.sprite.events.onInputOver$dispatch(this.sprite, pointer);
|
||||
}
|
||||
|
@ -34056,7 +34107,7 @@ Phaser.SpriteBatch = function (game, parent, name, addToStage) {
|
|||
|
||||
};
|
||||
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, Phaser.Group.prototype, PIXI.SpriteBatch.prototype);
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype);
|
||||
|
||||
Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;
|
||||
|
||||
|
@ -36966,19 +37017,26 @@ PIXI.Graphics.prototype.clear = function()
|
|||
* This can be quite useful if your geometry is complicated and needs to be reused multiple times.
|
||||
*
|
||||
* @method generateTexture
|
||||
* @param resolution {Number} The resolution of the texture being generated
|
||||
* @param scaleMode {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [resolution=1] {Number} The resolution of the texture being generated
|
||||
* @param [scaleMode=0] {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [padding=0] {Number} Add optional extra padding to the generated texture (default 0)
|
||||
* @return {Texture} a texture of the graphics object
|
||||
*/
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode)
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode, padding)
|
||||
{
|
||||
resolution = resolution || 1;
|
||||
if (resolution === undefined) { resolution = 1; }
|
||||
if (scaleMode === undefined) { scaleMode = PIXI.scaleModes.DEFAULT; }
|
||||
if (padding === undefined) { padding = 0; }
|
||||
|
||||
var bounds = this.getBounds();
|
||||
|
||||
bounds.width += padding;
|
||||
bounds.height += padding;
|
||||
|
||||
var canvasBuffer = new PIXI.CanvasBuffer(bounds.width * resolution, bounds.height * resolution);
|
||||
|
||||
var texture = PIXI.Texture.fromCanvas(canvasBuffer.canvas, scaleMode);
|
||||
|
||||
texture.baseTexture.resolution = resolution;
|
||||
|
||||
canvasBuffer.context.scale(resolution, resolution);
|
||||
|
@ -40481,8 +40539,7 @@ Phaser.Text.prototype.updateText = function () {
|
|||
// Adjust for line spacing
|
||||
if (lineSpacing !== 0)
|
||||
{
|
||||
var diff = lineSpacing * (lines.length - 1);
|
||||
height += diff;
|
||||
height += lineSpacing * lines.length;
|
||||
}
|
||||
|
||||
this.canvas.height = height * this._res;
|
||||
|
@ -45029,8 +45086,6 @@ Phaser.Device._initialize = function () {
|
|||
}
|
||||
else if (device.safari && device.safariVersion >= 9)
|
||||
{
|
||||
var ua = navigator.userAgent;
|
||||
|
||||
if (/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent))
|
||||
{
|
||||
var major = parseInt(RegExp.$1, 10);
|
||||
|
@ -48271,7 +48326,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -48318,7 +48373,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -48836,7 +48891,14 @@ Phaser.Tween.prototype = {
|
|||
}
|
||||
else if (status === Phaser.TweenData.LOOPED)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (status === Phaser.TweenData.COMPLETE)
|
||||
|
@ -48871,7 +48933,7 @@ Phaser.Tween.prototype = {
|
|||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.timeline[this.current].start();
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
return true;
|
||||
}
|
||||
else if (this.repeatCounter > 0)
|
||||
|
@ -66658,7 +66720,7 @@ Phaser.Color = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Takes a color object and updates the rgba property.
|
||||
* Takes a color object and updates the rgba, color and color32 properties.
|
||||
*
|
||||
* @method Phaser.Color.updateColor
|
||||
* @static
|
||||
|
@ -66669,7 +66731,7 @@ Phaser.Color = {
|
|||
|
||||
out.rgba = 'rgba(' + out.r.toString() + ',' + out.g.toString() + ',' + out.b.toString() + ',' + out.a.toString() + ')';
|
||||
out.color = Phaser.Color.getColor(out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a, out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a * 255, out.r, out.g, out.b);
|
||||
|
||||
return out;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
38
build/custom/phaser-arcade-physics.min.js
vendored
38
build/custom/phaser-arcade-physics.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:51
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:26:05
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -798,17 +798,21 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
// Round it off and force non-zero dimensions
|
||||
bounds.width = Math.max(1, Math.ceil(bounds.width));
|
||||
bounds.height = Math.max(1, Math.ceil(bounds.height));
|
||||
|
||||
this.updateTransform();
|
||||
|
||||
if (!this._cachedSprite)
|
||||
{
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width | 1, bounds.height | 1);
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width, bounds.height);
|
||||
this._cachedSprite = new PIXI.Sprite(renderTexture);
|
||||
this._cachedSprite.worldTransform = this.worldTransform;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cachedSprite.texture.resize(bounds.width | 1, bounds.height | 1);
|
||||
this._cachedSprite.texture.resize(bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
// Remove filters
|
||||
|
@ -821,8 +825,8 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
||||
this._cachedSprite.texture.render(this, PIXI.DisplayObject._tempMatrix, true);
|
||||
this._cachedSprite.anchor.x = -( bounds.x / bounds.width );
|
||||
this._cachedSprite.anchor.y = -( bounds.y / bounds.height );
|
||||
this._cachedSprite.anchor.x = -(bounds.x / bounds.width);
|
||||
this._cachedSprite.anchor.y = -(bounds.y / bounds.height);
|
||||
|
||||
this._filters = tempFilters;
|
||||
|
||||
|
@ -7917,7 +7921,7 @@ var Phaser = Phaser || {
|
|||
* @constant
|
||||
* @type {string}
|
||||
*/
|
||||
VERSION: '2.4.5-RC2',
|
||||
VERSION: '2.4.5',
|
||||
|
||||
/**
|
||||
* An array of Phaser game instances.
|
||||
|
@ -21547,6 +21551,10 @@ Phaser.Mouse.prototype = {
|
|||
return _this.onMouseUpGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOutGlobal = function (event) {
|
||||
return _this.onMouseOutGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOut = function (event) {
|
||||
return _this.onMouseOut(event);
|
||||
};
|
||||
|
@ -21568,6 +21576,7 @@ Phaser.Mouse.prototype = {
|
|||
if (!this.game.device.cocoonJS)
|
||||
{
|
||||
window.addEventListener('mouseup', this._onMouseUpGlobal, true);
|
||||
window.addEventListener('mouseout', this._onMouseOutGlobal, true);
|
||||
canvas.addEventListener('mouseover', this._onMouseOver, true);
|
||||
canvas.addEventListener('mouseout', this._onMouseOut, true);
|
||||
}
|
||||
|
@ -21702,6 +21711,42 @@ Phaser.Mouse.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the window.
|
||||
*
|
||||
* @method Phaser.Mouse#onMouseOutGlobal
|
||||
* @param {MouseEvent} event - The native event from the browser. This gets stored in Mouse.event.
|
||||
*/
|
||||
onMouseOutGlobal: function (event) {
|
||||
|
||||
this.event = event;
|
||||
|
||||
if (this.capture)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.input.mousePointer.withinGame = false;
|
||||
|
||||
if (!this.input.enabled || !this.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get a mouseout event from the window then basically
|
||||
// something serious has gone down, usually along the lines of
|
||||
// the browser opening a context-menu or similar.
|
||||
// On OS X Chrome especially this is bad news, as it blocks
|
||||
// us then getting a mouseup event, so we need to force that through.
|
||||
//
|
||||
// No matter what, we must cancel the left and right buttons
|
||||
|
||||
this.input.mousePointer.stop(event);
|
||||
this.input.mousePointer.leftButton.stop(event);
|
||||
this.input.mousePointer.rightButton.stop(event);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the browser.
|
||||
*
|
||||
|
@ -23306,10 +23351,12 @@ Phaser.Pointer.prototype = {
|
|||
}
|
||||
|
||||
// On OS X (and other devices with trackpads) you have to press CTRL + the pad
|
||||
// to initiate a right-click event, so we'll check for that here
|
||||
// to initiate a right-click event, so we'll check for that here ONLY if
|
||||
// event.buttons = 1 (i.e. they only have a 1 button mouse or trackpad)
|
||||
|
||||
if (event.ctrlKey && this.leftButton.isDown)
|
||||
if (event.buttons === 1 && event.ctrlKey && this.leftButton.isDown)
|
||||
{
|
||||
this.leftButton.stop(event);
|
||||
this.rightButton.start(event);
|
||||
}
|
||||
|
||||
|
@ -25030,6 +25077,8 @@ Phaser.InputHandler.prototype = {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -25319,6 +25368,8 @@ Phaser.InputHandler.prototype = {
|
|||
|
||||
if (data.isOver === false || pointer.dirty)
|
||||
{
|
||||
var sendEvent = (data.isOver === false);
|
||||
|
||||
data.isOver = true;
|
||||
data.isOut = false;
|
||||
data.timeOver = this.game.time.time;
|
||||
|
@ -25331,7 +25382,7 @@ Phaser.InputHandler.prototype = {
|
|||
this._setHandCursor = true;
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
if (sendEvent && this.sprite && this.sprite.events)
|
||||
{
|
||||
this.sprite.events.onInputOver$dispatch(this.sprite, pointer);
|
||||
}
|
||||
|
@ -30462,7 +30513,7 @@ Phaser.SpriteBatch = function (game, parent, name, addToStage) {
|
|||
|
||||
};
|
||||
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, Phaser.Group.prototype, PIXI.SpriteBatch.prototype);
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype);
|
||||
|
||||
Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;
|
||||
|
||||
|
@ -31556,8 +31607,6 @@ Phaser.Device._initialize = function () {
|
|||
}
|
||||
else if (device.safari && device.safariVersion >= 9)
|
||||
{
|
||||
var ua = navigator.userAgent;
|
||||
|
||||
if (/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent))
|
||||
{
|
||||
var major = parseInt(RegExp.$1, 10);
|
||||
|
@ -47755,7 +47804,7 @@ Phaser.Color = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Takes a color object and updates the rgba property.
|
||||
* Takes a color object and updates the rgba, color and color32 properties.
|
||||
*
|
||||
* @method Phaser.Color.updateColor
|
||||
* @static
|
||||
|
@ -47766,7 +47815,7 @@ Phaser.Color = {
|
|||
|
||||
out.rgba = 'rgba(' + out.r.toString() + ',' + out.g.toString() + ',' + out.b.toString() + ',' + out.a.toString() + ')';
|
||||
out.color = Phaser.Color.getColor(out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a, out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a * 255, out.r, out.g, out.b);
|
||||
|
||||
return out;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
22
build/custom/phaser-minimum.min.js
vendored
22
build/custom/phaser-minimum.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:44
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:25:57
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -798,17 +798,21 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
// Round it off and force non-zero dimensions
|
||||
bounds.width = Math.max(1, Math.ceil(bounds.width));
|
||||
bounds.height = Math.max(1, Math.ceil(bounds.height));
|
||||
|
||||
this.updateTransform();
|
||||
|
||||
if (!this._cachedSprite)
|
||||
{
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width | 1, bounds.height | 1);
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width, bounds.height);
|
||||
this._cachedSprite = new PIXI.Sprite(renderTexture);
|
||||
this._cachedSprite.worldTransform = this.worldTransform;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cachedSprite.texture.resize(bounds.width | 1, bounds.height | 1);
|
||||
this._cachedSprite.texture.resize(bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
// Remove filters
|
||||
|
@ -821,8 +825,8 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
||||
this._cachedSprite.texture.render(this, PIXI.DisplayObject._tempMatrix, true);
|
||||
this._cachedSprite.anchor.x = -( bounds.x / bounds.width );
|
||||
this._cachedSprite.anchor.y = -( bounds.y / bounds.height );
|
||||
this._cachedSprite.anchor.x = -(bounds.x / bounds.width);
|
||||
this._cachedSprite.anchor.y = -(bounds.y / bounds.height);
|
||||
|
||||
this._filters = tempFilters;
|
||||
|
||||
|
@ -9114,7 +9118,7 @@ var Phaser = Phaser || {
|
|||
* @constant
|
||||
* @type {string}
|
||||
*/
|
||||
VERSION: '2.4.5-RC2',
|
||||
VERSION: '2.4.5',
|
||||
|
||||
/**
|
||||
* An array of Phaser game instances.
|
||||
|
@ -22744,6 +22748,10 @@ Phaser.Mouse.prototype = {
|
|||
return _this.onMouseUpGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOutGlobal = function (event) {
|
||||
return _this.onMouseOutGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOut = function (event) {
|
||||
return _this.onMouseOut(event);
|
||||
};
|
||||
|
@ -22765,6 +22773,7 @@ Phaser.Mouse.prototype = {
|
|||
if (!this.game.device.cocoonJS)
|
||||
{
|
||||
window.addEventListener('mouseup', this._onMouseUpGlobal, true);
|
||||
window.addEventListener('mouseout', this._onMouseOutGlobal, true);
|
||||
canvas.addEventListener('mouseover', this._onMouseOver, true);
|
||||
canvas.addEventListener('mouseout', this._onMouseOut, true);
|
||||
}
|
||||
|
@ -22899,6 +22908,42 @@ Phaser.Mouse.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the window.
|
||||
*
|
||||
* @method Phaser.Mouse#onMouseOutGlobal
|
||||
* @param {MouseEvent} event - The native event from the browser. This gets stored in Mouse.event.
|
||||
*/
|
||||
onMouseOutGlobal: function (event) {
|
||||
|
||||
this.event = event;
|
||||
|
||||
if (this.capture)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.input.mousePointer.withinGame = false;
|
||||
|
||||
if (!this.input.enabled || !this.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get a mouseout event from the window then basically
|
||||
// something serious has gone down, usually along the lines of
|
||||
// the browser opening a context-menu or similar.
|
||||
// On OS X Chrome especially this is bad news, as it blocks
|
||||
// us then getting a mouseup event, so we need to force that through.
|
||||
//
|
||||
// No matter what, we must cancel the left and right buttons
|
||||
|
||||
this.input.mousePointer.stop(event);
|
||||
this.input.mousePointer.leftButton.stop(event);
|
||||
this.input.mousePointer.rightButton.stop(event);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the browser.
|
||||
*
|
||||
|
@ -24503,10 +24548,12 @@ Phaser.Pointer.prototype = {
|
|||
}
|
||||
|
||||
// On OS X (and other devices with trackpads) you have to press CTRL + the pad
|
||||
// to initiate a right-click event, so we'll check for that here
|
||||
// to initiate a right-click event, so we'll check for that here ONLY if
|
||||
// event.buttons = 1 (i.e. they only have a 1 button mouse or trackpad)
|
||||
|
||||
if (event.ctrlKey && this.leftButton.isDown)
|
||||
if (event.buttons === 1 && event.ctrlKey && this.leftButton.isDown)
|
||||
{
|
||||
this.leftButton.stop(event);
|
||||
this.rightButton.start(event);
|
||||
}
|
||||
|
||||
|
@ -26227,6 +26274,8 @@ Phaser.InputHandler.prototype = {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -26516,6 +26565,8 @@ Phaser.InputHandler.prototype = {
|
|||
|
||||
if (data.isOver === false || pointer.dirty)
|
||||
{
|
||||
var sendEvent = (data.isOver === false);
|
||||
|
||||
data.isOver = true;
|
||||
data.isOut = false;
|
||||
data.timeOver = this.game.time.time;
|
||||
|
@ -26528,7 +26579,7 @@ Phaser.InputHandler.prototype = {
|
|||
this._setHandCursor = true;
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
if (sendEvent && this.sprite && this.sprite.events)
|
||||
{
|
||||
this.sprite.events.onInputOver$dispatch(this.sprite, pointer);
|
||||
}
|
||||
|
@ -34056,7 +34107,7 @@ Phaser.SpriteBatch = function (game, parent, name, addToStage) {
|
|||
|
||||
};
|
||||
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, Phaser.Group.prototype, PIXI.SpriteBatch.prototype);
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype);
|
||||
|
||||
Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;
|
||||
|
||||
|
@ -36966,19 +37017,26 @@ PIXI.Graphics.prototype.clear = function()
|
|||
* This can be quite useful if your geometry is complicated and needs to be reused multiple times.
|
||||
*
|
||||
* @method generateTexture
|
||||
* @param resolution {Number} The resolution of the texture being generated
|
||||
* @param scaleMode {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [resolution=1] {Number} The resolution of the texture being generated
|
||||
* @param [scaleMode=0] {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [padding=0] {Number} Add optional extra padding to the generated texture (default 0)
|
||||
* @return {Texture} a texture of the graphics object
|
||||
*/
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode)
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode, padding)
|
||||
{
|
||||
resolution = resolution || 1;
|
||||
if (resolution === undefined) { resolution = 1; }
|
||||
if (scaleMode === undefined) { scaleMode = PIXI.scaleModes.DEFAULT; }
|
||||
if (padding === undefined) { padding = 0; }
|
||||
|
||||
var bounds = this.getBounds();
|
||||
|
||||
bounds.width += padding;
|
||||
bounds.height += padding;
|
||||
|
||||
var canvasBuffer = new PIXI.CanvasBuffer(bounds.width * resolution, bounds.height * resolution);
|
||||
|
||||
var texture = PIXI.Texture.fromCanvas(canvasBuffer.canvas, scaleMode);
|
||||
|
||||
texture.baseTexture.resolution = resolution;
|
||||
|
||||
canvasBuffer.context.scale(resolution, resolution);
|
||||
|
@ -40481,8 +40539,7 @@ Phaser.Text.prototype.updateText = function () {
|
|||
// Adjust for line spacing
|
||||
if (lineSpacing !== 0)
|
||||
{
|
||||
var diff = lineSpacing * (lines.length - 1);
|
||||
height += diff;
|
||||
height += lineSpacing * lines.length;
|
||||
}
|
||||
|
||||
this.canvas.height = height * this._res;
|
||||
|
@ -45029,8 +45086,6 @@ Phaser.Device._initialize = function () {
|
|||
}
|
||||
else if (device.safari && device.safariVersion >= 9)
|
||||
{
|
||||
var ua = navigator.userAgent;
|
||||
|
||||
if (/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent))
|
||||
{
|
||||
var major = parseInt(RegExp.$1, 10);
|
||||
|
@ -48271,7 +48326,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -48318,7 +48373,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -48836,7 +48891,14 @@ Phaser.Tween.prototype = {
|
|||
}
|
||||
else if (status === Phaser.TweenData.LOOPED)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (status === Phaser.TweenData.COMPLETE)
|
||||
|
@ -48871,7 +48933,7 @@ Phaser.Tween.prototype = {
|
|||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.timeline[this.current].start();
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
return true;
|
||||
}
|
||||
else if (this.repeatCounter > 0)
|
||||
|
@ -66658,7 +66720,7 @@ Phaser.Color = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Takes a color object and updates the rgba property.
|
||||
* Takes a color object and updates the rgba, color and color32 properties.
|
||||
*
|
||||
* @method Phaser.Color.updateColor
|
||||
* @static
|
||||
|
@ -66669,7 +66731,7 @@ Phaser.Color = {
|
|||
|
||||
out.rgba = 'rgba(' + out.r.toString() + ',' + out.g.toString() + ',' + out.b.toString() + ',' + out.a.toString() + ')';
|
||||
out.color = Phaser.Color.getColor(out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a, out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a * 255, out.r, out.g, out.b);
|
||||
|
||||
return out;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
34
build/custom/phaser-no-physics.min.js
vendored
34
build/custom/phaser-no-physics.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:58
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:26:12
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -55,7 +55,7 @@ var Phaser = Phaser || {
|
|||
* @constant
|
||||
* @type {string}
|
||||
*/
|
||||
VERSION: '2.4.5-RC2',
|
||||
VERSION: '2.4.5',
|
||||
|
||||
/**
|
||||
* An array of Phaser game instances.
|
||||
|
@ -13685,6 +13685,10 @@ Phaser.Mouse.prototype = {
|
|||
return _this.onMouseUpGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOutGlobal = function (event) {
|
||||
return _this.onMouseOutGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOut = function (event) {
|
||||
return _this.onMouseOut(event);
|
||||
};
|
||||
|
@ -13706,6 +13710,7 @@ Phaser.Mouse.prototype = {
|
|||
if (!this.game.device.cocoonJS)
|
||||
{
|
||||
window.addEventListener('mouseup', this._onMouseUpGlobal, true);
|
||||
window.addEventListener('mouseout', this._onMouseOutGlobal, true);
|
||||
canvas.addEventListener('mouseover', this._onMouseOver, true);
|
||||
canvas.addEventListener('mouseout', this._onMouseOut, true);
|
||||
}
|
||||
|
@ -13840,6 +13845,42 @@ Phaser.Mouse.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the window.
|
||||
*
|
||||
* @method Phaser.Mouse#onMouseOutGlobal
|
||||
* @param {MouseEvent} event - The native event from the browser. This gets stored in Mouse.event.
|
||||
*/
|
||||
onMouseOutGlobal: function (event) {
|
||||
|
||||
this.event = event;
|
||||
|
||||
if (this.capture)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.input.mousePointer.withinGame = false;
|
||||
|
||||
if (!this.input.enabled || !this.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get a mouseout event from the window then basically
|
||||
// something serious has gone down, usually along the lines of
|
||||
// the browser opening a context-menu or similar.
|
||||
// On OS X Chrome especially this is bad news, as it blocks
|
||||
// us then getting a mouseup event, so we need to force that through.
|
||||
//
|
||||
// No matter what, we must cancel the left and right buttons
|
||||
|
||||
this.input.mousePointer.stop(event);
|
||||
this.input.mousePointer.leftButton.stop(event);
|
||||
this.input.mousePointer.rightButton.stop(event);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the browser.
|
||||
*
|
||||
|
@ -15444,10 +15485,12 @@ Phaser.Pointer.prototype = {
|
|||
}
|
||||
|
||||
// On OS X (and other devices with trackpads) you have to press CTRL + the pad
|
||||
// to initiate a right-click event, so we'll check for that here
|
||||
// to initiate a right-click event, so we'll check for that here ONLY if
|
||||
// event.buttons = 1 (i.e. they only have a 1 button mouse or trackpad)
|
||||
|
||||
if (event.ctrlKey && this.leftButton.isDown)
|
||||
if (event.buttons === 1 && event.ctrlKey && this.leftButton.isDown)
|
||||
{
|
||||
this.leftButton.stop(event);
|
||||
this.rightButton.start(event);
|
||||
}
|
||||
|
||||
|
@ -17168,6 +17211,8 @@ Phaser.InputHandler.prototype = {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -17457,6 +17502,8 @@ Phaser.InputHandler.prototype = {
|
|||
|
||||
if (data.isOver === false || pointer.dirty)
|
||||
{
|
||||
var sendEvent = (data.isOver === false);
|
||||
|
||||
data.isOver = true;
|
||||
data.isOut = false;
|
||||
data.timeOver = this.game.time.time;
|
||||
|
@ -17469,7 +17516,7 @@ Phaser.InputHandler.prototype = {
|
|||
this._setHandCursor = true;
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
if (sendEvent && this.sprite && this.sprite.events)
|
||||
{
|
||||
this.sprite.events.onInputOver$dispatch(this.sprite, pointer);
|
||||
}
|
||||
|
@ -24997,7 +25044,7 @@ Phaser.SpriteBatch = function (game, parent, name, addToStage) {
|
|||
|
||||
};
|
||||
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, Phaser.Group.prototype, PIXI.SpriteBatch.prototype);
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype);
|
||||
|
||||
Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;
|
||||
|
||||
|
@ -27907,19 +27954,26 @@ PIXI.Graphics.prototype.clear = function()
|
|||
* This can be quite useful if your geometry is complicated and needs to be reused multiple times.
|
||||
*
|
||||
* @method generateTexture
|
||||
* @param resolution {Number} The resolution of the texture being generated
|
||||
* @param scaleMode {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [resolution=1] {Number} The resolution of the texture being generated
|
||||
* @param [scaleMode=0] {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [padding=0] {Number} Add optional extra padding to the generated texture (default 0)
|
||||
* @return {Texture} a texture of the graphics object
|
||||
*/
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode)
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode, padding)
|
||||
{
|
||||
resolution = resolution || 1;
|
||||
if (resolution === undefined) { resolution = 1; }
|
||||
if (scaleMode === undefined) { scaleMode = PIXI.scaleModes.DEFAULT; }
|
||||
if (padding === undefined) { padding = 0; }
|
||||
|
||||
var bounds = this.getBounds();
|
||||
|
||||
bounds.width += padding;
|
||||
bounds.height += padding;
|
||||
|
||||
var canvasBuffer = new PIXI.CanvasBuffer(bounds.width * resolution, bounds.height * resolution);
|
||||
|
||||
var texture = PIXI.Texture.fromCanvas(canvasBuffer.canvas, scaleMode);
|
||||
|
||||
texture.baseTexture.resolution = resolution;
|
||||
|
||||
canvasBuffer.context.scale(resolution, resolution);
|
||||
|
@ -31422,8 +31476,7 @@ Phaser.Text.prototype.updateText = function () {
|
|||
// Adjust for line spacing
|
||||
if (lineSpacing !== 0)
|
||||
{
|
||||
var diff = lineSpacing * (lines.length - 1);
|
||||
height += diff;
|
||||
height += lineSpacing * lines.length;
|
||||
}
|
||||
|
||||
this.canvas.height = height * this._res;
|
||||
|
@ -35970,8 +36023,6 @@ Phaser.Device._initialize = function () {
|
|||
}
|
||||
else if (device.safari && device.safariVersion >= 9)
|
||||
{
|
||||
var ua = navigator.userAgent;
|
||||
|
||||
if (/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent))
|
||||
{
|
||||
var major = parseInt(RegExp.$1, 10);
|
||||
|
@ -39212,7 +39263,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -39259,7 +39310,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -39777,7 +39828,14 @@ Phaser.Tween.prototype = {
|
|||
}
|
||||
else if (status === Phaser.TweenData.LOOPED)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (status === Phaser.TweenData.COMPLETE)
|
||||
|
@ -39812,7 +39870,7 @@ Phaser.Tween.prototype = {
|
|||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.timeline[this.current].start();
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
return true;
|
||||
}
|
||||
else if (this.repeatCounter > 0)
|
||||
|
@ -57599,7 +57657,7 @@ Phaser.Color = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Takes a color object and updates the rgba property.
|
||||
* Takes a color object and updates the rgba, color and color32 properties.
|
||||
*
|
||||
* @method Phaser.Color.updateColor
|
||||
* @static
|
||||
|
@ -57610,7 +57668,7 @@ Phaser.Color = {
|
|||
|
||||
out.rgba = 'rgba(' + out.r.toString() + ',' + out.g.toString() + ',' + out.b.toString() + ',' + out.a.toString() + ')';
|
||||
out.color = Phaser.Color.getColor(out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a, out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a * 255, out.r, out.g, out.b);
|
||||
|
||||
return out;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
32
build/custom/phaser-split.min.js
vendored
32
build/custom/phaser-split.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:57
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:26:11
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -798,17 +798,21 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
// Round it off and force non-zero dimensions
|
||||
bounds.width = Math.max(1, Math.ceil(bounds.width));
|
||||
bounds.height = Math.max(1, Math.ceil(bounds.height));
|
||||
|
||||
this.updateTransform();
|
||||
|
||||
if (!this._cachedSprite)
|
||||
{
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width | 1, bounds.height | 1);
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width, bounds.height);
|
||||
this._cachedSprite = new PIXI.Sprite(renderTexture);
|
||||
this._cachedSprite.worldTransform = this.worldTransform;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cachedSprite.texture.resize(bounds.width | 1, bounds.height | 1);
|
||||
this._cachedSprite.texture.resize(bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
// Remove filters
|
||||
|
@ -821,8 +825,8 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
||||
this._cachedSprite.texture.render(this, PIXI.DisplayObject._tempMatrix, true);
|
||||
this._cachedSprite.anchor.x = -( bounds.x / bounds.width );
|
||||
this._cachedSprite.anchor.y = -( bounds.y / bounds.height );
|
||||
this._cachedSprite.anchor.x = -(bounds.x / bounds.width);
|
||||
this._cachedSprite.anchor.y = -(bounds.y / bounds.height);
|
||||
|
||||
this._filters = tempFilters;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
6
build/custom/pixi.min.js
vendored
6
build/custom/pixi.min.js
vendored
File diff suppressed because one or more lines are too long
110
build/phaser.js
110
build/phaser.js
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* Phaser - http://phaser.io
|
||||
*
|
||||
* v2.4.5 "Sienda" - Built: Fri Feb 12 2016 15:59:25
|
||||
* v2.4.5 "Sienda" - Built: Wed Feb 17 2016 13:25:37
|
||||
*
|
||||
* By Richard Davey http://www.photonstorm.com @photonstorm
|
||||
*
|
||||
|
@ -14411,17 +14411,21 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
|
||||
var bounds = this.getLocalBounds();
|
||||
|
||||
// Round it off and force non-zero dimensions
|
||||
bounds.width = Math.max(1, Math.ceil(bounds.width));
|
||||
bounds.height = Math.max(1, Math.ceil(bounds.height));
|
||||
|
||||
this.updateTransform();
|
||||
|
||||
if (!this._cachedSprite)
|
||||
{
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width | 1, bounds.height | 1);
|
||||
var renderTexture = new PIXI.RenderTexture(bounds.width, bounds.height);
|
||||
this._cachedSprite = new PIXI.Sprite(renderTexture);
|
||||
this._cachedSprite.worldTransform = this.worldTransform;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._cachedSprite.texture.resize(bounds.width | 1, bounds.height | 1);
|
||||
this._cachedSprite.texture.resize(bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
// Remove filters
|
||||
|
@ -14434,8 +14438,8 @@ PIXI.DisplayObject.prototype._generateCachedSprite = function()
|
|||
PIXI.DisplayObject._tempMatrix.ty = -bounds.y;
|
||||
|
||||
this._cachedSprite.texture.render(this, PIXI.DisplayObject._tempMatrix, true);
|
||||
this._cachedSprite.anchor.x = -( bounds.x / bounds.width );
|
||||
this._cachedSprite.anchor.y = -( bounds.y / bounds.height );
|
||||
this._cachedSprite.anchor.x = -(bounds.x / bounds.width);
|
||||
this._cachedSprite.anchor.y = -(bounds.y / bounds.height);
|
||||
|
||||
this._filters = tempFilters;
|
||||
|
||||
|
@ -22727,7 +22731,7 @@ var Phaser = Phaser || {
|
|||
* @constant
|
||||
* @type {string}
|
||||
*/
|
||||
VERSION: '2.4.5-RC2',
|
||||
VERSION: '2.4.5',
|
||||
|
||||
/**
|
||||
* An array of Phaser game instances.
|
||||
|
@ -36357,6 +36361,10 @@ Phaser.Mouse.prototype = {
|
|||
return _this.onMouseUpGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOutGlobal = function (event) {
|
||||
return _this.onMouseOutGlobal(event);
|
||||
};
|
||||
|
||||
this._onMouseOut = function (event) {
|
||||
return _this.onMouseOut(event);
|
||||
};
|
||||
|
@ -36378,6 +36386,7 @@ Phaser.Mouse.prototype = {
|
|||
if (!this.game.device.cocoonJS)
|
||||
{
|
||||
window.addEventListener('mouseup', this._onMouseUpGlobal, true);
|
||||
window.addEventListener('mouseout', this._onMouseOutGlobal, true);
|
||||
canvas.addEventListener('mouseover', this._onMouseOver, true);
|
||||
canvas.addEventListener('mouseout', this._onMouseOut, true);
|
||||
}
|
||||
|
@ -36512,6 +36521,42 @@ Phaser.Mouse.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the window.
|
||||
*
|
||||
* @method Phaser.Mouse#onMouseOutGlobal
|
||||
* @param {MouseEvent} event - The native event from the browser. This gets stored in Mouse.event.
|
||||
*/
|
||||
onMouseOutGlobal: function (event) {
|
||||
|
||||
this.event = event;
|
||||
|
||||
if (this.capture)
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.input.mousePointer.withinGame = false;
|
||||
|
||||
if (!this.input.enabled || !this.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// If we get a mouseout event from the window then basically
|
||||
// something serious has gone down, usually along the lines of
|
||||
// the browser opening a context-menu or similar.
|
||||
// On OS X Chrome especially this is bad news, as it blocks
|
||||
// us then getting a mouseup event, so we need to force that through.
|
||||
//
|
||||
// No matter what, we must cancel the left and right buttons
|
||||
|
||||
this.input.mousePointer.stop(event);
|
||||
this.input.mousePointer.leftButton.stop(event);
|
||||
this.input.mousePointer.rightButton.stop(event);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* The internal method that handles the mouse out event from the browser.
|
||||
*
|
||||
|
@ -38116,10 +38161,12 @@ Phaser.Pointer.prototype = {
|
|||
}
|
||||
|
||||
// On OS X (and other devices with trackpads) you have to press CTRL + the pad
|
||||
// to initiate a right-click event, so we'll check for that here
|
||||
// to initiate a right-click event, so we'll check for that here ONLY if
|
||||
// event.buttons = 1 (i.e. they only have a 1 button mouse or trackpad)
|
||||
|
||||
if (event.ctrlKey && this.leftButton.isDown)
|
||||
if (event.buttons === 1 && event.ctrlKey && this.leftButton.isDown)
|
||||
{
|
||||
this.leftButton.stop(event);
|
||||
this.rightButton.start(event);
|
||||
}
|
||||
|
||||
|
@ -39840,6 +39887,8 @@ Phaser.InputHandler.prototype = {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -40129,6 +40178,8 @@ Phaser.InputHandler.prototype = {
|
|||
|
||||
if (data.isOver === false || pointer.dirty)
|
||||
{
|
||||
var sendEvent = (data.isOver === false);
|
||||
|
||||
data.isOver = true;
|
||||
data.isOut = false;
|
||||
data.timeOver = this.game.time.time;
|
||||
|
@ -40141,7 +40192,7 @@ Phaser.InputHandler.prototype = {
|
|||
this._setHandCursor = true;
|
||||
}
|
||||
|
||||
if (this.sprite && this.sprite.events)
|
||||
if (sendEvent && this.sprite && this.sprite.events)
|
||||
{
|
||||
this.sprite.events.onInputOver$dispatch(this.sprite, pointer);
|
||||
}
|
||||
|
@ -47669,7 +47720,7 @@ Phaser.SpriteBatch = function (game, parent, name, addToStage) {
|
|||
|
||||
};
|
||||
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, Phaser.Group.prototype, PIXI.SpriteBatch.prototype);
|
||||
Phaser.SpriteBatch.prototype = Phaser.Utils.extend(true, Phaser.SpriteBatch.prototype, PIXI.SpriteBatch.prototype, Phaser.Group.prototype);
|
||||
|
||||
Phaser.SpriteBatch.prototype.constructor = Phaser.SpriteBatch;
|
||||
|
||||
|
@ -50579,19 +50630,26 @@ PIXI.Graphics.prototype.clear = function()
|
|||
* This can be quite useful if your geometry is complicated and needs to be reused multiple times.
|
||||
*
|
||||
* @method generateTexture
|
||||
* @param resolution {Number} The resolution of the texture being generated
|
||||
* @param scaleMode {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [resolution=1] {Number} The resolution of the texture being generated
|
||||
* @param [scaleMode=0] {Number} Should be one of the PIXI.scaleMode consts
|
||||
* @param [padding=0] {Number} Add optional extra padding to the generated texture (default 0)
|
||||
* @return {Texture} a texture of the graphics object
|
||||
*/
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode)
|
||||
PIXI.Graphics.prototype.generateTexture = function(resolution, scaleMode, padding)
|
||||
{
|
||||
resolution = resolution || 1;
|
||||
if (resolution === undefined) { resolution = 1; }
|
||||
if (scaleMode === undefined) { scaleMode = PIXI.scaleModes.DEFAULT; }
|
||||
if (padding === undefined) { padding = 0; }
|
||||
|
||||
var bounds = this.getBounds();
|
||||
|
||||
bounds.width += padding;
|
||||
bounds.height += padding;
|
||||
|
||||
var canvasBuffer = new PIXI.CanvasBuffer(bounds.width * resolution, bounds.height * resolution);
|
||||
|
||||
var texture = PIXI.Texture.fromCanvas(canvasBuffer.canvas, scaleMode);
|
||||
|
||||
texture.baseTexture.resolution = resolution;
|
||||
|
||||
canvasBuffer.context.scale(resolution, resolution);
|
||||
|
@ -54094,8 +54152,7 @@ Phaser.Text.prototype.updateText = function () {
|
|||
// Adjust for line spacing
|
||||
if (lineSpacing !== 0)
|
||||
{
|
||||
var diff = lineSpacing * (lines.length - 1);
|
||||
height += diff;
|
||||
height += lineSpacing * lines.length;
|
||||
}
|
||||
|
||||
this.canvas.height = height * this._res;
|
||||
|
@ -58642,8 +58699,6 @@ Phaser.Device._initialize = function () {
|
|||
}
|
||||
else if (device.safari && device.safariVersion >= 9)
|
||||
{
|
||||
var ua = navigator.userAgent;
|
||||
|
||||
if (/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent))
|
||||
{
|
||||
var major = parseInt(RegExp.$1, 10);
|
||||
|
@ -61884,7 +61939,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -61931,7 +61986,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {function|string} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Default, which is Phaser.Easing.Linear.None by default but can be over-ridden.
|
||||
* @param {boolean} [autoStart=false] - Set to `true` to allow this tween to start automatically. Otherwise call Tween.start().
|
||||
* @param {number} [delay=0] - Delay before this tween will start in milliseconds. Defaults to 0, no delay.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this induvidual tween, not any chained tweens.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as -1. This only effects this individual tween, not any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
|
@ -62449,7 +62504,14 @@ Phaser.Tween.prototype = {
|
|||
}
|
||||
else if (status === Phaser.TweenData.LOOPED)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (status === Phaser.TweenData.COMPLETE)
|
||||
|
@ -62484,7 +62546,7 @@ Phaser.Tween.prototype = {
|
|||
if (this.repeatCounter === -1)
|
||||
{
|
||||
this.timeline[this.current].start();
|
||||
this.onRepeat.dispatch(this.target, this);
|
||||
this.onLoop.dispatch(this.target, this);
|
||||
return true;
|
||||
}
|
||||
else if (this.repeatCounter > 0)
|
||||
|
@ -80271,7 +80333,7 @@ Phaser.Color = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Takes a color object and updates the rgba property.
|
||||
* Takes a color object and updates the rgba, color and color32 properties.
|
||||
*
|
||||
* @method Phaser.Color.updateColor
|
||||
* @static
|
||||
|
@ -80282,7 +80344,7 @@ Phaser.Color = {
|
|||
|
||||
out.rgba = 'rgba(' + out.r.toString() + ',' + out.g.toString() + ',' + out.b.toString() + ',' + out.a.toString() + ')';
|
||||
out.color = Phaser.Color.getColor(out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a, out.r, out.g, out.b);
|
||||
out.color32 = Phaser.Color.getColor32(out.a * 255, out.r, out.g, out.b);
|
||||
|
||||
return out;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
42
build/phaser.min.js
vendored
42
build/phaser.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1483,7 +1483,7 @@ If you want to make a custom filter this should be your base class.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:44 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2699,7 +2699,7 @@ Atexture is still 100% usable and will simply be reuploaded if there is a sprite
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:44 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1744,7 +1744,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:44 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1228,7 +1228,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1493,7 +1493,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1975,7 +1975,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2475,7 +2475,7 @@ Disable this by setting this to false. For example if your game has a canvas fil
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1981,7 +1981,7 @@ This property is only applicable if using tintWithPerPixel.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1641,7 +1641,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2352,7 +2352,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -2408,7 +2408,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3524,7 +3524,7 @@ This can be quite useful if your displayObject is static / complicated and needs
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2636,7 +2636,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -2697,7 +2697,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5147,7 +5147,7 @@ This can be quite useful if your displayObject is static / complicated and needs
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1224,7 +1224,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1701,7 +1701,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2174,7 +2174,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1840,7 +1840,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2988,7 +2988,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3049,7 +3049,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -4288,7 +4288,7 @@ Removes all references to transformCallbacks, its parent, the stage, filters, bo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-1122">line 1122</a>
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-1129">line 1129</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5385,7 +5385,7 @@ Removes all references to transformCallbacks, its parent, the stage, filters, bo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-1133">line 1133</a>
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-1140">line 1140</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5502,7 +5502,7 @@ Removes all references to transformCallbacks, its parent, the stage, filters, bo
|
|||
|
||||
<dt>
|
||||
<h4 class="name "
|
||||
id="generateTexture"><span class="type-signature"></span>generateTexture<span class="signature">(resolution, scaleMode)</span><span class="type-signature"> → {<a href="PIXI.Texture.html">PIXI.Texture</a>}</span></h4>
|
||||
id="generateTexture"><span class="type-signature"></span>generateTexture<span class="signature">(<span class="optional">resolution</span>, <span class="optional">scaleMode</span>, <span class="optional">padding</span>)</span><span class="type-signature"> → {<a href="PIXI.Texture.html">PIXI.Texture</a>}</span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
|
@ -5534,8 +5534,12 @@ This can be quite useful if your geometry is complicated and needs to be reused
|
|||
<th>Type</th>
|
||||
|
||||
|
||||
<th>Argument</th>
|
||||
|
||||
|
||||
|
||||
<th>Default</th>
|
||||
|
||||
|
||||
<th class="last">Description</th>
|
||||
</tr>
|
||||
|
@ -5559,7 +5563,23 @@ This can be quite useful if your geometry is complicated and needs to be reused
|
|||
</td>
|
||||
|
||||
|
||||
<td class="attributes">
|
||||
|
||||
<optional><br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td class="default">
|
||||
|
||||
1
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="description last"><p>The resolution of the texture being generated</p></td>
|
||||
|
@ -5582,13 +5602,68 @@ This can be quite useful if your geometry is complicated and needs to be reused
|
|||
</td>
|
||||
|
||||
|
||||
<td class="attributes">
|
||||
|
||||
<optional><br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td class="default">
|
||||
|
||||
0
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="description last"><p>Should be one of the PIXI.scaleMode consts</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td class="name"><code>padding</code></td>
|
||||
|
||||
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">Number</span>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="attributes">
|
||||
|
||||
<optional><br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td class="default">
|
||||
|
||||
0
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="description last"><p>Add optional extra padding to the generated texture (default 0)</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
@ -5728,7 +5803,7 @@ This can be quite useful if your geometry is complicated and needs to be reused
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-823">line 823</a>
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-830">line 830</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -8309,7 +8384,7 @@ Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-946">line 946</a>
|
||||
<a href="src_pixi_primitives_Graphics.js.html">pixi/primitives/Graphics.js</a>, <a href="src_pixi_primitives_Graphics.js.html#sunlight-1-line-953">line 953</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -8358,7 +8433,7 @@ Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1228,7 +1228,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2369,7 +2369,7 @@ this function is taken from Starling Framework as its pretty neat ;)</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1697,7 +1697,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1965,7 +1965,7 @@ http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf<
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1304,7 +1304,7 @@ Slightly modified by Mat Groves (matgroves.com);</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1641,7 +1641,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2915,7 +2915,7 @@ irrespective of the actual frame size or placement (which can be influenced by t
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2969,7 +2969,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3030,7 +3030,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5594,7 +5594,7 @@ This can be quite useful if your displayObject is static / complicated and needs
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3045,7 +3045,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3106,7 +3106,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6120,7 +6120,7 @@ texture this Sprite was using.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1287,7 +1287,7 @@ And here you have a hundred sprites that will be renderer at the speed of light<
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2968,7 +2968,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3029,7 +3029,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5588,7 +5588,7 @@ This can be quite useful if your displayObject is static / complicated and needs
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1641,7 +1641,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3017,7 +3017,7 @@ If the image is not in the texture cache it will be created and loaded.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3669,7 +3669,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -3730,7 +3730,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6558,7 +6558,7 @@ texture this Sprite was using.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1641,7 +1641,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2771,7 +2771,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2162,7 +2162,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3109,7 +3109,7 @@ Disable this by setting this to false. For example: if your game has a canvas fi
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:57 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1532,7 +1532,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:44 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:56 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -4324,7 +4324,7 @@ If <code>dispatchComplete</code> is true it will dispatch the complete events, o
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3576,7 +3576,7 @@ The currentAnim property of the AnimationManager is automatically set to the ani
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:45 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2260,7 +2260,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2833,7 +2833,7 @@ Returns null if not found.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2757,7 +2757,7 @@ for forward compatibility make sure to pass in actual numbers.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2119,7 +2119,7 @@ The JSON follows the format of that created by https://github.com/tonistiigi/aud
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -15562,7 +15562,7 @@ If not given the dimensions defaults to the full size of the context.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -5934,7 +5934,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5995,7 +5995,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -9650,7 +9650,7 @@ Remember if this Game Object has any children you should call update on those to
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -6753,7 +6753,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6814,7 +6814,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -14011,7 +14011,7 @@ or the rectangle it references, then you need to update the crop frame by callin
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -15961,7 +15961,7 @@ then it will persist in memory.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3764,7 +3764,7 @@ without having to use game.camera.x and game.camera.y.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3458,7 +3458,7 @@ patchy on earlier browsers, especially on mobile.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -4855,7 +4855,7 @@ This method checks the radius distances between the two Circle objects to see if
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:35 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -11378,7 +11378,7 @@ endian-independent method, use fromRGBA(rgba) and toRGBA(r, g, b, a).</p>
|
|||
|
||||
|
||||
<div class="description">
|
||||
<p>Takes a color object and updates the rgba property.</p>
|
||||
<p>Takes a color object and updates the rgba, color and color32 properties.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -11900,7 +11900,7 @@ endian-independent method, use fromRGBA(rgba) and toRGBA(r, g, b, a).</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1293,7 +1293,7 @@ Working in radians is slightly faster as it doesn't have to perform any calculat
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1507,7 +1507,7 @@ If you need to reset an already running animation do so directly on the Animatio
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:46 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1350,7 +1350,7 @@ Returns <code>true</code> if they do, otherwise <code>false</code> if fully outs
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1576,7 +1576,7 @@ This is the same as <code>y - offsetY</code>.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1604,7 +1604,7 @@ because the World is the root Group from which all Game Objects descend.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2446,7 +2446,7 @@ Remember if this Game Object has any children you should call update on those to
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1547,7 +1547,7 @@ or the rectangle it references, then you need to update the crop frame by callin
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1402,7 +1402,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1475,7 +1475,7 @@ more than one Game Object sharing the same BaseTexture.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1428,7 +1428,7 @@ Called automatically by the Game Object.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1524,7 +1524,7 @@ Will never exceed the <code>maxHealth</code> value.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1290,7 +1290,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1483,7 +1483,7 @@ Called automatically by the Game Object.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1363,7 +1363,7 @@ for this Game Object and it will then start to process click / touch events and
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1685,7 +1685,7 @@ it doesn't destroy the object or free it up from memory.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1949,7 +1949,7 @@ it can be useful to adjust the dimensions directly in this way.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1387,7 +1387,7 @@ It should be fine for low-volume testing where physics isn't required.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1574,7 +1574,7 @@ Called automatically by the Game Object.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1465,7 +1465,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1674,7 +1674,7 @@ or pass <code>null</code> for the <code>maxX</code> and <code>maxY</code> parame
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1290,7 +1290,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2471,7 +2471,7 @@ for sprites the same way you use any other texture: <code>game.add.sprite(0, 0,
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -5123,7 +5123,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-719">line 719</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-723">line 723</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -5184,7 +5184,7 @@ This value is updated at the end of updateTransform and takes all parent transfo
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-737">line 737</a>
|
||||
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-741">line 741</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -9140,7 +9140,7 @@ Remember if this Game Object has any children you should call update on those to
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:36 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -2711,7 +2711,7 @@ inLayoutViewport(element, -100) is <code>true</code> if the element is in the vi
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -6125,7 +6125,7 @@ if the device is already "ready". See <a href="Phaser.Device.html#devi
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1252">line 1252</a>
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1250">line 1250</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6264,7 +6264,7 @@ if the device is already "ready". See <a href="Phaser.Device.html#devi
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1295">line 1295</a>
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1293">line 1293</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6336,7 +6336,7 @@ This is available before the device "ready" event.</p>
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1361">line 1361</a>
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1359">line 1359</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6414,7 +6414,7 @@ It used to work in Chrome, but then they removed the ability: <a href="http://sr
|
|||
|
||||
|
||||
<dt class="tag-source">Source -
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1326">line 1326</a>
|
||||
<a href="src_system_Device.js.html">system/Device.js</a>, <a href="src_system_Device.js.html#sunlight-1-line-1324">line 1324</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -6463,7 +6463,7 @@ It used to work in Chrome, but then they removed the ability: <a href="http://sr
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:47 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -3233,7 +3233,7 @@ Handles the button up state.</p>
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1649,7 +1649,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1649,7 +1649,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1649,7 +1649,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1649,7 +1649,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -1649,7 +1649,7 @@
|
|||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a>
|
||||
on Fri Feb 12 2016 15:56:37 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Wed Feb 17 2016 13:24:48 GMT+0000 (GMT Standard Time) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue