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