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
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
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
Pavle Goloskokovic
7a4939d435
added isPaused field to BaseSound class
2017-11-17 14:51:23 +01:00
Richard Davey
ea989edca1
GameObjectCreator is now bootable and maintains its own display and update list references.
2017-11-17 13:30:53 +00:00
Richard Davey
6ccae5ec49
Particle Manager no longer uses BuildGameObject and instead manages its own addition to the system lists.
2017-11-17 13:30:29 +00:00
Richard Davey
d74018f3d0
Rogue null
check borked the creation of emitters when a null frame was specified.
2017-11-17 13:30:07 +00:00
Richard Davey
153d1a113a
Fixed factory name.
2017-11-17 13:29:33 +00:00
Richard Davey
f29d94356c
eslint tidy
2017-11-17 13:29:23 +00:00
Pavle Goloskokovic
0eca17520c
updated references in sound folder index.js
2017-11-17 14:18:22 +01:00
Pavle Goloskokovic
3828540ba4
moved web audio implementations into separate folder
2017-11-17 14:17:59 +01:00
Michael Hadley
b34d18e10c
World to Tile conversion on maps and layers - both accounting for camera scroll
2017-11-16 20:36:45 -06:00
Michael Hadley
205675c387
Tilemap: prevent methods from acting on a static tilemap layer & warn user
2017-11-16 19:58:35 -06:00
Michael Hadley
b34f8a9dcc
Associate tilemap layer data with the static or dynamic tilemap layer that "owns" it
...
This enforces 1x tilemap layer data <-> 1x static/dynamic tilemap layer and allows the Tilemap instance to look up the static/dynamic tilemap layer when needed.
2017-11-16 19:55:17 -06:00
Michael Hadley
83b7df2a73
Tilemap: destroy, removeAllLayers, setTileSize
2017-11-16 19:09:28 -06:00
Michael Hadley
63fb2e863f
Tilemap & layer: ReplaceByIndex, FindByIndex, SwapByIndex
2017-11-16 19:08:58 -06:00
Michael Hadley
4c306d60a7
Last Tileset API method to match v2
2017-11-16 15:25:45 -06:00
Michael Hadley
e6c6d1ddce
TIlemap & layers: GetTileAtWorldXY
2017-11-16 13:27:52 -06:00
Michael Hadley
c2268f3dee
PutTile, RemoveTile & Tile#Copy
2017-11-16 13:09:07 -06:00
Michael Hadley
2b08daff32
Tilemap: modularize empty map generators & add createBlankDynamicLayer
2017-11-16 11:44:24 -06:00
Pavle Goloskokovic
a62d8a0174
Merge remote-tracking branch 'origin/master'
2017-11-16 17:48:12 +01:00
Richard Davey
a60562a634
'add' shouldn't control the update state.
2017-11-16 16:47:13 +00:00
Pavle Goloskokovic
52e1cdf823
Merge remote-tracking branch 'origin/master'
2017-11-16 17:27:24 +01:00
Pavle Goloskokovic
f318aa7450
defined detune property on WebAudioSound prototype
2017-11-16 17:25:06 +01:00
Pavle Goloskokovic
e456ee716b
defined detune property on WebAudioSoundManager prototype
2017-11-16 17:24:20 +01:00
Pavle Goloskokovic
7d7d8a7c75
added _rate field to actually hold that value to WebAudioSoundManager
2017-11-16 17:23:26 +01:00
Pavle Goloskokovic
52cbffcf2e
added detune field to BaseSoundManager
2017-11-16 17:21:49 +01:00
Pavle Goloskokovic
8ede77ddce
setting detune value when applying config
2017-11-16 17:21:00 +01:00
Felipe Alfonso
579a1e5a26
Fixed binding null shader error. Particles can be used as mask without the need to render them to the screen
2017-11-16 12:47:23 -03:00
Pavle Goloskokovic
3a8c665fd6
added detune field for BaseSound class
2017-11-16 16:41:48 +01:00
Pavle Goloskokovic
a4b7eb0fe5
added duration description
2017-11-16 16:30:31 +01:00
Pavle Goloskokovic
dd17f6083f
moved sounds array declaration above other properties
2017-11-16 16:04:07 +01:00
Pavle Goloskokovic
372983a7e4
defined rate property on WebAudioSoundManager prototype
...
and _rate field to actually hold that value
2017-11-16 15:44:56 +01:00
Pavle Goloskokovic
716a1d4652
updated field descriptions for BaseSoundManager class
2017-11-16 15:23:35 +01:00
Pavle Goloskokovic
e38adfed79
updated description for rate property for BaseSound class
...
setting rate value when applying config
2017-11-16 15:23:04 +01:00
Pavle Goloskokovic
15367e813d
defined rate property on WebAudioSound prototype
2017-11-16 15:21:57 +01:00
Pavle Goloskokovic
e7177c5731
handling the case when only config object is passed to the play method
2017-11-16 14:54:08 +01:00
Pavle Goloskokovic
5796cd4bc8
moved setting current config reference before setting default values in BaseSound class
2017-11-16 14:29:28 +01:00
Pavle Goloskokovic
77880d1352
added missing methods to WebAudioSound class
2017-11-16 14:23:04 +01:00
Pavle Goloskokovic
872d93b788
moved validation ad marker logic from WebAudioSound class play method to BaseSound class play method
2017-11-16 14:19:04 +01:00
Pavle Goloskokovic
4c85ed62fe
Merge remote-tracking branch 'origin/master'
2017-11-16 13:32:49 +01:00
Pavle Goloskokovic
25bd3816c7
added applyConfig method to BaseSound class and calling it inside of WebAudioSound class play method
2017-11-16 13:32:35 +01:00
Twilrom
c304957714
Bugfix in DataStore
2017-11-16 13:17:06 +01:00
Twilrom
2b9c0f4cd3
Bugfix in deleteAll
2017-11-16 13:17:06 +01:00
Twilrom
6a38244bbe
This should probably use "removeAttribute", and we need to use typeof to check if a variable exists.
2017-11-16 13:17:06 +01:00
Twilrom
0770172664
Fix weird else statement
2017-11-16 13:17:06 +01:00
Pavle Goloskokovic
928487f7b1
setting current config value in property setters for WebAudioSound class
2017-11-16 13:09:43 +01:00
Michael Hadley
efae7f5796
DynamicTilemapLayer updates that should have been in the last commit
2017-11-15 20:16:43 -06:00
Michael Hadley
355d9accf3
More tilemap & layer fun: Copy, FIll, Randomize, Shuffle, GetTilesWithin
...
Note: methods that mutate the tiles are not installed on StaticTilemapLayer
2017-11-15 20:06:07 -06:00
Michael Hadley
db5cab8494
Fix: wrong sign for canvas translation
2017-11-15 19:15:12 -06:00
Richard Davey
1ac94f0aba
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-16 00:42:11 +00:00
Richard Davey
ccb2878102
Physics Group now added to the update list properly
2017-11-16 00:42:03 +00:00
Michael Hadley
b714e2afdf
Add methods for looping over & accessing groups of tiles to map & layers
2017-11-15 16:36:41 -06:00
Michael Hadley
74842aae1d
Tilemap & Layers: hasTileAt & better naming
2017-11-15 15:28:15 -06:00
Michael Hadley
1be6847a87
Tilemap: better naming, currentLayer -> currentLayerIndex
2017-11-15 15:05:11 -06:00
Michael Hadley
48f1e60743
Tilemap: reorder and add get/set layer
2017-11-15 14:55:26 -06:00
Michael Hadley
84a86ae0f7
Share GetTileAt across tilemap layers and tilemap
2017-11-15 13:50:56 -06:00
Felipe Alfonso
c3b31d7843
Small fix on BitmapMask rendering
2017-11-15 15:04:51 -03:00
Pavle Goloskokovic
165ce9011b
updated logic for using correct config when playing sound for WebAudioSound class
2017-11-15 18:12:11 +01:00
Pavle Goloskokovic
05d131236c
reversed the order of mute and volume logic to make code more consistent for WebAudioSoundManager class
2017-11-15 17:49:23 +01:00
Pavle Goloskokovic
18aa1653eb
reversed the order of mute and volume logic to make code more consistent for WebAudioSound class
2017-11-15 17:37:22 +01:00
Pavle Goloskokovic
0363116383
updated BaseSound fields docs
...
updated sound config initialization
2017-11-15 17:26:20 +01:00
Felipe Alfonso
62b2cad911
Geometry Mask Rendering
2017-11-15 13:09:07 -03:00
Pavle Goloskokovic
f11dcf3979
added source field for WebAudioSound class
2017-11-15 16:55:13 +01:00
Pavle Goloskokovic
2d91fe2d14
defined mute property on WebAudioSound prototype
2017-11-15 16:14:04 +01:00
Pavle Goloskokovic
049dd4aada
properly connect nodes for WebAudioSound class
2017-11-15 16:03:40 +01:00
Pavle Goloskokovic
9381ab0305
added muteNode field for WebAudioSound class
2017-11-15 16:02:11 +01:00
Pavle Goloskokovic
18ca26e50b
defined volume property on WebAudioSound prototype
...
connected properly WebAudioSound nodes
2017-11-15 15:58:38 +01:00
Pavle Goloskokovic
c4f09de225
added volumeNode field for WebAudioSound class
2017-11-15 15:42:37 +01:00
Pavle Goloskokovic
6811ba56a5
defined mute property on WebAudioSoundManager prototype
2017-11-15 15:31:24 +01:00
Pavle Goloskokovic
7a3b288219
added masterMuteNode field for WebAudioSoundManager class
2017-11-15 15:20:01 +01:00
Pavle Goloskokovic
e5a5ee847f
defined volume property on WebAudioSoundManager prototype
2017-11-15 15:11:37 +01:00
Pavle Goloskokovic
3820e75a5a
added destination property to WebAudioSoundManager class
...
setting destination to be master volume node and connecting mater volume node to context destination
connecting individual sounds to manager destination node instead of context destination
2017-11-15 14:46:12 +01:00
Pavle Goloskokovic
11c3b0a057
Merge remote-tracking branch 'origin/master'
2017-11-15 14:38:54 +01:00
Pavle Goloskokovic
031f40999e
added masterVolumeNode to WebAudioSoundManager class
2017-11-15 14:38:45 +01:00
Michael Hadley
6d1b17258b
Add flip capability to dynamic webgl & canvas tilemap renderers
2017-11-14 20:45:05 -06:00
Michael Hadley
6f4f571f98
Canvas tilemap layers: add alpha support
2017-11-14 16:13:07 -06:00
Michael Hadley
ece0bf7811
Tilemap layers WIP - both layers now use new Tile class
2017-11-14 15:35:18 -06:00
Michael Hadley
13ded52c6b
New Tile class to be shared across static and dynamic layers
2017-11-14 15:34:33 -06:00
Michael Hadley
3f08689c44
Tilemap parsers: remove width & height parameters since they are inferred
2017-11-14 15:33:13 -06:00
Michael Hadley
bf19553135
Tilemap parsers: add ability to insert null instead of blank tile
2017-11-14 15:02:19 -06:00
Pavle Goloskokovic
70a07ed793
fixed reference issue
...
added default value for WebAudioSound constructor config
2017-11-14 20:09:44 +01:00
Pavle Goloskokovic
82bcaaf6ca
Merge remote-tracking branch 'origin/master'
2017-11-14 19:35:38 +01:00
Pavle Goloskokovic
2ad39a9a47
added play method to WebAudioSound class
2017-11-14 19:35:18 +01:00
Pavle Goloskokovic
57c602de7f
added audio buffer property to WebAudioSound class
...
printing error if audio with provided key is not present in cache
updating config duration property based on audio buffer duration
2017-11-14 19:30:51 +01:00
Felipe Alfonso
0b91a9e95d
Fix RenderPass render target binding
2017-11-14 14:30:34 -03:00
Pavle Goloskokovic
cae01aacf1
added add method to WebAudioSoundManager class, put super constructor call at the top
2017-11-14 17:35:44 +01:00
Pavle Goloskokovic
2a5326f7a8
Merge remote-tracking branch 'origin/master'
2017-11-14 17:22:10 +01:00
Pavle Goloskokovic
ca1b81ae12
added sounds array initialisation
2017-11-14 17:21:58 +01:00
Richard Davey
a4eac003f6
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-14 16:06:58 +00:00
Richard Davey
97efeff751
Removed the Pool classes and Manager as Group can now take on this role
2017-11-14 16:06:56 +00:00
Pavle Goloskokovic
8bc6979c73
swapped properties initialization and base constructor call
2017-11-14 16:49:01 +01:00
Pavle Goloskokovic
98b51cea3d
added WebAudioSound class
2017-11-14 16:27:22 +01:00
Pavle Goloskokovic
ced54044e9
added return value to BaseSound addMarker method
2017-11-14 16:26:52 +01:00
Pavle Goloskokovic
22a4dac09c
Merge remote-tracking branch 'origin/master'
2017-11-14 16:00:42 +01:00
Pavle Goloskokovic
b5db604ae6
added BaseSound class
2017-11-14 16:00:24 +01:00
Richard Davey
ac4f05bc6e
Large Group refactor (which will break lots of examples)
...
Removed all of the Action helpers. It just bulks the class out and you can call them directly with Phaser.Actions anyway. Also added Pool support so you can now easily use a Group as an object pool, with fast recycling, creation, seeding and max sizes.
2017-11-13 23:32:14 +00:00
Richard Davey
b869618fb3
UpdateList returns the child added and checks before insertion
2017-11-13 23:31:13 +00:00
Pavle Goloskokovic
d43eb0de50
added basic methods and properties to the BaseSoundManager class
2017-11-13 19:39:32 +01:00
Felipe Alfonso
812638a966
BitmapMask WebGL Rendering Working
2017-11-13 14:21:34 -03:00
Richard Davey
3a9f663296
Beta 10 tag.
2017-11-13 12:27:52 +00:00
Pavle Goloskokovic
7d33534323
passing audio context to AudioFile constructor instead of sound manager
2017-11-13 13:19:07 +01:00
Richard Davey
3a14d6600e
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-13 01:04:48 +00:00
Richard Davey
a40f566a47
Exposed Arcade Physics in the namespace
2017-11-13 01:04:45 +00:00
Richard Davey
620c9d9771
Condensed collide check
2017-11-13 01:04:35 +00:00
Michael Hadley
a7424fa750
Progress on Tilemap - can now link tileset images and create layers
2017-11-11 10:38:52 -06:00
Richard Davey
beb652a6c8
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-11 03:52:26 +00:00
Richard Davey
1637272578
Body.setSize will now center the new body onto the gameobject by default (much easier to use!)
2017-11-11 03:52:23 +00:00
Richard Davey
ee9e6ef690
Particles with an alpha of zero are no longer rendered
2017-11-11 03:51:54 +00:00
Richard Davey
795a2fa2ed
Added getCenter to the Bounds component
2017-11-11 03:51:28 +00:00
Michael Hadley
780bd76c6f
Tilemap Parsers: refactor csv parser into csv parser + 2D array parser
2017-11-10 21:38:42 -06:00
Michael Hadley
1ba75cd50c
ParseTiledJSON eslint auto fix
2017-11-10 17:13:11 -06:00
Michael Hadley
f9f6d95097
Tilemap: json tiled parser from v2
2017-11-10 15:57:38 -06:00
Michael Hadley
249fe58bba
Tileset: tile lookup features
2017-11-10 15:56:14 -06:00
Michael Hadley
5d25e1043f
Add watch npm script for watching files & recompiling
2017-11-10 14:44:49 -06:00
Pavle Goloskokovic
0fe8757054
moved create method meant for instantiating global sound manager object form BaseSoundManager class to dedicated SoundManagerCreator class
...
moved setting local game reference from WebAudioSoundManager class to BaseSoundManager class constructor
fixed bug with audio context creation condition in WebAudioSoundManager class
2017-11-10 19:05:26 +01:00
Pavle Goloskokovic
5b6fb580b3
fixed a few bugs with AudioFile class
...
- _this and device audio references
- added logging for when audio is disabled or no supported urls are found
2017-11-10 18:54:08 +01:00
Pavle Goloskokovic
36ffb13fc7
changed cache key for storing audio data from sound to audio (see https://english.stackexchange.com/a/8425 )
2017-11-10 18:51:19 +01:00
Pavle Goloskokovic
77a3eb850b
handling audio decoding in onProcess method of AudioFile class
2017-11-10 14:38:04 +01:00
Pavle Goloskokovic
0b348f83ec
updated conditional logic for choosing correct sound manager and audio files implementation
2017-11-10 13:36:13 +01:00
Pavle Goloskokovic
24dfdb1e54
renamed SoundManager class to BaseSoundManager
2017-11-10 13:05:29 +01:00
Pavle Goloskokovic
73aa864914
added WebAudioSoundManager class
2017-11-10 12:55:32 +01:00
Michael Hadley
a76a6535e0
CSV tilemap parser & dummy tiled json parser
2017-11-09 20:50:25 -06:00
Michael Hadley
35ecba702b
Merge branch 'master' of https://github.com/photonstorm/phaser
2017-11-09 19:48:36 -06:00
Richard Davey
0ba9d5bf35
World is now using a process queue for the colliders
2017-11-09 23:56:28 +00:00
Richard Davey
733ef1cc87
Made velocity line smaller
2017-11-09 23:56:12 +00:00
Richard Davey
484669c4bb
Added new ProcessQueue struct for classes that need this pattern a lot
2017-11-09 23:55:59 +00:00
Michael Hadley
1b1bc41f81
Adding CSV & JSON tilemaps to BaseLoader
2017-11-09 12:21:06 -06:00
Michael Hadley
0804bf7595
Rename static & dynamic tilemaps -> tilemap layer
2017-11-09 12:18:23 -06:00
Richard Davey
f165acfe5f
Colliders can now be toggled from active to inactive.
...
Collider.destroy added (but needs doing in World too).
2017-11-09 17:10:33 +00:00
Richard Davey
b062e204dc
Added new Collider class. Allows you to create automatic collide and overlap checks and callbacks without needing an 'update' function in your Scene.
2017-11-09 17:03:58 +00:00
Richard Davey
0ee93393e3
CollideObjects now handles the total setting and returning.
2017-11-09 17:03:21 +00:00
Richard Davey
916e59ceb9
Uses new debug colors and reset now re-inserts into the static tree.
2017-11-09 16:32:31 +00:00
Richard Davey
ed72a55b24
Added new defaults for debug body colors.
2017-11-09 16:32:09 +00:00
Richard Davey
a7b93b3375
Tidying up and added physicsType.
2017-11-09 16:31:57 +00:00
Richard Davey
beee4b90cf
Now searches either the dynamic or static trees.
2017-11-09 16:31:39 +00:00
Richard Davey
adf7e39697
These objects no longer make their own bodies, it's left up to the Group or Factory classes.
2017-11-09 16:31:26 +00:00
Richard Davey
39a4525d08
Added a Static Physicss Group. A Group that contains only Static Bodies.
2017-11-09 16:31:09 +00:00
Richard Davey
548527928f
Refactored to add in the Utils methods and new static and dynamic body splits.
2017-11-09 15:32:46 +00:00
Richard Davey
92926037b5
Support both Dynamic and Static Body types now.
2017-11-09 15:32:45 +00:00
Richard Davey
12e2a80b1d
Added a new Static Body type to Arcade Physics. These exist in their own RTree which isn't destroyed every frame, allowing for much quicker searching.
2017-11-09 15:32:44 +00:00
Richard Davey
1e628c14d5
Fixed bias setting.
2017-11-09 15:32:44 +00:00