photonstorm
f40cfbe2ae
2015 - 2016.
2016-04-04 22:16:16 +01:00
photonstorm
866994743b
URI + ? fix.
2016-02-18 14:34:20 +00:00
Rafael Barbosa Lopes
a267e81b26
Doc: Loader.enableParallel
is Boolean.
2016-02-04 10:06:12 -02:00
Richard Davey
4e7fad353e
Loader.audiosprite is renamed to Loader.audioSprite (the old one still works for legacy reasons) (thanks @epaezrubio #2145 )
2016-02-03 23:53:50 +00:00
Richard Davey
92dae1951b
Merge pull request #2204 from tfelix/master
...
Asset packs are now correctly spliced between waiting files.
2016-02-02 16:58:33 +02:00
Richard Davey
99b3ea4a1f
Merge pull request #2285 from allenevans/bug-clearGLTextures
...
Fix cache reference bug in web GL context restoration.
2016-02-01 19:22:37 +02:00
Richard Davey
1d2d707b32
Merge pull request #2168 from nlotz/dev
...
fix typos in API docs
2016-02-01 19:01:58 +02:00
Richard Davey
fc5530657d
Merge pull request #2236 from milkey-mouse/fix-datauri-error
...
Fix issue #2234 : Errors in getAudioURL() and getVideoURL() when using blob: or data: URIs
2016-02-01 18:51:56 +02:00
Richard Davey
806f93bc84
Merge pull request #2251 from milkey-mouse/fix-404-success
...
Fix issue #2250 : Loader.binary returns success on 404
2016-02-01 18:45:54 +02:00
nexiuhm
1c65c48341
onLoadUpdate now recives the last ( 100 ) update.
2016-01-14 17:09:41 +01:00
Allen Evans
1a02d2da6c
Fix cache reference bug in web GL context restoration.
2016-01-06 07:35:53 +00:00
Milkey Mouse
d1c4297802
Fix #2250
...
changes by @mhstar89
2015-12-09 19:54:48 -08:00
Milkey Mouse
0c2e8d8ce9
Implement jackfreak's changes (Issue #2234 )
2015-11-30 14:07:22 -08:00
tfelix
734eba7f84
Asset packs are now correctly spliced between waiting files.
2015-11-15 02:48:05 +01:00
nlotz
da45d04a70
fix typos in API docs
2015-10-27 09:10:14 +01:00
photonstorm
99751a5e8e
BaseTexture.skipRender is a new boolean that can be set to skip the rendering phase in the WebGL Sprite Batch. You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal __default
texture) that has children that you do want to render, without causing a batch flush in the process.
2015-10-15 11:39:59 +01:00
Nikolas Lotz
6d4dad7bb4
Apply default X/Y-Spacing
...
Applies default X/Y-Spacing when omitted as a parameter
2015-10-08 20:14:16 +02:00
Nikolas Lotz
33503e7fa7
adds missing API doc param to addBitmapFont()
...
added missing API doc parameter "atlasType" to Cache::addBitmapFont(...)
2015-09-24 19:18:04 +02:00
photonstorm
5c30a228bb
Fixed assignment of TEXTURE_ATLAS_JSON_PYXEL constant ( #2050 )
2015-09-14 11:23:31 +01:00
Richard Davey
1c7b33107f
Merge pull request #2050 from joshpmcghee/dev
...
Feature: Add support for loading single-layer Pyxel Edit TileMap as an Atlas
2015-09-14 13:21:21 +03:00
Richard Davey
1e7f8dddd9
jsdoc fix.
2015-09-03 00:46:48 +01:00
Josh McGhee
4a19aca212
some cleaning up and documentation polish
2015-09-01 01:03:51 +01:00
Josh McGhee
cbd7265bee
cherry pick commits from master. Read: I'm not clever.
2015-09-01 00:57:54 +01:00
Rafael Barbosa Lopes
1485fd110a
Updated to use a matching expression instead.
...
Replaced the booleans with a matching expression. Now, URLs
beginning with the following patterns will be ignored:
- blob:
- data:
- http://
- https://
- //
As suggested by @pnstickne.
2015-08-28 17:19:24 -03:00
Rafael Barbosa Lopes
14632cdfb5
Prevent 'data:' URLs from being prefixed
...
Fixes an issue where 'data:' URLs may get prefixed by
`#baseURL` and `#path` properties making these URLs invalid.
2015-08-28 15:14:30 -03:00
Richard Davey
8b6d696316
jsdoc fix.
2015-08-26 03:59:18 +01:00
photonstorm
1e88bdda70
Loader.bitmapFont wouldn't automatically set the atlasURL
value if just the key was given.
2015-08-25 13:46:28 +01:00
photonstorm
bcedd921b7
Cache.addSpriteSheet didn't include default values for the frameMax
, margin
and spacing
arguments (thanks @vladkens #2017 #2018 )
2015-08-24 11:43:34 +01:00
Vladislav Forsh
888f88ece8
Fixed js doc for cache.getRenderTexture
2015-08-11 20:31:31 +03:00
photonstorm
b365ebf570
jshint fix.
2015-08-03 16:45:03 +01:00
photonstorm
d23e5d6eba
BitmapText.smoothed is a new boolean property that allows you to set texture smoothing on a bitmap font or not. By default smoothing is always on, but you can turn it off which helps for bitmap fonts created from pixel art style character sets.
2015-07-31 15:58:00 +01:00
photonstorm
c032d57183
Loader.images is a new method that allows you to pass an array of image keys, and optionally the urls, to the Loader and have them all added to the load queue in one go.
2015-07-30 15:01:52 +01:00
photonstorm
a8934c392d
Phaser.Sound will now automatically check the Cache to see if the audio file it is using is still there or not. If not then it will automatically called Sound.destroy
on itself. If you do not desire this result then you should ensure that you undertake all house-keeping yourself, and properly destroy Sound objects _before_ calling Cache.removeSound
( #1946 )
2015-07-27 14:02:04 +01:00
Richard Davey
50480d815f
* Cache.getFrame has a new cache
parameter (that defaults to the Image cache, but can be changed to any other)
...
* Cache.getFrameCount has a new `cache` parameter (that defaults to the Image cache, but can be changed to any other)
* Cache.getFrameData has a new `cache` parameter (that defaults to the Image cache, but can be changed to any other)
* Cache.hasFrameData has a new `cache` parameter (that defaults to the Image cache, but can be changed to any other)
* Cache.getFrameByIndex has a new `cache` parameter (that defaults to the Image cache, but can be changed to any other)
* Cache.getFrameByName has a new `cache` parameter (that defaults to the Image cache, but can be changed to any other)
re: #1935
2015-07-26 13:14:25 +01:00
photonstorm
328fd32290
Cache.removeImage now calls destroy on the image BaseTexture, removing it from the PIXI global caches without throwing a warning.
2015-07-24 13:21:18 +01:00
photonstorm
9a83ddcab9
Updated to latest Creature runtimes, added to GameObjectFactory.
2015-07-23 13:25:08 +01:00
jamesgroat
10587e07ee
Use _cacheMap to map from constant to _cache.
2015-07-22 16:53:07 -07:00
photonstorm
858ad51610
Phaser 2.4 release.
2015-07-22 15:31:30 +01:00
photonstorm
ffaa7d711f
Removed BaseTextureCache requirement from BitmapData.
...
Fixed jshint.
Updated TS defs.
2015-07-22 13:23:40 +01:00
photonstorm
8eb34f96ce
WebGL context loss and restoration is now handled directly by Phaser.
...
Cache.clearGLTextures empties out all of the GL Textures from Images stored in the cache. This is called automatically when the WebGL context is lost and then restored.
2015-07-22 12:59:32 +01:00
photonstorm
f28bc82fe3
Fixed packfiles undefined path error.
2015-07-22 10:53:15 +01:00
photonstorm
f15fe6706c
All undefined argument checks were changed from if (typeof x === 'undefined')
to if (x === undefined)
removing the typeof check and saving some bytes across the codebase in the process.
2015-07-22 10:37:15 +01:00
photonstorm
bb6c5bbbdc
Key added to TextureAtlas and SpriteSheet, fixing the 'undefined' key error in LoadTexture.
2015-07-20 12:00:37 +01:00
photonstorm
45944d689c
Fix for #1914
2015-07-16 22:45:25 +01:00
Richard Davey
fcaa6cec68
Merge pull request #1912 from Feenposhleen/feature/fixing-json-fonts
...
Improving JSON BitmapText implementation
2015-07-16 15:37:09 +01:00
photonstorm
7271eb5e2d
Removed un-needed cache arguments and fixed jshint error.
2015-07-16 14:58:51 +01:00
Charlo
795a7c80a8
Improving JSON BitmapText implementation
2015-07-16 13:30:55 +02:00
Richard Davey
9314c5a767
LoaderParser.bitmapFont, xmlBitmapFont and jsonBitmapFont all now return the font data rather than write it to the now deprecated PIXI global font cache.
2015-07-16 01:17:03 +01:00
Richard Davey
3c7293ab57
Updated AnimationParser and fixed LoadTexture calls.
2015-07-16 01:02:59 +01:00
Richard Davey
bab50d7c88
* The Cache has been internally refactored considerably. Image data is now all stored in the same object, rather than being split across the PIXI global caches (such as PIXI.TextureCache and PIXI.BaseTextureCache), which are no longer used by Phaser.
...
* Internally the Cache now uses a single _cache object, which is partitioned to store the various different object types. Before the cache used lots of private objects, one per data type, but it's now a lot cleaner and we've managed to cut out hundreds of lines of duplicate code in the process.
* Cache.getImage has a new argument which lets you return either just the HTML Image element or the entire image cache object, which includes the baseTexture and frame data.
* Cache.getImage will return a __default image if the key isn't given, or a __missing image if the key is given but not found in the cache. This means it will always return a valid image and no longer cause Phaser to throw runtime errors deeper down with invalid image objects.
2015-07-16 00:46:28 +01:00