Commit graph

1906 commits

Author SHA1 Message Date
Pavle Goloskokovic
411fdd48b2 Setting totalRate value in setRate method 2017-12-01 15:33:02 +01:00
Pavle Goloskokovic
fe9c9c0819 Added totalRate property to BaseSound class 2017-12-01 15:32:03 +01:00
Pavle Goloskokovic
4721d074e8 Merge remote-tracking branch 'origin/master' 2017-12-01 13:16:59 +01:00
Richard Davey
f2c05d2b0d Merge branch 'master' of https://github.com/photonstorm/phaser 2017-12-01 03:12:00 +00:00
Richard Davey
d0fb5a69f4 Allows for 'font' and 'fill' overrides 2017-12-01 03:11:57 +00:00
Richard Davey
b393aed2e3 Fixed setPadding and padding value assignment 2017-12-01 03:11:41 +00:00
Richard Davey
025c9dc131 Padding now passed in the style object and avoids double call to updateText 2017-12-01 03:11:23 +00:00
Michael Hadley
01f34e18b7 Recalculate faces: make this reset faces on non-colliding tiles
This handles edge cases where things like copy can make a tile become non-colliding w/o reseting faces
2017-11-30 17:19:19 -06:00
Pavle Goloskokovic
42b47d2674 Fixed few references 2017-11-30 22:56:54 +01:00
Pavle Goloskokovic
c1adc63ffd Merge remote-tracking branch 'origin/master' 2017-11-30 22:16:03 +01:00
Pavle Goloskokovic
786c6913ac Removing WebAudioSpriteSound class, audio sprite creation logic is generic and can be used in base sound manager class, no need for adding more classes and making class hierarchy more complex 2017-11-30 22:15:47 +01:00
Pavle Goloskokovic
9e90b9eec2 Moved logic for audio sprite creation to BaseSoundManager addAudioSprite method 2017-11-30 22:14:20 +01:00
Felipe Alfonso
ef942fb204 Premultiplied Alpha blending 2017-11-30 16:05:45 -03:00
Michael Hadley
0993af649a Bug fix: extend from empty object 2017-11-30 12:26:07 -06:00
Pavle Goloskokovic
9a3d0a4140 Added hasOwnProperty check for traversing spritemap object 2017-11-30 18:56:38 +01:00
Pavle Goloskokovic
5c3a3ebef2 Improve readability with local variable 2017-11-30 18:56:12 +01:00
Pavle Goloskokovic
9a156ec898 Adding marker for each key in spritemap object 2017-11-30 18:55:21 +01:00
Pavle Goloskokovic
d65cf17a4d Added spritemap property to WebAudioSpriteSound that holds reference to 'spritemap' object form json file generated by audiosprite tool. 2017-11-30 18:54:27 +01:00
Pavle Goloskokovic
39edc8a9ac Defaulting config to empty object and calling super method in WebAudioSpriteSound constructor 2017-11-30 18:53:12 +01:00
Pavle Goloskokovic
6412a3c3c2 Added WebAudioSpriteSound class - a Web Audio implementation of audio sprite sound 2017-11-30 18:50:54 +01:00
Pavle Goloskokovic
0bce624170 Merge remote-tracking branch 'origin/master' 2017-11-30 18:18:24 +01:00
Pavle Goloskokovic
1e10ab2f1f Added case for loading audioSprite files with generic file loader method 2017-11-30 18:18:13 +01:00
Richard Davey
2e7a336ef9 Handling new style settings for fonts and padding. 2017-11-30 17:17:29 +00:00
Richard Davey
5e975eda2c font has been removed and replaced with fontFamily, fontSize and fontStyle.
fill has been replaced with color as it just makes more sense.
2017-11-30 17:17:28 +00:00
Richard Davey
4d71806bea Text padding is passed to the Text.setPadding method to handle. 2017-11-30 17:17:27 +00:00
Richard Davey
7bd8bf2075 The testString can now be set in the Text config. 2017-11-30 17:17:27 +00:00
Pavle Goloskokovic
c1010bd446 Added support for passing in json object instead of url to json file directly to audioSprite loader method 2017-11-30 18:15:51 +01:00
Michael Hadley
b53f68c84a Factor layer scale into tile culling 2017-11-30 11:15:35 -06:00
Pavle Goloskokovic
6145ff5869 Loading audioSprite only if audio is enabled and AudioFile instance is returned from AudioFile.create method 2017-11-30 18:12:08 +01:00
Pavle Goloskokovic
1ed35dfc17 Added audioSprite case for handling audio and json files after loading finishes 2017-11-30 18:09:11 +01:00
Pavle Goloskokovic
449ca11ffd Linking audio and json files when loading audioSprite and setting their linkType to audioSprite 2017-11-30 18:07:27 +01:00
Pavle Goloskokovic
8dc987b7fc Creating AudioFile in audio loader method and adding it if it's not null
Returning loader reference for call chaining
2017-11-30 18:03:16 +01:00
Pavle Goloskokovic
8de108ce68 Returning null of AudioFile instance from AudioFile create method 2017-11-30 18:01:28 +01:00
Pavle Goloskokovic
dc8ef8a148 Added audioSprite multifile loader 2017-11-30 17:59:08 +01:00
Pavle Goloskokovic
5e89c9b1c7 Merge remote-tracking branch 'origin/master' 2017-11-30 16:42:23 +01:00
Michael Hadley
85e75eafa8 Fix for coord transform between world <-> tile + expose tile -> world methods 2017-11-30 09:22:54 -06:00
Pavle Goloskokovic
9ec1fb4cd1 Removing touche events when unlocking only after promise returned from resume method gets resolved 2017-11-30 14:41:46 +01:00
Pavle Goloskokovic
5f21646e6c Merge remote-tracking branch 'origin/master' 2017-11-30 14:39:33 +01:00
Pavle Goloskokovic
1b94d7eac3 Trying to unlock Web Audio on both touchstart and touchend events 2017-11-30 14:39:24 +01:00
Michael Hadley
bde77f7b95 Blank layers - pass along map's base tile size 2017-11-30 06:56:35 -06:00
Michael Hadley
76b74c677c Tile culling: use tile's worldXY and w/h so maps with different tileset sizes work 2017-11-30 06:56:13 -06:00
Pavle Goloskokovic
26956d3172 Merge remote-tracking branch 'origin/master' 2017-11-30 13:37:41 +01:00
Pavle Goloskokovic
f692aad1b1 Replaced touchstart with touchend event when unlocking Web Audio 2017-11-30 13:37:31 +01:00
Michael Hadley
a3b8a25521 Allow tilemap to change base tile size for all tiles 2017-11-29 23:16:48 -06:00
Michael Hadley
1be6d7a681 Tilemap & Dynamic: new method for putting a 2D array of tiles at a location 2017-11-29 21:59:11 -06:00
Michael Hadley
e548b73e80 Proper support for multiple tile sizes in a tilemap
- Adds base tile size to Tile class. Tiled positions tiles based on the base size.
- Supports proper translation of Tiled's bottom left coord system to Phaser's top left coord for tiles that are bigger or smaller than the base tile size.
- Update static renderer to read position/size from tile
2017-11-29 20:06:52 -06:00
Michael Hadley
2ae4bfa85a Jsdocs: StaticTilemapLayer & DynamicTilemapLayer 2017-11-29 19:23:42 -06:00
Michael Hadley
36a92d15e7 Add note about ImageCollection being a direct v2 port 2017-11-29 19:23:42 -06:00
Michael Hadley
59cdf89836 Jsdocs: Tilemap 2017-11-29 19:23:42 -06:00
Richard Davey
d1cc12693c If a GameObject has a preDestroy method then call it before running the standard destroy calls. 2017-11-30 01:20:22 +00:00