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
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
Richard Davey
d20b7abba6
Beta 11 tag.
2017-11-20 11:16:52 +00: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