Richard Davey
|
a86b68e361
|
Removed un-needed WorldToCamera, implemented GetWorldPoint across the board
|
2017-11-29 22:23:58 +00:00 |
|
Michael Hadley
|
d6f8812f49
|
Jsdoc: Tile
|
2017-11-29 15:37:23 -06:00 |
|
Michael Hadley
|
a76e270c78
|
Jsdoc fixup: Number -> Integer, array -> Type[]
|
2017-11-29 15:07:56 -06:00 |
|
Michael Hadley
|
191f621dad
|
Jsdocs: Tileset
|
2017-11-29 14:39:30 -06:00 |
|
Michael Hadley
|
5f3156e2b8
|
Jsdocs: Tilemap parsing
|
2017-11-29 14:02:45 -06:00 |
|
Michael Hadley
|
0ee08b76a8
|
Jsdocs: ParseToTilemap
|
2017-11-29 13:53:05 -06:00 |
|
Michael Hadley
|
382d8edfcc
|
Jsdocs: Tilemap Creator & Factor
|
2017-11-29 13:46:29 -06:00 |
|
Michael Hadley
|
f0e59b3d3d
|
Blank Layer: remove unnecessary setting of tile size
|
2017-11-29 13:23:01 -06:00 |
|
Michael Hadley
|
b8695342e1
|
Prefer UK spelling over US: indices -> indexes
|
2017-11-29 13:22:30 -06:00 |
|
Michael Hadley
|
80a16065e2
|
Update to allow multiple tileset sizes within one map
Tileset is source of truth for tile size, so this update makes sure that layers are sync'd with the tileset
|
2017-11-29 12:52:34 -06:00 |
|
Michael Hadley
|
184cfd1979
|
When creating a Tilemap layer, use Tiled layer offset if no xy specified
|
2017-11-29 11:59:25 -06:00 |
|
Michael Hadley
|
a7df7c2df9
|
Tidying up linting, notes and comments
|
2017-11-29 11:46:19 -06:00 |
|
Michael Hadley
|
f4a6888d86
|
Tilemap: add method for converting layer from dynamic to static
|
2017-11-29 11:36:36 -06:00 |
|
Michael Hadley
|
0b4a08730c
|
Adding debug rendering method to tilemap and layers
|
2017-11-29 09:05:53 -06:00 |
|
Michael Hadley
|
60f20aa05b
|
setTileLocationCallback
|
2017-11-29 08:20:24 -06:00 |
|
Michael Hadley
|
da79734b22
|
SetTileIndexCallback
|
2017-11-29 07:53:04 -06:00 |
|
Michael Hadley
|
b4d89fb554
|
createFromObjects: return an array of sprites
|
2017-11-29 07:35:26 -06:00 |
|
Michael Hadley
|
a0b4362979
|
createFromObjects: allow sprite to have any origin while still matching Tiled
|
2017-11-29 07:25:04 -06:00 |
|
Michael Hadley
|
ee5190660c
|
Tilemap: upgraded version of createFromObjects from v2
|
2017-11-28 22:40:48 -06:00 |
|
Michael Hadley
|
e5a8600686
|
BuildGameObject bug: origin was being set to position xy
|
2017-11-28 21:57:52 -06:00 |
|
Michael Hadley
|
68634a0deb
|
Tilemap & layer methods: FilterTiles & CreateFromTiles
|
2017-11-28 20:49:24 -06:00 |
|
Richard Davey
|
3129950d34
|
Updated call
|
2017-11-29 02:25:14 +00:00 |
|
Felipe Alfonso
|
3b296162cf
|
Camera input transform update
|
2017-11-28 19:18:05 -03:00 |
|
Pavle Goloskokovic
|
e9a71beba7
|
Merge remote-tracking branch 'origin/master'
|
2017-11-28 16:34:48 +01:00 |
|
Richard Davey
|
c58b295fcc
|
Added positionToCamera method (but still needs fixing)
|
2017-11-28 11:16:35 +00:00 |
|
Richard Davey
|
e194b95654
|
PointerConstraint now takes the scene camera it should use as a config option.
|
2017-11-28 11:16:23 +00:00 |
|
Richard Davey
|
d9a9c7a5a1
|
esline tidy-up.
|
2017-11-28 11:15:45 +00:00 |
|
Richard Davey
|
4969bf37e6
|
The local input manager has a reference to the active pointer.
|
2017-11-28 11:15:35 +00:00 |
|
Richard Davey
|
f9cda636c5
|
Added Camera.screenToCamera and setAngle methods.
|
2017-11-28 11:15:22 +00:00 |
|
Pavle Goloskokovic
|
6f7f5f6144
|
Merge remote-tracking branch 'origin/master'
|
2017-11-27 18:13:26 +01:00 |
|
Richard Davey
|
1380af61a1
|
Added render visible flag.
|
2017-11-27 17:01:27 +00:00 |
|
Pavle Goloskokovic
|
35e25ab633
|
Merge remote-tracking branch 'origin/master'
|
2017-11-27 17:38:51 +01:00 |
|
Pavle Goloskokovic
|
65c30b9f7a
|
Removed detune property as it is now defined in BaseSoundManager class
|
2017-11-27 17:38:43 +01:00 |
|
Pavle Goloskokovic
|
e4cebbf29c
|
Removed rate property as it is now defined in BaseSoundManager class
|
2017-11-27 17:38:28 +01:00 |
|
Pavle Goloskokovic
|
3c2670a2f9
|
Removed _detune field as it is now set in BaseSoundManager class
|
2017-11-27 17:37:41 +01:00 |
|
Pavle Goloskokovic
|
c84a00e248
|
Removed _rate field as it is now set in BaseSoundManager class
|
2017-11-27 17:37:11 +01:00 |
|
Pavle Goloskokovic
|
28ae0811e6
|
Defining detune property in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations
|
2017-11-27 17:35:35 +01:00 |
|
Pavle Goloskokovic
|
1c1e75ac85
|
Defining rate property in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations
|
2017-11-27 17:35:09 +01:00 |
|
Pavle Goloskokovic
|
27ad50d276
|
Setting _detune field in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations
|
2017-11-27 17:34:27 +01:00 |
|
Pavle Goloskokovic
|
92ac9d41c5
|
Setting _rate field in BaseSound class so it can be used in both Web Audio and HTML5 Audio implementations
|
2017-11-27 17:33:37 +01:00 |
|
Pavle Goloskokovic
|
cf46145d7c
|
Calling super method in setRate method of WebAudioSound class, setting returned value to source playback rate audio param and returning the same value to match method signature
|
2017-11-27 17:32:16 +01:00 |
|
Pavle Goloskokovic
|
f389176362
|
Added setRate method to BaseSound class that contains logic for applying rate and detune settings to sound so it can be reused in both Web Audio and HTML5 Audio implementations
|
2017-11-27 17:30:55 +01:00 |
|
Richard Davey
|
6da5409688
|
Added in all of the Composites helpers.
|
2017-11-27 16:29:43 +00:00 |
|
Richard Davey
|
f24b808ee5
|
Added setGravity defaults and fixed nextGroup method.
|
2017-11-27 16:29:33 +00:00 |
|
Pavle Goloskokovic
|
c253e01cac
|
Merge remote-tracking branch 'origin/master'
|
2017-11-27 17:22:32 +01:00 |
|
Pavle Goloskokovic
|
881474b7cd
|
Added a TODO to take into account playback rate when pausing and resuming sound
|
2017-11-27 16:50:45 +01:00 |
|
Pavle Goloskokovic
|
ffc205b400
|
Calling setRate method on all sound objects when updating global detune value
|
2017-11-27 16:50:05 +01:00 |
|
Pavle Goloskokovic
|
c57f692c85
|
Calling setRate method on all sound objects when updating global rate value
|
2017-11-27 16:49:28 +01:00 |
|
Pavle Goloskokovic
|
9fffd57ad3
|
Moved sound source not null check from properties' setter methods to setRate method
|
2017-11-27 16:48:20 +01:00 |
|
Pavle Goloskokovic
|
db06b3d742
|
Calling setRate in WebAudioSound detune property's setter method
|
2017-11-27 16:46:42 +01:00 |
|
Pavle Goloskokovic
|
074c60c270
|
Calling setRate in WebAudioSound rate property's setter method
|
2017-11-27 16:45:58 +01:00 |
|
Pavle Goloskokovic
|
1fddd3de2a
|
Added setRate method to WebAudioSound class that calculates and sets playback rate based on sound's and manager's detune and rate values
|
2017-11-27 16:44:23 +01:00 |
|
Richard Davey
|
ac9f5c4360
|
Added quick support for setCircle, setRectangle, setPolygon and setTrapezoid.
|
2017-11-27 14:48:09 +00:00 |
|
Richard Davey
|
036e7aecc9
|
If property is undefined fall back to the default value.
|
2017-11-27 14:48:09 +00:00 |
|
Michael Hadley
|
bd8a2fa39b
|
More tilemap jsdocs
|
2017-11-27 07:33:30 -06:00 |
|
Michael Hadley
|
e45bc5c71d
|
PutTileAt: copy all tile properties from source tile
|
2017-11-27 07:19:20 -06:00 |
|
Richard Davey
|
da5bb7d199
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2017-11-27 03:46:10 +00:00 |
|
Richard Davey
|
15a2280813
|
Added basic Graphics debug, fromPath, isPaused and postUpdate.
|
2017-11-27 03:45:46 +00:00 |
|
Richard Davey
|
af9f7380e8
|
Added property
|
2017-11-27 03:45:12 +00:00 |
|
Richard Davey
|
f8fe81dfa1
|
New setBody component for setting and change body shape
|
2017-11-27 03:45:03 +00:00 |
|
Richard Davey
|
ff316be41e
|
setFriction can now set all 3 values.
|
2017-11-27 03:44:31 +00:00 |
|
Richard Davey
|
cd629248d0
|
fix inertia change in Body.setMass
|
2017-11-26 23:25:49 +00:00 |
|
Richard Davey
|
bccad674b7
|
fix point argument of Body.scale
|
2017-11-26 23:24:16 +00:00 |
|
Richard Davey
|
5862949a4c
|
fix centroid for static compound bodies
|
2017-11-26 23:19:45 +00:00 |
|
Richard Davey
|
dc7289e539
|
Fix Vertices.chamfer radius argument
|
2017-11-26 23:17:12 +00:00 |
|
Pavle Goloskokovic
|
d13fae2260
|
Preventing negative values for source start call
|
2017-11-26 18:12:55 +01:00 |
|
Pavle Goloskokovic
|
150c29a8a0
|
Merge remote-tracking branch 'origin/master'
|
2017-11-26 17:25:47 +01:00 |
|
Pavle Goloskokovic
|
93ac04329b
|
Updated WebAudioSound update method docs and signature
|
2017-11-26 17:25:01 +01:00 |
|
Pavle Goloskokovic
|
66dcd9f02f
|
Resetting hasEnded in update method
|
2017-11-26 17:07:56 +01:00 |
|
Pavle Goloskokovic
|
0a078d26f6
|
Setting hasEnded when sound ends
|
2017-11-26 17:07:05 +01:00 |
|
Pavle Goloskokovic
|
f0bc96e68f
|
Checking hasEnded on update in order to call stop method
|
2017-11-26 17:05:24 +01:00 |
|
Pavle Goloskokovic
|
84e6459b59
|
Added hasEnded property to WebAudioSound class
|
2017-11-26 17:03:36 +01:00 |
|
Pavle Goloskokovic
|
94e834fa96
|
Updating all sounds on sound manager update
|
2017-11-26 16:59:12 +01:00 |
|
Pavle Goloskokovic
|
62ca1bef8a
|
Updating sound manager on game step
|
2017-11-26 16:45:07 +01:00 |
|
Pavle Goloskokovic
|
ceeef0368c
|
Added a todo to fix race condition
|
2017-11-26 16:41:46 +01:00 |
|
Pavle Goloskokovic
|
2995b7eaf6
|
Added short logic explanation for onended event handler
|
2017-11-26 16:37:03 +01:00 |
|
Pavle Goloskokovic
|
e13b829ab1
|
Removed redundant check in onended handler and reverted setting source to null before calling stop() on it since it does not invoke onended event handler immediately
|
2017-11-26 16:35:13 +01:00 |
|
Michael Hadley
|
dabe3d27ff
|
Tilemap: more jsdocs
|
2017-11-26 09:33:19 -06:00 |
|
Richard Davey
|
10d7be0785
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2017-11-26 15:31:51 +00:00 |
|
Richard Davey
|
3ee14a88a6
|
Removed referene to Mouse class (no longer used)
|
2017-11-26 15:31:48 +00:00 |
|
Richard Davey
|
b85b341bfd
|
Removed references to the Render class (only needed in debug and saved loads of space in the build file)
|
2017-11-26 15:31:34 +00:00 |
|
Pavle Goloskokovic
|
007a565700
|
Just checking for null sound reference isn't enough since because calling play() on already playing sound is not covered by that condition
|
2017-11-26 16:31:06 +01:00 |
|
Richard Davey
|
d4fd2082f2
|
Removed un-used RenderPixi class
|
2017-11-26 15:31:04 +00:00 |
|
Richard Davey
|
d1fb8319b2
|
Removed old module entry point and added license
|
2017-11-26 15:30:52 +00:00 |
|
Richard Davey
|
f6a5463131
|
Removed Mouse class from matter.js as it's not used.
|
2017-11-26 15:30:26 +00:00 |
|
Pavle Goloskokovic
|
aab5150016
|
Setting source to null before calling stop on it to determine if onended event was fired when sound ended or when it was stopped by user
|
2017-11-26 16:28:54 +01:00 |
|
Pavle Goloskokovic
|
04eb680d52
|
Checking if source is null before stopping sound on ended handler because it is called also when stop() method is called on it
|
2017-11-26 16:27:39 +01:00 |
|
Pavle Goloskokovic
|
1808fab27e
|
Calling stop method when sound ends
|
2017-11-26 16:24:49 +01:00 |
|
Michael Hadley
|
80185eb5eb
|
Fill update: jsdocs & allow fill to update tile collisions + faces
|
2017-11-26 09:19:57 -06:00 |
|
Pavle Goloskokovic
|
53dbf050d4
|
Marked a few methods as private
|
2017-11-26 16:19:56 +01:00 |
|
Michael Hadley
|
09224b724e
|
Tilemap: adding jsdocs
|
2017-11-26 09:07:27 -06:00 |
|
Richard Davey
|
1db68dfceb
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2017-11-26 15:02:49 +00:00 |
|
Richard Davey
|
f4cdd3c1b4
|
Optimization of Body's hidden class
|
2017-11-26 15:02:42 +00:00 |
|
Michael Hadley
|
6ca7c9ecfd
|
Copy update: copy all tile props and recalculate faces within dest region
|
2017-11-26 08:58:38 -06:00 |
|
Richard Davey
|
dfa3cc243a
|
Optimization of Resolver.solvePosition method
|
2017-11-26 14:50:40 +00:00 |
|
Pavle Goloskokovic
|
995f04f34a
|
Merge remote-tracking branch 'origin/master'
|
2017-11-26 15:50:18 +01:00 |
|
Richard Davey
|
81b3656d1e
|
Added Pair.update optimisations and removed the Contact class.
|
2017-11-26 14:37:17 +00:00 |
|
Richard Davey
|
d2dae2c063
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2017-11-26 14:05:37 +00:00 |
|
Richard Davey
|
0156f4f927
|
Fixed order of returns
|
2017-11-26 14:05:29 +00:00 |
|
Michael Hadley
|
8ec6528d20
|
Tilemap & layers: replace v2 raycasting with getTilesWithinShape
|
2017-11-26 07:55:44 -06:00 |
|
Michael Hadley
|
9d29948a02
|
Update tile culling to factor in the new scale
|
2017-11-25 20:47:47 -06:00 |
|
Michael Hadley
|
aaa0d41f5d
|
Fix dynamic layer scale bug
|
2017-11-25 20:47:20 -06:00 |
|
Michael Hadley
|
c31147df19
|
Add filtering options to forEachTile, GetTilesWithin, GetTilesWithinWorldXY
|
2017-11-25 18:03:21 -06:00 |
|
Michael Hadley
|
998ae1bd40
|
Factor layer scale into WorldToTile calculation
|
2017-11-25 17:12:24 -06:00 |
|
Michael Hadley
|
b21fc88660
|
Dynamic Tilemap WebGL - respect layer scale in rendering
|
2017-11-25 17:09:56 -06:00 |
|
Michael Hadley
|
557ac4fe6e
|
Add GetTilesWithinWorldXY method to tilemap and layers
|
2017-11-25 08:42:19 -06:00 |
|
Michael Hadley
|
432c1c0f6d
|
GetTilesWithin: clip rectangular area to map bounds
|
2017-11-25 08:40:07 -06:00 |
|
Michael Hadley
|
4c34d09955
|
Optional snapToFloor parameter added to WorldToTile methods
|
2017-11-25 07:08:06 -06:00 |
|
Michael Hadley
|
7a90d55dd5
|
Fix: WorldXY now passes recalculateFaces to TileXY methods
|
2017-11-25 07:06:14 -06:00 |
|
Michael Hadley
|
7844927256
|
Image layers added to Tilemap
|
2017-11-24 09:15:02 -06:00 |
|
Michael Hadley
|
0d02f7d941
|
Extend Tiled importer to handle offsetx and offsety for the various layers
|
2017-11-24 08:59:36 -06:00 |
|
Michael Hadley
|
d3aa842bfe
|
Adding collision prop to Tilemap
|
2017-11-24 08:23:40 -06:00 |
|
Michael Hadley
|
0e73bae5bc
|
Extend Tileset to have methods for accessing properties and data per tile
|
2017-11-24 08:23:22 -06:00 |
|
Michael Hadley
|
805c0a0125
|
Break Tiled parser into modular pieces & extended capabilities
New features:
- Parsing text object
- Parsing "tiles" prop of tileset which contains collision & terrain information
|
2017-11-24 08:22:55 -06:00 |
|
Michael Hadley
|
fa8178f47b
|
Port of ImageCollection from v2
|
2017-11-24 08:21:09 -06:00 |
|
Richard Davey
|
ce28eaaad8
|
Added the Attractors and Wrap matter plugins. Fixed the Plugin register. Added silence option to stop plugin logging to the console.
|
2017-11-24 13:42:32 +00:00 |
|
Pavle Goloskokovic
|
a1c98d4831
|
Merge remote-tracking branch 'origin/master'
|
2017-11-24 12:50:29 +01:00 |
|
Richard Davey
|
ffeff9d2f7
|
Added confirmedActive speed optimisation to matter.js and removed Common.indexOf
|
2017-11-24 00:37:09 +00:00 |
|
Felipe Alfonso
|
f1ea070256
|
Switched inverted rotation transform
|
2017-11-23 16:02:41 -03:00 |
|
Felipe Alfonso
|
c6d674af8d
|
strokeRect fix
|
2017-11-23 15:53:15 -03:00 |
|
Richard Davey
|
016fda7660
|
Added imageStack Factory function.
|
2017-11-23 16:55:28 +00:00 |
|
Richard Davey
|
4723ef0caa
|
Removed use of Common.indexOf after some horrible perf results.
|
2017-11-23 16:55:17 +00:00 |
|
Richard Davey
|
1ae7237f73
|
You can now optionally set if the objects are added to the physics world.
|
2017-11-23 16:54:55 +00:00 |
|
Richard Davey
|
7c29eab78c
|
Body has new property: ignorePointer, which pointer checks.
|
2017-11-23 14:59:26 +00:00 |
|
Richard Davey
|
04df05cf73
|
World thickness now 128.
|
2017-11-23 14:59:15 +00:00 |
|
Pavle Goloskokovic
|
762c6cb147
|
Updated a TODO
|
2017-11-23 13:55:27 +01:00 |
|
Pavle Goloskokovic
|
266ebc4925
|
Taking into account marker start time on resuming sound
|
2017-11-23 13:55:08 +01:00 |
|
Pavle Goloskokovic
|
d369d46e35
|
Taking into account marker start time if marker is currently played
|
2017-11-23 13:53:57 +01:00 |
|
Pavle Goloskokovic
|
0ded9af3a9
|
Resetting current marker if no marker name is provided to play method
|
2017-11-23 13:52:03 +01:00 |
|
Pavle Goloskokovic
|
5f55931d22
|
Completed a TODO by setting BaseSound update method to NOOP
|
2017-11-23 13:19:22 +01:00 |
|
Pavle Goloskokovic
|
a2ceff63f1
|
Returning marker/null instead of boolean in removeMarker
|
2017-11-23 13:14:41 +01:00 |
|
Pavle Goloskokovic
|
b3337b6c51
|
Added validation for non existing marker in removeMarker method
|
2017-11-23 13:13:25 +01:00 |
|
Pavle Goloskokovic
|
c48f51de35
|
Setting marker to null on removeMarker call
|
2017-11-23 13:12:21 +01:00 |
|
Pavle Goloskokovic
|
9d8afee78f
|
Added validation for non existing marker to updateMarker method
|
2017-11-23 12:56:32 +01:00 |
|
Pavle Goloskokovic
|
0e97a18553
|
Added validation for invalid marker name to updateMarker method
|
2017-11-23 12:56:06 +01:00 |
|
Pavle Goloskokovic
|
42735ee09f
|
Added validation for when no marker is provided to updateMarker method
|
2017-11-23 12:55:22 +01:00 |
|
Pavle Goloskokovic
|
17d39f7bab
|
Merging provided marker with existing marker in updateMarker method
|
2017-11-23 12:54:47 +01:00 |
|
Pavle Goloskokovic
|
8a4e439b55
|
Updated logging for addMarker method of BaseSound class
|
2017-11-23 12:52:19 +01:00 |
|
Pavle Goloskokovic
|
6c38853a6f
|
Added update marker method to BaseSound class
|
2017-11-23 12:41:41 +01:00 |
|
Pavle Goloskokovic
|
76a32e20c6
|
Fixed return values for addMarker method
|
2017-11-23 12:37:10 +01:00 |
|
Pavle Goloskokovic
|
1e213e6d86
|
Added validation for existing marker
|
2017-11-23 12:35:55 +01:00 |
|
Pavle Goloskokovic
|
de5689b129
|
Added validation for marker name
|
2017-11-23 12:34:43 +01:00 |
|
Pavle Goloskokovic
|
2bcffe6f2f
|
Merging provided marker with object with default values
|
2017-11-23 12:33:56 +01:00 |
|
Pavle Goloskokovic
|
6e8109d812
|
Merge remote-tracking branch 'origin/master'
|
2017-11-23 12:31:42 +01:00 |
|
Pavle Goloskokovic
|
40b4dc2e6e
|
Adding validation and error handling if no marker is passed
|
2017-11-23 12:31:34 +01:00 |
|
Pavle Goloskokovic
|
084d309efb
|
Adding market to markers array in addMarker method
|
2017-11-23 12:30:24 +01:00 |
|
Richard Davey
|
9516e6b188
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2017-11-23 01:46:02 +00:00 |
|
Richard Davey
|
08047bbdbb
|
Added the PointerConstraint and Factory methods (aka mouseSpring)
|
2017-11-23 01:45:58 +00:00 |
|
Richard Davey
|
dbad873236
|
Added support for beforeUpdate and afterUpdate world events
|
2017-11-23 01:45:38 +00:00 |
|
Richard Davey
|
b0f2b833c8
|
Removed two more un-needed files
|
2017-11-23 01:45:19 +00:00 |
|