Commit graph

5812 commits

Author SHA1 Message Date
Richard Davey
f02eb5874f Marked all Tilemap components as private 2018-04-16 15:25:22 +01:00
Richard Davey
52c6a3cdb5 Updated jsdocs 2018-04-16 15:17:10 +01:00
Richard Davey
b392dee5a9 More jsdoc fixes 2018-04-16 15:11:51 +01:00
Richard Davey
18585de81d Lots of jsdoc fixes 2018-04-16 14:43:24 +01:00
iamchristopher
8e15d3ca31 Merge branch 'master' into feature-multi-image-loader 2018-04-15 19:35:41 -04:00
Richard Davey
0b73d4e9f5
Merge pull request #3573 from samme/misc/group
Group fixes/changes
2018-04-15 23:20:06 +01:00
Richard Davey
bd023c20df Clear listeners on shutdown, tighten up the flow and allow you to remove a scene after transition 2018-04-15 23:14:56 +01:00
Richard Davey
3c5eab9ee6 Exposed Effects 2018-04-15 23:14:34 +01:00
samme
821fff02b5 Group fixes/changes:
- remove() rejects non-members
- createMultiple() stops creating objects if the Group becomes full
- isFull() returns true if the group size *exceeds* maxSize
- Group() calls createMultiple() only if config.key was passed
2018-04-15 10:38:50 -07:00
Richard Davey
ce7d67297f Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions 2018-04-15 12:44:47 +01:00
Richard Davey
02be81cc48 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-15 05:05:09 +01:00
Richard Davey
e37b183038 Completed all jsdocs for the Camera class 2018-04-15 05:05:03 +01:00
Richard Davey
ae603240e1 Camera.cullHitTest has been removed. It was never used internally and duplicates the code in Camera.cull. 2018-04-15 04:01:39 +01:00
Richard Davey
84a7b260b3 New flash effect added 2018-04-15 04:00:21 +01:00
Richard Davey
f8d5a7de75 Added more docs and changed default time to 250ms 2018-04-15 03:59:58 +01:00
Pavle Goloskokovic
d87daba379 Merge remote-tracking branch 'origin/master' 2018-04-14 18:56:45 +02:00
Pavle Goloskokovic
ee5c56cdc3 Instantiating lockedActionsQueue only when used 2018-04-14 18:56:36 +02:00
Pavle Goloskokovic
44a377f83c Using tag data for checking if the sound is locked instead of global flag 2018-04-14 18:55:52 +02:00
Pavle Goloskokovic
e86e09a6b3 In an edge case if a marker has duration set to 0 (weird :P) we don't want to update sound duration 2018-04-14 18:55:02 +02:00
Pavle Goloskokovic
920e083a8a Updating sound duration only if it is not set yet (equal to 0) 2018-04-14 18:54:01 +02:00
Pavle Goloskokovic
d664a7d4a6 Marking all locked audio tags as unlocked after loading finishes 2018-04-14 18:52:43 +02:00
Pavle Goloskokovic
5efa219adc Removed redundant condition 2018-04-14 18:51:21 +02:00
Pavle Goloskokovic
2167654009 Skipping unlocking logic if there are no locked tags 2018-04-14 18:50:28 +02:00
Pavle Goloskokovic
fa07dc76e9 Removed unused argument from the docs 2018-04-14 18:49:14 +02:00
Pavle Goloskokovic
f8ebcf0588 Removed unnecessary argument 2018-04-14 18:48:22 +02:00
Pavle Goloskokovic
9125f559c2 Collecting only locked audio tags for unlocking 2018-04-14 18:47:39 +02:00
Pavle Goloskokovic
b4aaf81db7 Storing data on each audio tag if it is locked (ont yet loaded) 2018-04-14 18:46:09 +02:00
Pavle Goloskokovic
1c294d5921 Calculating locally if audio is locked instead of getting that data passed as a constructor argument 2018-04-14 18:44:47 +02:00
Richard Davey
595e43aa8b Added new Camera effects system 2018-04-14 17:39:43 +01:00
Richard Davey
205502a747 Prevent double-destroy from happening. Fix #3569 (however, Game.destroy now fails elsewhere) 2018-04-14 17:39:24 +01:00
Richard Davey
380d4afb92 Swapping to new camera effects system 2018-04-14 17:38:48 +01:00
Richard Davey
855f38c649 typo 2018-04-14 17:38:20 +01:00
Pavle Goloskokovic
43e3dc424e Renamed allTags to lockedTags 2018-04-14 18:00:23 +02:00
Pavle Goloskokovic
04c842f749 Checking if audio is locked each time unlock method is called and skipping it in case it is not 2018-04-14 17:51:31 +02:00
Pavle Goloskokovic
c2d661f600 Unlocking Web Audio sound manager immediately in its constructor 2018-04-14 17:48:55 +02:00
Pavle Goloskokovic
403f5b3e33 Not unlocking sound manager by default in base class 2018-04-14 17:48:16 +02:00
Pavle Goloskokovic
433247f515 Unlocking sound manager after preloading any scene when using HTML5 audio 2018-04-14 17:47:29 +02:00
Richard Davey
1a51e859dd New Camera Shake effect class 2018-04-14 12:35:39 +01:00
Richard Davey
a56465fdad jsdoc tweak 2018-04-14 12:35:28 +01:00
Richard Davey
06e5fc0336 Camera extends Event Emitter and moved to effect based system 2018-04-14 12:35:14 +01:00
Richard Davey
2b4e5ecd23 Is scene is asleep, wake it rather than start it 2018-04-14 04:28:39 +01:00
Richard Davey
b519e24279 lint fix 2018-04-14 04:27:39 +01:00
Richard Davey
a4e45a9458 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-14 04:24:27 +01:00
Richard Davey
352ec91bb5 New methods to determine if a Scene is transitioning 2018-04-14 04:24:21 +01:00
Richard Davey
2a73964399 Added new transition properties 2018-04-14 04:24:05 +01:00
Richard Davey
370fbdd5f2 Added transition progress, sleep support and better checking 2018-04-14 04:23:57 +01:00
Richard Davey
2698fe1b58 Clear out the transition events 2018-04-14 04:23:24 +01:00
Richard Davey
b5ba6a6afb Added enabled property 2018-04-14 04:23:11 +01:00
Felipe Alfonso
1058cff4c8 Fixed issue with inverted coordinates on render texture 2018-04-13 17:33:43 -03:00
Richard Davey
616d17fa83 Sorted out the scene event order, targets and callbacks 2018-04-13 20:12:29 +01:00
Travis O'Neal
620585a57c Added array shuffle method 2018-04-13 14:23:48 -04:00
Richard Davey
cfb1826da9 Added new test feature 2018-04-13 18:59:00 +01:00
Richard Davey
18a6cf8ad1 eslint fixes 2018-04-13 18:09:16 +01:00
Richard Davey
a01535ea78 Group.add and Group.addMultiple now respect the Group.maxSize property, stopping you from over-populating a Group. 2018-04-13 17:59:29 +01:00
Richard Davey
01d3b7d6dc Missed out the config 2018-04-13 17:44:06 +01:00
Richard Davey
3490b29082 Tidying up 2018-04-13 17:43:56 +01:00
Richard Davey
be29c69a8c Disable pointer constraint debug by default 2018-04-13 17:43:44 +01:00
Richard Davey
0aba433379 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-13 17:20:51 +01:00
Richard Davey
59bc9dd0d9 Added GameObject.ignoreDestroy 2018-04-13 17:20:46 +01:00
Richard Davey
6b2307594a Scene plugin flow overhaul
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Richard Davey
44aff6548d Proper indent 2018-04-13 17:05:59 +01:00
Richard Davey
1a2b9d92f9 Addd new core test build 2018-04-13 17:05:45 +01:00
Richard Davey
69bfdd5103 Mmm, pizza 2018-04-13 17:05:24 +01:00
Richard Davey
6b18942d13 Fake Zone callback update 2018-04-13 17:05:07 +01:00
Felipe Alfonso
d3beb043e2 Added parent to game objects that called CanvasPool.create2D 2018-04-13 12:48:34 -03:00
Nils Plaschke
6d0b7e91ab Added additional check for node
If `process` is defined, but it has no `versions` property the check will fail with an error.
The detection of node is not working properly.
In my case I have embedded phaser into a vue-cli@3 application, which is technically node but has no `versions` property.

