Commit graph

52 commits

Author SHA1 Message Date
Richard Davey
5598ee76ac Removed logs. Added setTrim if frame requires it. 2017-11-03 13:16:51 +00:00
Richard Davey
92a70f0ce2 updateUVs now updates the canvas data too. Removed logs. Added setTrim if frame requires it. 2017-11-03 13:16:21 +00:00
Richard Davey
bb3b5c3cbd Removed console logs. 2017-11-03 13:15:58 +00:00
Richard Davey
d2f6fdccfa Working through trying to fix SpriteSheetFromAtlas 2017-11-03 10:27:59 +00:00
Richard Davey
ddeac1f451 Swapped to using GetFastValue 2017-11-03 10:27:02 +00:00
Richard Davey
6a3280bd34 Added Texture.getFramesFromTextureSource and Texture.getTextureSourceIndex from a TextureSource. 2017-10-18 13:45:11 +01:00
Richard Davey
9c5e257598 Added Frame halfWidth and halfHeight properties 2017-10-16 22:16:33 +01:00
Richard Davey
8cf60b4c3e Tidying-up the namespace. 2017-10-11 17:06:13 +01:00
Richard Davey
cd4d9224d0 Added isCanvas property 2017-09-21 00:15:31 +01:00
Igor Petushkov
267cb95c6b Move loading __DEFAULT and __MISSING images to boot function. 2017-09-16 23:07:42 +03:00
Felipe Alfonso
dc45945d99 WebGL Specific Game Objects work with restored context, except EffectLayer and RenderPass. That would require developer to rebind render targets and resources 2017-09-13 17:54:32 -03:00
Richard Davey
ad4f102335 Added ability to load Unity meta data files for sprite sheets 2017-08-10 05:17:02 +01:00
photonstorm
24278c6f3b Fixed EarCut path.
Removed redundant TextureSource properties.
2017-08-01 16:56:39 +01:00
photonstorm
52bb355429 Removing old and incorrect jsdoc blocks ready for first documentation pass. 2017-08-01 13:10:08 +01:00
Richard Davey
b3486ad64b Added getPixel method to the Texture Manager. 2017-07-16 12:44:45 +01:00
photonstorm
d804e056ed Renaming from State to Scene internally.
This is one monster update.
2017-07-14 14:50:51 +01:00
Richard Davey
ea8b1ca94c Removed redundant properties (tint and tiling related) 2017-07-12 00:47:46 +01:00
photonstorm
e7708fedcf Textures updated to class structure. 2017-07-04 13:23:58 +01:00
Richard Davey
fb33be2773 Added in the Create functions and exposed via Texture Manager 2017-06-15 01:34:05 +01:00
Richard Davey
ffb2bd5534 TextureSource respects Config.PixelArt setting 2017-06-08 00:12:22 +01:00
Felipe Alfonso
d216793595 Texture Filtering and Repeat property 2017-05-19 21:16:45 -04:00
Felipe Alfonso
f84f4e626c Graphics canvas texture generation 2017-05-10 21:24:57 -03:00
Felipe Alfonso
8be3ee40c9 Graphics Emtpy Texture generation 2017-05-10 20:36:11 -03:00
photonstorm
3647e28427 Added Texture.getFrameNames which is handy for things like atlas imports or sprite sheets. 2017-04-28 04:30:32 +01:00
photonstorm
8264351f75 Renamed GetObjectValue to GetValue and replaced through-out entire codebase. More consistent now with GetAdvancedValue, etc. 2017-04-26 16:03:22 +01:00
photonstorm
6aa2fb009b Renamed Texture Parsers to follow conventions elsewhere in the library. Started on SS from Atlas. 2017-04-18 15:31:30 +01:00
photonstorm
01a542303a Config based SS rip. 2017-04-11 17:22:22 +01:00
Felipe Alfonso
aa8f0820c0 Resource clean up and adapted batches to allow shader swapping 2017-04-05 19:01:44 -03:00
Richard Davey
e588ff511a Added Texture.has(frame) check 2017-04-05 17:04:55 +01:00
Richard Davey
81aa09d732 Added Layer actions for create, createMultiple, rotation around a fixed point, rotation by distance, and positioning around a circle. 2017-03-28 03:09:59 +01:00
Richard Davey
4158196f73 Sprite Sheets now add __BASE entry. 2017-03-27 23:38:34 +01:00
Richard Davey
fa61e4b11d Set a default frame for sprite sheets and atlases. 2017-03-27 23:38:27 +01:00
photonstorm
4832c65666 Added createCanvas method to the Texture Manager. 2017-03-14 16:37:32 +00:00
Richard Davey
91bb3c8a98 Frame calculates its center automatically now (to avoid Sprites having to do it every time they're created, as it'll never change once the Frame is set). 2017-03-02 02:06:53 +00:00
Richard Davey
6626870fcf Adding DEFAULT and MISSING images to Game Config and the Texture Manager. 2017-02-07 12:43:20 +00:00
Richard Davey
7999f72d81 Moved GetObjectValue into utils/object 2017-02-04 05:39:37 +00:00
Richard Davey
7c06670f90 Added Loader.SpriteSheet, now using a new config object rather than a bunch of arguments. 2017-02-04 05:36:06 +00:00
Richard Davey
ce3bb7d1fa Implemented RTree spatial sort for the display list handling. Canvas Renderer updated to take advantage of it. Camera updated to extend BaseTransform + add extra properties. Array QuickSelect function added. Frame radius calculation added. 2017-01-26 04:06:10 +00:00
photonstorm
c338ecb390 Fixed trimmed frames issue. 2017-01-24 16:34:51 +00:00
Felipe Alfonso
5e1e495240 Rotated texture frames added 2017-01-23 15:30:25 -03:00
photonstorm
4b7330f701 TextureSource creates glTexture if required. 2017-01-20 18:51:25 +00:00
Felipe Alfonso
ba4b4b9892 Update SpriteBatch to work properly with Transform 2017-01-20 14:58:41 -03:00
Richard Davey
4ac4d406b2 Hooked up SpriteBatch. 2017-01-19 23:20:36 +00:00
Richard Davey
270504923d Fixed Scale Mode references. 2017-01-18 14:48:02 +00:00
Richard Davey
9235d6fe58 Lots of Canvas Renderer fixes.
Merged CONST with Phaser export.
Fixed GetObjectValue check.
Added drawImage data to Frame.
2017-01-16 22:44:02 +00:00
photonstorm
d557d13d25 Added in new Util functions, and fixed some left-over ES6 values. 2016-12-15 17:15:47 +00:00
photonstorm
6585297fbf Lots of Math component exports added.
Restructured Phaser export file, finally removing it out of the Boot folder.
Fixed several broken math functions.
2016-12-13 16:12:25 +00:00
photonstorm
903b703245 Added Multi Atlas loader support and fixed issue with Set.each iteration. 2016-12-08 16:23:04 +00:00
Richard Davey
07f3756761 Creates a __BASE entry for the atlas.
Defaults to __BASE if no texture frame was found in the atlas (may consider replacing with blank texture)
2016-12-07 10:58:35 +00:00
Richard Davey
5e0bbd7028 Fixed ability for it to load multi-part files and parse atlas data. 2016-12-07 10:50:10 +00:00