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
Richard Davey
4f7a02ef2e
Pointer.position is now a Vec2 and x/y references to it
2017-11-23 01:44:58 +00:00
Pavle Goloskokovic
f48c808698
Merge remote-tracking branch 'origin/master'
2017-11-22 18:13:54 +01:00
Richard Davey
8afa631a38
Added Ignore Gravity component
2017-11-22 17:11:09 +00:00
Pavle Goloskokovic
c1b0bc4ee7
Added a TODO for scheduled playback
2017-11-22 18:07:08 +01:00
Pavle Goloskokovic
068fc6d1c9
Renamed 'marker' param of play method to 'markerName' to avoid any confusion for WebAudioSound
2017-11-22 18:06:21 +01:00
Pavle Goloskokovic
d367dc1a85
Renamed 'marker' param of play method to 'markerName' to avoid any confusion for BaseSound
2017-11-22 18:05:18 +01:00
Pavle Goloskokovic
8e912ab877
Updated currentMarker property to hold reference to marker object instead it's name
2017-11-22 18:03:44 +01:00
Pavle Goloskokovic
55e5041ef8
Setting correct duration value when calling play on BaseSound class
2017-11-22 18:00:53 +01:00
Pavle Goloskokovic
de0aefba7e
Added default value for config in WebAudioSound constructor
2017-11-22 17:58:05 +01:00
Pavle Goloskokovic
9a143694d1
Using duration property instead of config duration setting in WebAudioSound
2017-11-22 17:56:55 +01:00
Pavle Goloskokovic
92abe3f678
Remove completed TODO
2017-11-22 17:54:38 +01:00
Pavle Goloskokovic
ffe4e49512
Setting duration and totalDuration properties in WebAudioSound constructor
2017-11-22 17:54:00 +01:00
Pavle Goloskokovic
90d2e8cf03
Removed setting duration setting in config for WebAudioSound
2017-11-22 17:51:10 +01:00
Pavle Goloskokovic
1296dd737d
Added totalDuration property to BaseSound class
2017-11-22 17:48:10 +01:00
Pavle Goloskokovic
f932e315d6
Added duration property to BaseSound class
2017-11-22 17:47:18 +01:00
Pavle Goloskokovic
7442ab5bc8
Removed duration setting from sound config
2017-11-22 17:45:57 +01:00
Pavle Goloskokovic
f4a1a30565
Merge remote-tracking branch 'origin/master'
2017-11-22 17:45:21 +01:00
Richard Davey
a69765d962
Removed un-needed file
2017-11-22 16:24:16 +00:00
Richard Davey
1067432174
Modified Matter source to add ignoreGravity option as it can't be monkey-patched in
2017-11-22 16:24:09 +00:00
Richard Davey
8add2510ac
Added Factory constraint functions
2017-11-22 16:23:47 +00:00
Richard Davey
f62409d83b
Matter objects now have a reference to the world in which they were added
2017-11-22 14:13:25 +00:00
Richard Davey
f88732cbb7
Added Sleep Start and Sleep End events
2017-11-22 14:13:10 +00:00
Richard Davey
d5a7579f26
Added new Sleep component
2017-11-22 14:12:57 +00:00
Richard Davey
b969dee104
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-22 02:25:44 +00:00
Richard Davey
1e399310b3
Added Stack to the Factory
2017-11-22 02:25:42 +00:00
Richard Davey
0543486d16
Added Matter collision events
2017-11-22 02:25:30 +00:00
Richard Davey
7609eb3131
Added new Matter Collision component
2017-11-22 02:25:06 +00:00
Michael Hadley
0fd6779107
Adding a couple notes about methods that manipulate multiple tiles
2017-11-21 19:19:13 -06:00
Michael Hadley
e19de28932
Tilemap & layers now recalc faces (with a parameter for disabling recalc)
2017-11-21 19:18:34 -06:00
Michael Hadley
bdea565586
Better optimized calc/recalc faces methods for tiles
...
These eliminate the need for the preventRecalc method from v2. If an individual tile is changed with putTileAt, only the min number of faces will be recalculated (vs all faces being recalculated in v2)
2017-11-21 19:16:46 -06:00
Michael Hadley
dd8bbfa625
Update SetCollision methods to track which indices have been set to collide
2017-11-21 19:13:43 -06:00
Michael Hadley
e3dbf7c2d0
Fixing internal method name typos
2017-11-21 19:07:22 -06:00
Felipe Alfonso
500da5d07f
Canvas GeometryMask rendering
2017-11-21 20:21:43 -03:00
Pavle Goloskokovic
cd43f0095c
fixed deprecation issues with AudioParam for WebAudioSoundManager
2017-11-21 19:47:43 +01:00
Pavle Goloskokovic
1f32f04036
fixed deprecation issues with AudioParam for WebAudioSound
2017-11-21 19:47:27 +01:00
Pavle Goloskokovic
658e8c0ee6
implemented onBlur and onFocus methods for WebAudioSoundManager
2017-11-21 18:09:30 +01:00
Pavle Goloskokovic
ab9a9c951f
bound onBlur and onFocus methods to corresponding game events
2017-11-21 18:06:18 +01:00
Pavle Goloskokovic
dd824c4a79
added onBlur and onFocus methods to BaseSoundManager
2017-11-21 18:04:54 +01:00
Pavle Goloskokovic
0e04036d1f
Merge remote-tracking branch 'origin/master'
2017-11-21 18:02:35 +01:00
Pavle Goloskokovic
f00421f112
changed muteOnPause flag to be pauseOnBlur for BaseSoundManager
2017-11-21 18:02:24 +01:00
Richard Davey
97e55b6aa2
Removed un-needed file.
2017-11-21 16:55:10 +00:00
Richard Davey
3a96caf2f6
Updated the entry point.
2017-11-21 16:55:02 +00:00
Richard Davey
46dc75f06b
New Matter World system, with new setBounds, setGravity, add, create and other helpers.
2017-11-21 16:54:54 +00:00
Richard Davey
4f00477f59
MatterImage and MatterSprite allow you to easily create Game Objects with embedded Matter physics bodies.
2017-11-21 16:54:20 +00:00
Richard Davey
32766ca509
New Matter system handler.
2017-11-21 16:53:55 +00:00
Richard Davey
4702ed7400
New components index.
2017-11-21 16:53:44 +00:00
Richard Davey
b9750bec9d
Updated the Factory so it now generates the new MatterImage and MatterSprite objects as well as basic geometry based bodies.
2017-11-21 16:53:36 +00:00
Richard Davey
1442a2605f
A custom module entry point that removes un-needed components.
2017-11-21 16:53:13 +00:00
Richard Davey
dff633cc62
Added the Bounce Matter component for an easier way to set restitution.
2017-11-21 16:52:54 +00:00
Richard Davey
2e11c18470
Added the Force Matter component including applyForce, forceFrom for a world position and thrust, thrustLeft, thrustRight and thrustBack.
2017-11-21 16:52:39 +00:00
Richard Davey
d8d9eb19c8
Added the Friction Matter component to set the static, air and normal friction a body receives.
2017-11-21 16:52:14 +00:00
Richard Davey
93d246e948
Added the Mass Matter component to set the mass and density of a body.
2017-11-21 16:51:54 +00:00
Richard Davey
a5e8d1e2d7
Added the Sensor Matter component.
2017-11-21 16:51:41 +00:00
Richard Davey
4a89ffa881
Added the Static Matter component to set a body as static if you don't specify it in the options config.
2017-11-21 16:51:33 +00:00
Richard Davey
d79e4a6e0c
Added the Transform Matter component allowing for body scaling and rotation feedback direct from and to the Body.
2017-11-21 16:51:14 +00:00
Richard Davey
12e43c315e
Added the Velocity Matter component
2017-11-21 16:50:56 +00:00
Pavle Goloskokovic
526df860d9
added method for unlocking audio context on mobile devices
2017-11-21 15:43:10 +01:00
Pavle Goloskokovic
6f79ba11e1
Merge remote-tracking branch 'origin/master'
2017-11-21 15:23:32 +01:00
Michael Hadley
105dc755ce
Tilemap & layers: optimized SetCollision methods
...
v2 was structured in a way where a full pass through ALL tiles would occur if SetCollisionBetween or SetCollisionByExclusion was used. That's a huge penalty for large tilemaps, so this version duplicates some loop code for the sake of speed.
2017-11-20 20:08:50 -06:00
Richard Davey
213b7b4a86
Refactoring matter.js include
2017-11-21 02:04:05 +00:00
Richard Davey
fb83d6dab5
Starting merge of Matter JS.
2017-11-20 16:54:26 +00:00
Pavle Goloskokovic
cafa91005f
updated description for detune setting and added a check to see if it's available, webkit implementation does not support it
2017-11-20 14:54:33 +01:00
Michael Hadley
21584f922c
Fix for last commit
2017-11-18 16:11:51 -06:00
Michael Hadley
3f14382951
Make naming consistent for accessing individual tiles (e.g. getTile vs getTileAt)
2017-11-18 15:41:26 -06:00
Michael Hadley
759252a078
Better handling of resizing a tilemap
...
Force the tilesets and tiles to inherit their tile size from the tilemap
2017-11-18 15:40:27 -06:00
Michael Hadley
e2960486a9
Filling out Tile with some methods & props from v2
2017-11-18 15:38:46 -06:00
Michael Hadley
b48d82daee
Format name typo
2017-11-18 08:41:57 -06:00
Michael Hadley
d2f72fbe58
Create CullTiles component to allow static and dynamic layers to cull when needed
...
Fixes performance issue with canvas static tile renderer on large maps
2017-11-18 08:31:59 -06:00
Michael Hadley
b5fb0b8879
Refactor in order to update TilemapCreator & TilemapFactory
2017-11-17 15:55:12 -06:00
Michael Hadley
f82217e868
Move Parse to tilemap/Parse
2017-11-17 15:54:18 -06:00
Michael Hadley
49854bfd1b
Format Typo
2017-11-17 15:49:32 -06:00
Michael Hadley
6da642bd99
Set alpha in dynamic layer canvas renderer
...
Set it directly because of the explicit save/restore commands throw the renderer's internal alpha out-of-sync
2017-11-17 15:31:41 -06:00
Felipe Alfonso
320c0902f6
Small fixes with texture binding to MaskRenderer and WebGLRenderer.
2017-11-17 18:01:06 -03:00
Michael Hadley
5535af2a17
Bug fix: tilemap layer renderer didn't account for layer xy position
2017-11-17 13:53:11 -06:00
Michael Hadley
09ed883f4d
Remove old todos in static layer
2017-11-17 13:52:32 -06:00
Michael Hadley
b8e8d9d3aa
Made data structure for maps and layers more explicit via classes & default props
2017-11-17 13:16:39 -06:00
Richard Davey
7a2b970bb1
Added SetTint (and Shuffle into the index)
2017-11-17 18:29:51 +00:00
Richard Davey
5f1c022866
lint fix
2017-11-17 18:29:50 +00:00
Richard Davey
1d68b5feb7
Set the default values in case there is a delay (stops getValue returning wrong value)
2017-11-17 18:29:49 +00:00
Richard Davey
52bb930cdf
Abort if distance is zero.
2017-11-17 18:29:49 +00:00
Pavle Goloskokovic
82083897aa
updated source stopping logic for WebAudioSound class
2017-11-17 18:38:23 +01:00
Pavle Goloskokovic
6897d6567b
updated checks in playback control methods for BaseSound class
2017-11-17 18:37:49 +01:00
Pavle Goloskokovic
8aafefa6c2
Merge remote-tracking branch 'origin/master'
2017-11-17 17:34:21 +01:00
Pavle Goloskokovic
6577a232a1
adding flag to WebAudioSoundManager indicating if Web Audio implementation is webkit or standards based
2017-11-17 17:30:29 +01:00
Pavle Goloskokovic
9098b806b2
added checks to playback control methods for WebAudioSound
2017-11-17 17:17:06 +01:00
Pavle Goloskokovic
40c4b9f6e5
added checks to playback control methods for BaseSound class
2017-11-17 17:16:06 +01:00
Pavle Goloskokovic
720d2a9665
moved source buffer stopping and removing to separate method for reuse
2017-11-17 17:07:04 +01:00
Pavle Goloskokovic
a6fcb4cf53
added a couple of TODOs
2017-11-17 17:02:11 +01:00
Pavle Goloskokovic
478656df98
moved source buffer creation and starting to separate method for reuse
2017-11-17 17:01:12 +01:00
Richard Davey
fd4f08e4a7
Updated to latest release of matter-js.
2017-11-17 15:29:37 +00:00
Richard Davey
56249c8272
Merge pull request #3091 from Twilrom/bugfixes
...
Bugfixes
2017-11-17 15:23:27 +00:00
Pavle Goloskokovic
e6f17744b6
handling source buffer on method calls for WebAudioSound
2017-11-17 16:16:01 +01:00
Pavle Goloskokovic
7b90fc7f90
updating pausedTime value on method calls for WebAudioSound
2017-11-17 15:42:22 +01:00
Pavle Goloskokovic
f7f5bebd72
added pausedTime field to WebAudioSound class
2017-11-17 15:33:42 +01:00
Pavle Goloskokovic
f1a15571ff
setting startTime to context current time on play for WebAudioSound
2017-11-17 15:29:49 +01:00
Pavle Goloskokovic
7f0930eec0
stopping source buffer if sound is already playing on play for WebAudioSound
2017-11-17 15:28:27 +01:00
Pavle Goloskokovic
ead02ec186
added super calls to pause and resume methods for WebAudioSound
2017-11-17 15:23:52 +01:00
Pavle Goloskokovic
d1fcc39fd3
setting playback flags to correct values on resume call for BaseSound
2017-11-17 15:18:51 +01:00
Pavle Goloskokovic
1d7d488e68
setting playback flags to correct values on pause call for BaseSound
2017-11-17 15:16:25 +01:00
Pavle Goloskokovic
c5436c7fcc
setting playback flags to correct values on play call for BaseSound
2017-11-17 15:14:57 +01:00
Pavle Goloskokovic
a9692ce2dd
stopping source and resetting fields on stop call for WebAudioSound
2017-11-17 15:05:17 +01:00
Pavle Goloskokovic
38a8ce378d
resetting flags on stop call for BaseSound
2017-11-17 15:03:59 +01:00
Michael Hadley
3266974ea0
Tilemap & layer WorldXY methods: get, has, put, remove
2017-11-17 07:58:33 -06:00
Pavle Goloskokovic
0d1fb8a15e
added startTime field to WebAudioSound class
2017-11-17 14:57:57 +01:00