This fixes the problem
2018-04-13 15:22:59 +02:00
Richard Davey
c8bbea552d Fixed issue in HTMLAudioSound where mute would get into a recursive loop. 2018-04-13 12:53:03 +01:00
Richard Davey
623df29522 The Scene Manager would never reach an isBooted state if you didn't add any Scenes into the Game Config. Fix #3553 2018-04-13 12:24:02 +01:00
Richard Davey
52fcf7e7c1
Merge pull request #3557 from Antriel/master
Fix Animation component update()
2018-04-13 12:14:21 +01:00
Richard Davey
8000f9298d
Merge pull request #3554 from samme/docs/group
Add descriptions for Phaser.GameObjects.Group
2018-04-13 12:12:01 +01:00
Richard Davey
237732752f
Merge pull request #3559 from Antriel/dynamic-bitmaptext-fix
Add missing letterSpacing to DynamicBitmapText
2018-04-13 12:08:27 +01:00
Richard Davey
8afa6c9c7f MatterEvents.off() would cause a TypeError if you destroyed the Matter world. Fix #3562 2018-04-13 12:07:27 +01:00
Antriel
6be6f17bfd Add missing letterSpacing to DynamicBitmapText 2018-04-13 10:50:18 +02:00
Antriel
b52707f79d Fix Animation component pause() 2018-04-13 09:58:33 +02:00
samme
470d2bc08a Add descriptions for Phaser.GameObjects.Group 2018-04-12 20:10:03 -07:00
Richard Davey
9cfda8a7b0 Preparing for 3.4.1 dev 2018-04-12 23:52:11 +01:00
Richard Davey
a6ef9e09dd Shorter warning 2018-04-12 23:12:23 +01:00
Richard Davey
703f04025b Added warning to docs 2018-04-12 22:49:02 +01:00
Richard Davey
5612336d47 Containers flag 2018-04-12 22:46:46 +01:00
Richard Davey
1802f8b30b GetBounds getTopLeft, getTopRight, getBottomLeft and getBottomRight all have a new optional argument includeParent which will factor in all ancestor transforms to the returned point. 2018-04-12 17:42:16 +01:00
Richard Davey
2e722b0a92 debugging tests 2018-04-12 16:28:14 +01:00
Richard Davey
9269aa7a73 Swapped to using public properties 2018-04-12 16:28:05 +01:00
Richard Davey
efe6330a01 Added scaleX/Y getters 2018-04-12 16:27:55 +01:00
Richard Davey
112a1eabb5 Typo 2018-04-12 14:25:52 +01:00
Richard Davey
f13bbca9c3 Fix getWorldBounds clash 2018-04-12 14:25:46 +01:00
Richard Davey
c57112414a eslint override 2018-04-12 02:18:01 +01:00
Richard Davey
ad4109aece Updated sortHandlerGO to handle any depth containers. 2018-04-12 02:11:40 +01:00
Richard Davey
9c0c037d79 Added getIndexList method. 2018-04-12 02:11:17 +01:00
Richard Davey
38626f8556 Added originX/Y properties. Fix #3545 2018-04-11 21:07:41 +01:00
iamchristopher
135db3089e Fixed linting issue 2018-04-11 15:03:18 -04:00
iamchristopher
95e44527c5 Merge remote-tracking branch 'upstream/master' into feature-multi-image-loader 2018-04-11 14:03:18 -04:00
Richard Davey
68d2526d69 Limit fix 2018-04-11 17:12:40 +01:00
Richard Davey
223c94a783 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-11 16:58:52 +01:00
Richard Davey
0e14b43623 Added maxSize, jsdocs and ts def fixes 2018-04-11 16:58:48 +01:00
Richard Davey
9bc6237831 TS defs fix 2018-04-11 16:58:32 +01:00
Richard Davey
64b07c6ecb eslint fix 2018-04-11 16:58:25 +01:00
Felipe Alfonso
5e2699f1a4 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-11 12:55:54 -03:00
Felipe Alfonso
23cd9868b4 Added getWorldTransformMatrix to Container and added support to parent container transform to GetBounds component. 2018-04-11 12:55:32 -03:00
Richard Davey
a1e10a4bbc Added missing extends and removed setSF because defaults are 1,1 anyway 2018-04-11 15:39:30 +01:00
Felipe Alfonso
091d947eae Container scroll factor implemented to the render functions 2018-04-11 11:02:04 -03:00
Richard Davey
53425bdae9 Matter Image and Matter Sprite didn't define a destroy method, causing an error when trying to destroy the parent Game Object. Fix #3516 2018-04-11 14:35:18 +01:00
Richard Davey
70c7732a1e When shutting down a Matter World it will now call MatterEvents.off, clearing all events, and also removeAllListeners for any local events. 2018-04-11 14:00:58 +01:00
Richard Davey
011e67d0f0 The Matter SetBody Component will no longer try to call setOrigin unless the Game Object has the origin component (which not all do, like Graphics and Container) 2018-04-11 13:47:22 +01:00
Richard Davey
30d73a0197 Container can now be assigned an arcade physics body 2018-04-11 13:37:38 +01:00
Richard Davey
f80db91429 Allowing to work with Containers 2018-04-11 13:17:53 +01:00
Richard Davey
276ae03aff TODO 2018-04-11 13:17:42 +01:00
Richard Davey
e2a0a4a5a7 Start of getBounds 2018-04-11 13:17:35 +01:00
Richard Davey
2c37ce106d Added default TMs 2018-04-11 13:17:26 +01:00
Richard Davey
9eeef7e33e lint 2018-04-11 13:17:16 +01:00
Richard Davey
ffd1d218e6 Rectangle.Union will now cache all vars internally so you can use one of the input rectangles as the output rectangle without corrupting it. 2018-04-11 12:44:37 +01:00
Richard Davey
60cd5ab22b Tighter dropzone test and container warning 2018-04-11 11:25:31 +01:00
Richard Davey
e135f132d9 Added missing properties needed for input to work 2018-04-11 11:25:11 +01:00
Richard Davey
7aae84a790 Calling Impact.World.remove(body) during a Body.updateCallback would cause the internal loop to crash when trying to access a now missing body. Two extra checks are in place to avoid this 2018-04-11 10:39:20 +01:00
Richard Davey
f425cfb925
Merge branch 'master' into scene-config-for-add-map 2018-04-11 10:28:28 +01:00
Richard Davey
bca3df1064
Merge pull request #3541 from josephjaniga/staticbody-offset
[bugfix] StaticBody.setOffset fix for issue #3465
2018-04-11 10:20:55 +01:00
Richard Davey
2df61ab96b
Merge pull request #3543 from rexrainbow/master
Add 'destroy' event of sound object
2018-04-11 10:14:55 +01:00
Hua
cd42ce981a Add destroy event of sound object
Add destroy event of sound object
2018-04-11 16:29:29 +08:00
jdotrjs
6c6d5f4aa1 somebody forgot their ;s 2018-04-10 23:49:46 -07:00
jdotrjs
d089e16345 [fixes #3535] Fix constructed bounding box functions for RTree
The previous patch didn't take into account that the accessors passed
in as the format array were dot-prefixed due to the previous eval-based
construction.

The only two uses of RTree that I found were in World.js:

```javascript
        this.tree = new RTree(this.maxEntries, [ '.left', '.top', '.right', '.bottom' ]);
        this.staticTree = new RTree(this.maxEntries, [ '.left', '.top', '.right', '.bottom' ]);
```

It's likely that this could be updated to just not pass dotted attribute
names but I wasn't super comfortable that they weren't needed in this form
elsewhere despite a quick search. I'd honestly say that it might be a better
change if we remove the dots before merge but I'll leave that up to the
discretion of the reviewers/merger.

I'm not super familiar with Phaser's style but I passed lint sooo :D

Buyer beware: the only testing I did was on the repo case I left in the
bug and I did not verify that this is still within the twitch CSP (though
it should be).
2018-04-10 23:11:14 -07:00
Joe Janiga
8ee9805596 work in progress on Static Body offset functionality... should Sprite.setPosition(x,y) effect Sprites static body? 2018-04-11 00:16:08 -04:00
Richard Davey
86abef20c2
Merge pull request #3537 from Antriel/master
fix Timeline#destroy
2018-04-11 01:17:54 +01:00
Sean Bohan
b6480a0db7 Fix animationcomplete event name typo 2018-04-11 04:51:34 +08:00
Felipe Alfonso
14a651e509 Fixed inverted rotation on TransformMatrix 2018-04-10 14:13:23 -03:00
Richard Davey
1fa909081c eslint fixes 2018-04-10 17:35:14 +01:00
Felipe Alfonso
1eaee870c7 Set rotation of container to be negative at render time. Removed unnecessary call to multiply on TransformMatrix rotate 2018-04-10 13:25:13 -03:00
Richard Davey
be7b52b1b9 No longer extends List, but implements its own methods directly. 2018-04-10 15:21:46 +01:00
Richard Davey
82e99bf130 All now using SafeRange to cut down on duplicated code 2018-04-10 15:21:30 +01:00
Richard Davey
9fb1a72b70 Typo 2018-04-10 15:21:10 +01:00
Richard Davey
68ef6f8630 Removed parentContainer reference 2018-04-10 15:21:04 +01:00
Richard Davey
bf81a7dd06 TransformMatrix.destroy is a new method that will clear out the array and object used by a Matrix internally. 2018-04-10 15:20:50 +01:00
Antriel
47dc14079b fix Timeline#destroy 2018-04-10 14:19:51 +02:00
Richard Davey
cdfe2e0ea2 Fixed references 2018-04-10 04:13:38 +01:00
Richard Davey
a6303aad8c Renamed files 2018-04-10 04:01:24 +01:00
Richard Davey
330eac1ebc List is now internally using all of the new Utils.Array functions. 2018-04-10 04:00:39 +01:00
Sebastian Warmbrunn
968c0a3aec Add typedef for new scene config option mapAdd
Also add a description for mapAdd and map config options.
2018-04-09 21:32:19 +02:00
Sebastian Warmbrunn
593245742e Add a config to merge keys into scene InjectionMap
This way the defaults of the scene injection map are kept and the user
is able to merge with those defaults.
2018-04-09 21:16:45 +02:00
Richard Davey
3c5d3db267 Testing exclusive setting 2018-04-09 17:33:55 +01:00
Richard Davey
ca2a575726 Added jsdocs 2018-04-09 16:46:03 +01:00
Richard Davey
12b6b26838 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-09 16:43:37 +01:00
Richard Davey
04990d6870 Input checks for container parents 2018-04-09 16:42:51 +01:00
Richard Davey
5c69bd054e Added property getters 2018-04-09 16:42:33 +01:00
Felipe Alfonso
9d39bd7b45 Container alpha added 2018-04-09 12:32:08 -03:00
Richard Davey
381963c014 Removed localToWorld (no longer needed) 2018-04-09 16:01:16 +01:00
Richard Davey
d15d910778 Removed camera.cullTilemap because nothing uses it any more 2018-04-09 16:00:33 +01:00
Richard Davey
5c89c9900c BaseSound.config now contains all defaults. Fix #3525 2018-04-09 14:09:04 +01:00
Richard Davey
5f9972c791 LoaderPlugin.isReady referenced a constant that no longer exists. Fix #3503 2018-04-09 13:55:41 +01:00
Richard Davey
c7037628e2 Fixed lint error 2018-04-09 13:48:11 +01:00
Richard Davey
833355a9a4 Tween.resume will now call Tween.play on a tween that was paused due to its config object, not as a result of having its paused method called. Fix #3452 2018-04-09 13:25:20 +01:00
Richard Davey
ca2097f4e2 Recoded how the boot data and processing works to allow for more flexibility when setting-up scenes. Updates #3470 2018-04-09 12:57:47 +01:00
Richard Davey
66a9bec9bb Only set data if it's not undefined. 2018-04-09 12:57:03 +01:00
Richard Davey
bf368ab70b ScenePlugin.restart allows you to restart the current Scene. It's the same result as calling ScenePlugin.start without any arguments, but is more clear. 2018-04-09 12:56:28 +01:00
Richard Davey
825d7d8a76
Merge branch 'master' into master 2018-04-09 10:27:13 +01:00
Richard Davey
a0dcfdd3fc
Merge pull request #3470 from pixelhijack/fix-issue-3363
[ISSUE #3363] Phaser Scene - passing data to scene init & create methods
2018-04-09 10:20:57 +01:00
Richard Davey
20aeff9a12
Merge pull request #3521 from mchiasson/patch-1
closes #3520
2018-04-09 10:11:35 +01:00
Matt Chiasson
abfd2440a0
fixed travis failure 2018-04-08 21:01:48 -04:00
Evan Cobb
4270660c31 adding documentation to some files with only one [description] tag 2018-04-08 14:13:02 -05:00
Richard Davey
12d27518da
Merge pull request #3522 from icbat/master
documenting UppercaseFirst
2018-04-08 17:04:29 +01:00
Richard Davey
70bedbdce0 Check if animation exists 2018-04-08 17:01:43 +01:00
Evan Cobb
12c521d4d7 documenting UppercaseFirst 2018-04-07 17:18:30 -05:00
Matt Chiasson
5f7d3fa4a1
closes #3520
Phaser.Display.Canvas.CanvasPool.first now returns the available pool item instead of always returning null.
2018-04-07 17:51:51 -04:00
Richard Davey
b7ae0295bc No need to use globalAlpha or run fillRect twice. 2018-04-07 17:52:10 +01:00
Richard Davey
37eb938d99
Merge pull request #3518 from PaNaVTEC/typescript-definitions
Add KeyboardManager#createCursorKeys typedefs
2018-04-07 16:26:08 +01:00
Richard Davey
b3a20d475a Removed null and updated log 2018-04-07 16:18:48 +01:00
Richard Davey
041f0c5468
Merge pull request #3513 from mkimmet/master
Added missing physics property to GameConfig
2018-04-07 16:17:39 +01:00
Richard Davey
9e0f113c92 Added jsdocs 2018-04-07 16:16:03 +01:00
Richard Davey
67132a65ba
Merge pull request #3512 from icbat/master
filling in most of the jsdocs for GetFastValue and SpriteSheetFromAtlas
2018-04-07 16:13:23 +01:00
Richard Davey
cc1dba4ba9
Merge pull request #3511 from hexus/fix/graphics-generate-texture
Fixed renderCanvas() call in Graphics.generateTexture()
2018-04-07 16:09:32 +01:00
Richard Davey
d1788d8a4c Updated jsdocs 2018-04-07 15:58:08 +01:00
Richard Davey
777325c046 Removed callbacks, added events and added new stop methods 2018-04-07 12:36:35 +01:00
Richard Davey
c2edab2d7b Removed all animation callbacks and added events 2018-04-07 12:36:11 +01:00
Richard Davey
daa2236998 Removed onUpdate 2018-04-07 12:35:51 +01:00
Christian Panadero
c08f769351 Add keyboardManaged#createCursorKeys typedefs 2018-04-06 18:17:58 +01:00
Richard Davey
e0dc28e4ba Fixed lint errors and added jsdocs 2018-04-06 11:15:15 +01:00
iamchristopher
e538a597b3 Updated ImageFile argument types 2018-04-05 20:42:32 -04:00
iamchristopher
a65cd41852 Added ImageFile argument descriptions 2018-04-05 20:34:49 -04:00
iamchristopher
9155149012 Added example multi image load 2018-04-05 20:15:56 -04:00
iamchristopher
661f9fd29e Fixed loading normals with multi image load 2018-04-05 20:12:58 -04:00
Mark
e54e30ee0b
Added missing physics property to GameConfig
The typescript typings for GameConfig are missing the physics property, so I added it.
2018-04-05 17:26:08 -04:00
Chris Andrew
f70f92b038 Fixed explicit check for undefined GraphicsCanvasRenderer's parentMatrix, which meant null could not be passed as an argument. 2018-04-05 21:07:45 +01:00
Evan
582a742373 filling in most of the jsdocs for GetFastValue and SpriteSheetFromAtlas 2018-04-05 14:21:40 -05:00
Chris Andrew
9293891c82 Fixed renderCanvas() call in Graphics.generateTexture().
Introduced by altering the signature of the Canvas renderers (c232642a).
2018-04-05 19:08:54 +01:00
Felipe Alfonso
0e401bb6fe Fixed order on getWorldTransformMatrix 2018-04-05 14:11:48 -03:00
Richard Davey
eb0f3c3ec1 Added missing Container components 2018-04-05 16:53:40 +01:00
Richard Davey
da6db3f29e Added transform methods 2018-04-05 16:50:37 +01:00
Richard Davey
c3ba80c4e5 Added jsdocs 2018-04-05 16:50:21 +01:00
Richard Davey
7e64b4d624 Automatically remove from display list 2018-04-05 15:28:34 +01:00
Richard Davey
ae8706a424 Added missing callback 2018-04-05 15:28:22 +01:00
Richard Davey
fb04cd4869 Containers are now exclusive 2018-04-05 14:59:57 +01:00
Richard Davey
183896f8ff Added parentContainer property 2018-04-05 14:56:43 +01:00
Richard Davey
e31cae93d2 Tilemap Layers should use the ComputedSize component 2018-04-05 14:43:07 +01:00
Richard Davey
1a67945079 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-05 13:52:49 +01:00
Richard Davey
13df64c01f Extends List 2018-04-05 13:52:42 +01:00
Richard Davey
6ccb0f2dc4 Accepts optional children array 2018-04-05 13:52:24 +01:00
Richard Davey
e0f95bb3fa Now using proper array 2018-04-05 13:52:11 +01:00
Richard Davey
a44fcb6ad6 Added addCallback, removeCallback and skipCallback arguments 2018-04-05 13:51:57 +01:00
Richard Davey
ba4693d140 jsdoc fix 2018-04-05 13:51:37 +01:00
Richard Davey
8d37273d8a
Merge pull request #3509 from delftswa2018/line_getPointA&B_fix
Line.PointA&B fix
2018-04-05 11:26:06 +01:00
Richard Davey
85671883e8 Tidying up 2018-04-05 11:25:22 +01:00
Richard Davey
34b236df41 Vector2.setTo is a method alias for Vector2.set allowing it to be used inter-changeably with Geom.Point. 2018-04-05 11:24:56 +01:00
Richard Davey
57c5ca657b Small refactoring 2018-04-05 11:01:24 +01:00
Tomas Heinsohn Huala
8a2c5792f4 Line.getPointA&B fix 2018-04-05 12:00:42 +02:00
Richard Davey
c1517d60ed eslint fixes 2018-04-05 09:28:04 +01:00
Richard Davey
441ca3862c Swap for isArray check 2018-04-05 09:23:52 +01:00
Richard Davey
054ceafae0 Added jsdocs to Container and made add support arrays 2018-04-05 09:23:29 +01:00
Richard Davey
4f6239dadb jsdoc and eslint fixes 2018-04-05 09:02:36 +01:00
Richard Davey
3009809fc4
Merge pull request #3508 from photonstorm/containers
Merging in Containers branch
2018-04-05 08:58:08 +01:00
Richard Davey
9c0ab4ccaf Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-05 08:48:39 +01:00
Richard Davey
4466f28e44 Updated log 2018-04-05 08:48:35 +01:00
Richard Davey
312e0d385d
Merge pull request #3506 from jmcriat/patch-1
fix drag/overlap interaction
2018-04-05 08:48:24 +01:00
Eirik S Korsnes
64bbf8b9c0 jsdoc / tsdef : extend jsdoc for EventEmitter#emit to properly reflect its ability to have any amount of arguments
https://github.com/photonstorm/phaser3-docs/issues/17
2018-04-05 02:02:27 +02:00
José Maria
100eafe1a4
fix drag/overlap interaction
changes: when dragend resets draglist. 
this fixes overoutevents from a gameobject not firing after being drag.
2018-04-04 18:09:18 -03:00
Eirik S Korsnes
798356cb64 jsdoc: fix correct type reference on Scene#load 2018-04-04 20:19:21 +02:00
Felipe Alfonso
e02efcfeb3 Merge branch 'master' into containers 2018-04-04 14:06:24 -03:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Richard Davey
9f9c7dea61 Added setProgress 2018-04-04 17:19:02 +01:00
Felipe Alfonso
eafb488e25 Merge branch 'master' into containers 2018-04-04 13:15:42 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Richard Davey
9368c80922 getFrameByProgress will return the Animation Frame that is closest to the given progress value. 2018-04-04 17:14:43 +01:00
Richard Davey
9f85c0f61e new optional argument key which will allow you to scan a top-level property of any object in the given sorted array and get the closest match to it. 2018-04-04 17:11:41 +01:00
Felipe Alfonso
7b275e2c62 DrawImage works with parent matrix 2018-04-04 12:31:45 -03:00
Richard Davey
fa2320238e More jsdocs fixes and staggerPlay fix 2018-04-04 16:27:33 +01:00
Felipe Alfonso
5026566084 Container Canvas Rendering function 2018-04-04 12:22:10 -03:00
Richard Davey
e734e7ef6b Extensive Animation API changes to use milliseconds, improve docs and access to properties 2018-04-04 16:13:45 +01:00
Felipe Alfonso
bea7ca36ad Merge branch 'master' into containers
# Conflicts:
#	src/renderer/webgl/pipelines/TextureTintPipeline.js
2018-04-04 12:07:41 -03:00
Richard Davey
552cfe3c5e Animation Component overhaul 2018-04-04 14:44:09 +01:00
Richard Davey
c251eceaf6 jsdoc fixes 2018-04-04 14:43:53 +01:00
Richard Davey
51d29b818d Animation.updateFrame will now call setSizeToFrame on the Game Object, which will adjust the Game Objects width and height properties to match the frame size. Fix #3473 2018-04-04 13:14:41 +01:00
Richard Davey
96507beda1 Added setLetterSpacing method and exported value in toJSON (#3480) 2018-04-04 11:34:39 +01:00
Richard Davey
af12eaac77
Merge branch 'master' into FR3472 2018-04-04 11:28:58 +01:00
Richard Davey
67c0bb8059
Merge pull request #3502 from icbat/master
filling in docs for utils.object.clone, hasAll, and hasAny
2018-04-04 11:25:46 +01:00
Richard Davey
dac030dd3e Graphics.slice allows you to easily draw a Pacman, or slice of pie shape to a Graphics object. 2018-04-04 11:13:19 +01:00
Richard Davey
0c200054b6 LineCurve.getResolution was missing the divisions argument and always returning 1, which made it fail when used as path of a Path. It now defaults to return 1 unless specified otherwise 2018-04-04 10:29:12 +01:00
Richard Davey
3589013af2 Not protected 2018-04-03 23:56:27 +01:00
Evan
ab004d1626 filling in docs for utils.object.clone, hasAll, and hasAny 2018-04-03 12:42:27 -05:00
Felipe Alfonso
3158d688ad TileSprite batcher modulates tilePosition by the texture size to avoid scrolling uv coordinates to large values.
issue ref: https://github.com/photonstorm/phaser/issues/3402
2018-04-03 14:21:24 -03:00
Richard Davey
e29de6a9b3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 17:30:26 +01:00
Richard Davey
a2535d4597 jsdoc fix 2018-04-03 17:30:15 +01:00
Felipe Alfonso
e50c42e0b8 Fixed issue with static tilemap layer not getting the real texture dimension
issue ref: https://github.com/photonstorm/phaser/issues/3407
2018-04-03 13:24:14 -03:00
Felipe Alfonso
8092e574dd Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 13:23:13 -03:00
Richard Davey
11512e1db2 Keyboard.JustDown and Keyboard.JustUp were being reset too early, causing them to fail when called in update loops. Fix #3490 2018-04-03 16:33:13 +01:00
Felipe Alfonso
198180fec6 Fixed issue https://github.com/photonstorm/phaser/issues/3475 2018-04-03 12:03:02 -03:00
Richard Davey
5fb57e13ec Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 15:41:07 +01:00
Richard Davey
d838097763 Game.destroy now checks to see if the renderer exists before calling destroy on it. Fix #3498 2018-04-03 15:41:02 +01:00
Richard Davey
1049e76ca1
Merge pull request #3499 from orblazer/patch-1
Remove generic on type
2018-04-03 15:37:15 +01:00
Richard Davey
d93e8ab919 Make sure debug layer remains on the top 2018-04-03 15:30:46 +01:00
Richard Davey
8ffe3e3aaf Small formatting fixes 2018-04-03 15:28:51 +01:00
orblazer
e3b0c3e4d2
Remove generic on type 2018-04-03 16:24:48 +02:00
Richard Davey
7f1723ca4f
Merge pull request #3458 from OmarShehata/master
Added joint debug rendering to Matter Physics postUpdate
2018-04-03 15:22:49 +01:00
Richard Davey
c1e5aa72ef Added jsdocs for TS defs export 2018-04-03 15:08:48 +01:00
Richard Davey
eca3c09df1 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-03 14:08:26 +01:00
Richard Davey
316da3f2d9 jsdocs update. Fix #3477 2018-04-03 14:08:22 +01:00
Richard Davey
6c3618fa12
Merge pull request #3494 from erd0s/master
JSdoc, changed properties marked with [?...] to just be [...]
2018-04-03 13:56:44 +01:00
Richard Davey
18b29d9104
Merge pull request #3496 from hexus/docs
Documentation for DataManager, SceneManager and ScenePlugin
2018-04-03 13:55:31 +01:00
Chris Andrew
f3675b6085 Added a missing full stop. 🚀 2018-04-02 18:43:41 +01:00
Chris Andrew
e047977f52 Documented the ScenePlugin class. 2018-04-02 18:29:23 +01:00
Chris Andrew
7eb0342663 Documented the SceneManager. 2018-04-02 18:01:17 +01:00
Evan Cobb
6d7b28db04
Fleshing out docs 2018-04-02 11:03:23 -05:00
Evan Cobb
7153548c36
Update LinearInterpolation.js 2018-04-02 10:54:46 -05:00
Chris Andrew
381784d58f Documented the DataManager class. 2018-04-02 16:32:21 +01:00
Travis O'Neal
2ec70cac48 Added a letterSpacing property to BitmapText 2018-04-02 09:42:24 -04:00
Dirk
d32af81411 UPDATED: JSdoc, changed properties marked with [?...] to just be [...] 2018-04-02 21:03:05 +10:00
jdotrjs
562402e440 [fixes #3482] HueToComponent was not correctly exporting itself
Pretty self explanatory -- `module.export` is a typo, needed to be `exports`. Filed associated bug #3482.
2018-03-30 16:25:59 -07:00
Travis O'Neal
43ea5f239c
Updated @since to the appropriate version 2018-03-30 14:07:28 -04:00
Travis O'Neal
d6265a59dd Initial Commit 2018-03-30 13:46:44 -04:00
Richard Davey
d8e378b052 Updated comments 2018-03-30 17:01:29 +01:00
Travis O'Neal
edb81c9096 Tween.Restart adds Tween back to the active list for the TweenManager to properly process and replay 2018-03-30 11:24:36 -04:00
Felipe Alfonso
749a69c387 Merge branch 'master' into containers 2018-03-30 11:50:54 -03:00
Richard Davey
89c963c19c Ignore consts 2018-03-30 14:38:58 +01:00
Richard Davey
0868d69fb6 Added memberOf 2018-03-30 14:24:18 +01:00
Richard Davey
2a35a20fcb Swapped for enum 2018-03-30 14:16:42 +01:00
Richard Davey
a86fc19d3c jsdoc fix 2018-03-30 14:12:09 +01:00
Richard Davey
1a73f22780 Removed braces 2018-03-30 13:57:17 +01:00
Richard Davey
51eec113a9 jsdoc tweak 2018-03-30 13:56:53 +01:00
Richard Davey
29089a329b Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-30 13:51:45 +01:00
Richard Davey
66c2c7a359 change types 2018-03-30 13:51:32 +01:00
Antriel
630732f9fc jsdoc generics fix 2018-03-30 14:43:58 +02:00
Richard Davey
71045265ae The Gamepad Axis getValue method now correctly applies the threshold and zeroes out the returned value. 2018-03-30 12:33:45 +01:00
Richard Davey
88a228e226 jsdoc fix 2018-03-30 12:33:31 +01:00
Richard Davey
4c116c0af2 Put Fixed and Smoothed aliases back in for now 2018-03-30 12:03:25 +01:00
Richard Davey
f6167f6fcf The GamepadManager now extends EventEmitter directly, just like the KeyboardManager does. 2018-03-30 12:03:06 +01:00
Richard Davey
19f7e2589a jsdoc fix 2018-03-30 12:02:08 +01:00
pixelhijack
e728f3a1b9 [ISSUE #3363] Phaser Scene - passing data to scene init & create methods 2018-03-29 21:40:32 +02:00
Richard Davey
2d6251a1e9 Swapping to enums 2018-03-29 16:42:20 +01:00
Felipe Alfonso
4f8ddd73bb Merge branch 'master' into containers 2018-03-29 12:35:40 -03:00
Felipe Alfonso
0186e122a6 If a container is nested the parentContainer property is setted 2018-03-29 12:34:23 -03:00
Richard Davey
9f36b5e8b4 const / enum 2018-03-29 15:50:48 +01:00
Richard Davey
37589ffe00 jsdoc updates 2018-03-29 15:12:32 +01:00
Omar Shehata
b18530741d Replaced all uses of 'let' with 'var' to support older browsers 2018-03-29 08:53:38 -05:00
Richard Davey
cef9050627 jsdoc fixes 2018-03-29 14:53:06 +01:00
Richard Davey
d5fd3e20d9 Renamed namespace 2018-03-29 14:24:51 +01:00
Richard Davey
ce75947dac Swap to module 2018-03-29 14:02:25 +01:00
Richard Davey
e7191e9d8e jsdoc updates 2018-03-29 13:48:14 +01:00
Richard Davey
f5373b2dee jsdoc fixes 2018-03-29 13:23:44 +01:00
Richard Davey
4ddd9d2e8c Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-29 13:12:12 +01:00
Richard Davey
91008232ad jsdoc fixes 2018-03-29 13:12:07 +01:00
Richard Davey
562344fed0 The ComputedSize Component now has setSize and setDisplaySize methods. This component is used for Game Objects that have a non-texture based size. 2018-03-29 12:55:28 +01:00
Richard Davey
fba8183d94 Fixed docs order 2018-03-29 12:54:33 +01:00
Richard Davey
aec64c635e Removed floats 2018-03-29 12:54:12 +01:00
orblazer
e10a10b3b1 Fix usage of @genericUse 2018-03-29 12:58:18 +02:00
Felipe Alfonso
e0f678d1ff Merge branch 'master' into containers 2018-03-28 20:49:00 -03:00
Felipe Alfonso
88ed9bd3b8 transform to container space 2018-03-28 20:47:57 -03:00
orblazer
1f5c5b1f77
Remove unused import 2018-03-28 21:30:03 +02:00
Richard Davey
88b02a5e35 Renamed the Camera Controls module exports for Fixed to FixedKeyControl and Smoothed to SmoothedKeyControl to match the class names. Fix #3463 2018-03-28 16:24:06 +01:00
Richard Davey
06998276ec Removed stict mode warning 2018-03-28 16:00:19 +01:00
Richard Davey
f1e646c9ee jsdoc fixes 2018-03-28 15:39:57 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
2b533d9870 Renamed file 2018-03-28 15:03:54 +01:00
Richard Davey
2096729095 Missing require 2018-03-28 14:15:32 +01:00
Richard Davey
2868b8b588 Added new chainable methods: setRate, setMute, setVolume, setSeek, setDune 2018-03-28 14:14:07 +01:00
Richard Davey
cfab72aef4 Tidying up formatting 2018-03-28 14:13:40 +01:00
Richard Davey
ff9dfc1f9d Fixed event names 2018-03-28 14:13:30 +01:00
Richard Davey
a76b9a1827 BaseSoundManager.rate and BaseSoundManager.detune would incorrectly called setRate on its sounds, instead of calculateRate. 2018-03-28 14:12:37 +01:00
Richard Davey
dcbc81e6b2 Remove un-used properties and setters 2018-03-28 14:12:16 +01:00
Richard Davey
15c4334dc7 jsdoc fixes 2018-03-28 14:11:46 +01:00
Richard Davey
f10efda8f0 font is non-optional, so removed coordinates as optional 2018-03-28 12:05:03 +01:00
Richard Davey
2a2ba91eed
Merge pull request #3461 from orblazer/genericTypes
Fix many types and add many generics type
2018-03-28 11:53:12 +01:00
Felipe Alfonso
b23ad3b130 Fixed issue with creating containers and graphics with scene.make. 2018-03-27 17:32:33 -03:00
Felipe Alfonso
3741b9ea6d Added nested support to graphics rendering 2018-03-27 16:57:49 -03:00
Felipe Alfonso
d544701495 parentMatrix added to individual game object render function 2018-03-27 14:49:09 -03:00
Felipe Alfonso
5d7e910f5b Merge branch 'master' into containers 2018-03-27 12:26:27 -03:00
Richard Davey
d0fc334225 Swapped to 3.4.0 because of public-facing API changes 2018-03-27 15:15:22 +01:00
Richard Davey
e7a1e3190a Matter Physics timestep adjustments (getDelta, step, set60Hz, etc)
* Matter Physics now has a new config property `getDelta` which allows you to specify your own function to calculate the delta value given to the Matter Engine when it updates.
* Matter Physics has two new methods: `set60Hz` and `set30Hz` which will set an Engine update rate of 60Hz and 30Hz respectively. 60Hz being the default.
* Matter Physics has a new config and run-time property `autoUpdate`, which defaults to `true`. When enabled the Matter Engine will update in sync with the game step (set by Request Animation Frame). The delta value given to Matter is now controlled by the `getDelta` function.
* Matter Physics has a new method `step` which manually advances the physics simulation by one iteration, using whatever delta and correction values you pass in to it. When used in combination with `autoUpdate=false` you can now explicitly control the update frequency of the physics simulation and unbind it from the game step.
2018-03-27 15:15:05 +01:00
orblazer
d0e1320cbe Add generic types and fix types on Input and Structs 2018-03-27 15:59:49 +02:00
orblazer
e9e16a7b10 Add generic types on Geom 2018-03-27 15:27:08 +02:00
orblazer
ae0b3b841b Fix types on GameObjects 2018-03-27 14:52:58 +02:00
orblazer
b1d83188ef Add generic type and fix types on Data and Display 2018-03-27 14:19:42 +02:00
orblazer
1ded1d12a8 Fix types and add generic in Curves 2018-03-27 14:06:24 +02:00
orblazer
7a33233013 Fix types in Cache and Cameras 2018-03-27 13:51:45 +02:00
orblazer
0d58832e5f Fix types on Animations and Boot 2018-03-27 13:30:00 +02:00
orblazer
bdf373b6e8 Add generic type on Actions 2018-03-27 13:14:08 +02:00
Felipe Alfonso
9a2ec4225a Merge branch 'master' into containers 2018-03-26 21:17:07 -03:00
Felipe Alfonso
161f258f60 Parent transform applied to all texture tint pipeline object rendering functions 2018-03-26 21:16:36 -03:00
Richard Davey
1f44366bc7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-27 01:09:34 +01:00
Richard Davey
933e193ccf Group.destroy has a new optional argument destroyChildren which will automatically call destroy on all children of a Group if set to true (the default is false, hence it doesn't change the public API). Fix #3246 2018-03-27 01:09:30 +01:00
Richard Davey
3aa95b4f20 Formatting fix. 2018-03-27 01:09:23 +01:00
Richard Davey
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
Change structs for generic types
2018-03-27 00:37:34 +01:00
Richard Davey
72eca92e4d
Merge pull request #3448 from jamierocks/no-eval
Remove string-generated Functions for CSP policies
2018-03-27 00:08:44 +01:00
Felipe Alfonso
f6eef58608 Merge branch 'master' into containers 2018-03-26 19:57:11 -03:00
Felipe Alfonso
48b8e7c704 parentTransformMatrix mulitplication 2018-03-26 19:55:38 -03:00
Richard Davey
33edbfcefe
Merge pull request #3457 from samid737/master
Fix: PathFollower.setPath was still using PathFollower.start instead of PathFollower.startFollow
2018-03-26 23:49:09 +01:00
Richard Davey
f74f733576 Just because. 2018-03-26 23:17:06 +01:00
Felipe Alfonso
eac2b8338e parentTransformMatrix argument added to texture pipeline 2018-03-26 17:23:18 -03:00
Omar Shehata
4fa109d2db Added joint debug rendering to Matter Physics postUpdate 2018-03-25 22:44:32 -05:00
Samid\Sami
20b9930335 Fix calling non existing start() instead of startFollow() in setPath(config) 2018-03-25 10:44:24 +02:00
Felipe Alfonso
5bcd12fcb7 Base container rendering + sprite batching with parent matrix 2018-03-23 14:15:52 -03:00
orblazer
f42f1bf132 Change structs for generic types 2018-03-23 16:54:12 +01:00
Richard Davey
2cd7da0126 The RenderTexture now uses the ComputedSize component instead of Size (which requires a frame), allowing calls to getBounds to work. Fix #3451 2018-03-23 10:00:25 +00:00
Richard Davey
574221d6cf A new property was added to Matter.World, correction which is used in the Engine.update call and allows you to adjust the time being passed to the simulation. The default value is 1 to remain consistent with previous releases. 2018-03-23 02:19:18 +00:00
Jamie Mansfield
88647a4879
Remove string-generated Functions for CSP policies - Resolves #3441 2018-03-22 22:32:46 +00:00
Richard Davey
04b5985724
Merge pull request #3445 from delftswa2018/3385-Rendertexture-alpha-not-changing-in-WEBGL-mode
Fix changing alpha in RenderTextureWebGLRenderer
2018-03-22 14:52:14 +00:00