Felipe Alfonso
198180fec6
Fixed issue https://github.com/photonstorm/phaser/issues/3475
2018-04-03 12:03:02 -03:00
Travis O'Neal
2ec70cac48
Added a letterSpacing property to BitmapText
2018-04-02 09:42:24 -04: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
Felipe Alfonso
749a69c387
Merge branch 'master' into containers
2018-03-30 11:50:54 -03:00
Antriel
630732f9fc
jsdoc generics fix
2018-03-30 14:43:58 +02: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
37589ffe00
jsdoc updates
2018-03-29 15:12:32 +01:00
Richard Davey
cef9050627
jsdoc fixes
2018-03-29 14:53:06 +01:00
Richard Davey
e7191e9d8e
jsdoc updates
2018-03-29 13:48:14 +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
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
Richard Davey
747f09af86
jsdoc fixes
2018-03-28 15:04:09 +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
Felipe Alfonso
b23ad3b130
Fixed issue with creating containers and graphics with scene.make.
2018-03-27 17:32:33 -03:00
Felipe Alfonso
d544701495
parentMatrix added to individual game object render function
2018-03-27 14:49:09 -03:00
orblazer
ae0b3b841b
Fix types on GameObjects
2018-03-27 14:52:58 +02:00
Felipe Alfonso
9a2ec4225a
Merge branch 'master' into containers
2018-03-26 21:17:07 -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
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
...
Change structs for generic types
2018-03-27 00:37:34 +01:00
Felipe Alfonso
f6eef58608
Merge branch 'master' into containers
2018-03-26 19:57:11 -03:00
Felipe Alfonso
eac2b8338e
parentTransformMatrix argument added to texture pipeline
2018-03-26 17:23:18 -03: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
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
Gerard van Alphen
78c1e86021
Fix changing alpha in RenderTextureWebGLRenderer
2018-03-22 14:58:41 +01:00
Richard Davey
5816b863fa
Removed TransformNode so it doesn't break the 3.3 CI build
2018-03-22 13:19:52 +00:00
Richard Davey
0ef92e1172
Merge branch 'pr/3439'
2018-03-21 16:06:56 +00:00
Richard Davey
8e7944a1b4
Updated EventEmitter reference
2018-03-21 14:09:58 +00:00
Richard Davey
3f0ee709f0
Renamed methods to avoid confliction with Animation component
2018-03-21 14:09:30 +00:00
orblazer
439df07fd5
Fix "object" type on GameObjects and Input
2018-03-21 12:19:31 +01:00
Richard Davey
db613c793a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-21 03:17:00 +00:00
Richard Davey
786d181a91
Sorted the components
2018-03-21 03:16:49 +00:00
orblazer
4f7f2b8981
Fix RemoveCallback call on Group
2018-03-21 00:32:13 +01:00
orblazer
5a518f2e5f
Fix "object" types on Camera and GameObjecs
2018-03-20 23:28:26 +01:00
Richard Davey
d329724ae5
Added the ComputedSize component to the Text Game Object, which allows Text.getBounds, and related methods, to work again instead of returning NaN.
2018-03-20 19:00:48 +00:00
Richard Davey
28206e872f
Merge pull request #3433 from orblazer/fix-types
...
Fix "any" types
2018-03-20 16:28:43 +00:00
orblazer
7fba122321
Fix "any" types
2018-03-20 17:15:49 +01:00
Richard Davey
31bf979eb2
Merge pull request #3432 from orblazer/fix-types
...
Fix nullable and multiple types
2018-03-20 15:31:17 +00:00
Felipe Alfonso
701d43b3c3
TransformNode Implemented for nested transformations
2018-03-20 12:15:14 -03:00
orblazer
87633fdfad
Fix multiple types on GameObjects
2018-03-20 15:56:31 +01:00
orblazer
4cff464555
Fix nullable types
2018-03-20 15:36:03 +01:00
Richard Davey
b6f2c80ae6
Groups will now listen for a destroy
event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418
2018-03-20 01:08:45 +00:00
Richard Davey
cb5b12e9d3
The GameObject destroy
event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process.
2018-03-20 01:05:53 +00:00
Richard Davey
3591edcb73
Merge pull request #3417 from rexrainbow/master
...
Bug fix: font might not sync to context
2018-03-20 00:34:51 +00:00
orblazer
b4a30b8e43
Add callbacks on GameObjects
2018-03-19 22:27:16 +01:00
orblazer
bf630f7d57
Fix types in JSDocs
2018-03-19 19:49:14 +01:00
Richard Davey
620bcc6ae5
jsdoc fixes and additions
2018-03-19 13:45:00 +00:00
orblazer
87d6cdaff8
Update JSDoc on GameObjects
2018-03-19 13:50:32 +01:00
orblazer
90def456f2
Update JSDoc on GameObjects
2018-03-19 12:54:31 +01:00
Rex
4125e74550
Bug fix: font might not sync to context
...
Sync font before runWordWrap
2018-03-18 22:53:02 +08:00
Richard Davey
cc0998660e
Updated jsdocs
2018-03-18 13:43:37 +00:00
Richard Davey
a8886a60d3
Actually round the value.
2018-03-17 17:03:30 +00:00
Richard Davey
05a4385cd7
jsdoc fixes
2018-03-16 17:29:39 +00:00
Richard Davey
24eec0ccd0
Merge pull request #3365 from samme/feature/tilesprite-settileposition
...
Add Phaser.GameObjects.TileSprite#setTilePosition
2018-03-16 12:55:03 +00:00
Richard Davey
19ea528c99
Merge pull request #3392 from samme/feature/group-create-active
...
Add `active` to Group create methods
2018-03-16 12:51:21 +00:00
Richard Davey
1fea31bac8
Fixed package names
2018-03-16 00:46:39 +00:00
Richard Davey
19a17bcf63
Updating docs
2018-03-15 17:27:30 +00:00
samme
731b006ec3
Add active
to Group create methods
...
- Adds `active=true` argument to Group#create
- Adds `active=true` config value to Group#createMultiple etc.
2018-03-14 12:22:08 -07:00
Richard Davey
1d23aad976
TextStyle has two new properties: baselineX
and baselineY
which allow you to customize the 'magic' value used in calculating the text metrics.
2018-03-13 13:21:51 +00:00
Richard Davey
247e8b9337
Text.setFixedSize was incorrectly setting the text
property instead of the parent
property. Fix #3375
2018-03-12 16:34:21 +00:00
Richard Davey
1ebf639de3
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-12 16:30:16 +00:00
Felipe Alfonso
be81ddfd51
Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations
2018-03-12 13:30:05 -03:00
Richard Davey
267e8b4b84
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-12 16:27:49 +00:00
Felipe Alfonso
9585a1c78b
Fixed issue of render texture only rendering the first frame. It should've read the cut properties
2018-03-12 13:27:32 -03:00
Felipe Alfonso
e0a4577938
Fixed issue of TileSprite rendering pattern based on the power of 2 dimension on canvas.
2018-03-12 13:18:38 -03:00
Richard Davey
70d9c7d728
Always return the parent Text object, no matter the flow
2018-03-12 16:13:42 +00:00
Richard Davey
e2ad743b92
_this fix
2018-03-12 14:52:35 +00:00
Richard Davey
0368473b95
The SetFrame method now has two optional arguments: updateSize
and updateOrigin
(both true by default) which will update the size and origin of the Game Object respectively. Fix #3339
2018-03-12 14:45:18 +00:00
samme
f4e843038c
Expect v3.3.0
2018-03-12 07:23:20 -07:00
Richard Davey
edf1aa7cc1
The onContextRestored
callback won't be defined any more unless the WebGL Renderer is in use in the following objects: BitmapMask, Static Tilemap, TileSprite and Text. This should allow those objects to now work in HEADLESS mode. Fix #3368
2018-03-12 13:37:13 +00:00
samme
aebce8a695
Add Phaser.GameObjects.TileSprite#setTilePosition
...
Both arguments are optional.
2018-03-10 11:41:22 -08:00
Richard Davey
935a89342d
Calling setText
on a BitmapText object will now recalculate its display origin values. Fix #3350
2018-03-09 17:08:12 +00:00
Richard Davey
87f2d0f831
Merge pull request #3335 from iamchristopher/fix-group-clear-from-scene
...
Fixed Group doesn't remove children from Scene when cleared
2018-03-09 15:54:44 +00:00
Richard Davey
3ed077a6d7
Merge pull request #3358 from delftswa2018/3231-CANVAS-tilesprite-rotation-flip-scaling
...
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
2018-03-09 15:51:35 +00:00
Richard Davey
2ee4f581f5
Merge pull request #3355 from rexrainbow/master
...
Add reference of GameObject class
2018-03-09 15:45:46 +00:00
Tom Catshoek
74b18921e8
Added rotation, scaling and flipping to TileSpriteCanvasRenderer
2018-03-09 15:16:34 +01:00
Hua
4719589382
Add reference of BuildGameObject, BuildGameObjectAnimation
2018-03-09 15:13:42 +08:00
Hua
cf8d4703b3
Add reference of GameObject class
2018-03-09 12:31:37 +08:00
Felipe Alfonso
9a21b4c7f4
Fixed issue with render texture tint
2018-03-06 15:56:33 -03:00
iamchristopher
1d402a732e
Fixed Group doesn't remove children from Scene when cleared
2018-03-05 19:04:01 -05:00
Richard Davey
a712dea197
eslint fix
2018-03-05 22:25:55 +00:00
Richard Davey
9ad7aeef1d
Merge pull request #3304 from rexrainbow/master
...
Add destroy event of gameobject
2018-03-05 21:56:07 +00:00
Richard Davey
c2f25b3742
Merge pull request #3240 from Twilrom/arc-fix
...
Update WebGL Graphics.arc to work more like on Canvas
2018-03-05 21:54:46 +00:00
Richard Davey
bfabe35cdf
eslint fixes
2018-03-05 21:49:08 +00:00
Felipe Alfonso
ddc85cfdc7
Added support for tint and alpha to RenderTexture
2018-03-05 16:57:41 -03:00
Lukas Jakob Hafner
97bfe2e752
Quick fix for missing lineSpacing
...
Reads lineSpacing if passed as attribute to `style` within text config.
2018-03-05 16:35:42 +02:00
Richard Davey
8d85a9bc72
Added jsdocs
2018-03-05 14:19:53 +00:00
Richard Davey
4c59d9a35d
Added jsdocs
2018-03-05 02:24:47 +00:00
Richard Davey
4d16b0c00a
eslint fixes
2018-03-05 01:45:28 +00:00
Richard Davey
ef3df149c6
Fixed RenderTexture flipY
2018-03-05 01:42:37 +00:00
Richard Davey
ae1c91cf6a
eslint fixes
2018-03-05 01:40:11 +00:00
Richard Davey
7341d7a6cf
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-02 17:49:01 +00:00
Richard Davey
4de9690f98
The setFrame
method of the Texture component has been updated so that it will now automatically reset the width
and height
of a Game Object to match that of the new Frame. Related, it will also adjust the display origin values, because they are size based. If the Frame has a custom pivot it will set the origin to match the custom pivot instead.
2018-03-02 16:23:43 +00:00
Felipe Alfonso
865f0a604e
Small fix on the MatrixStack rotation function
2018-03-02 11:29:04 -03:00
Hua
baeca90ae8
Add destroy event
...
Add destroy event of gameobject, also add a checking to prevent re-enter this destroy function.
2018-03-02 10:50:20 +08:00
Richard Davey
acc4922027
Fixes to the InputPlugin re: drop zones and addition of setInteractive argument.
2018-03-01 02:46:17 +00:00
Richard Davey
9a561ff385
Added roundPixels support to BitmapText canvas
2018-02-28 23:07:30 +00:00
Richard Davey
fdc1f3cab3
Added canvas roundPixels support for Text, Particles and TileSprites
2018-02-28 22:40:08 +00:00
Richard Davey
252a76f416
The Headless render mode has been implemented. You can now set HEADLESS as the renderType
in the Game Config and it will run a special game step that skips rendering. It will still create a Canvas element, as lots of internal systems (like input) rely on it, but it will not draw anything to it. Fix #3256
2018-02-28 21:57:32 +00:00
Felipe Alfonso
14399d6910
TileSprite can now set frame of the pattern texture
2018-02-28 17:04:57 -03:00
Richard Davey
8ae3493296
setText updates
...
BitmapText.setText will check if the value given is falsey but not a zero and set to an empty string if so.
BitmapText.setText will now cast the given value to a string before setting.
BitmapText.setText will not change the text via `setText` unless the new text is different to the old one.
2018-02-27 15:14:03 +00:00
Richard Davey
b447665533
Text.setText will check if the value given is falsey but not a zero and set to an empty string if so.
2018-02-27 15:13:39 +00:00
Richard Davey
34e5a282d2
AnimationComponent.play now calls setSizeToFrame()
and updateDisplayOrigin()
on the parent Game Object in order to catch situations where you've started playing an animation on a Game Object that uses a different size to the previously set frame.
2018-02-27 01:09:09 +00:00
Felipe Alfonso
7c96e93c47
Canvas RenderTexture rendering added
2018-02-23 21:05:15 -03:00
Felipe Alfonso
9dbb4db4c6
Added inverted alpha to bitmap mask
2018-02-23 14:09:27 -03:00
Felipe Alfonso
ef8e92dc01
RenderTexture base webgl implementation
2018-02-23 00:44:22 -03:00
Richard Davey
fe5bd7e6bb
Fixed jsdoc errors
2018-02-21 22:51:05 +00:00
Felipe Alfonso
4b9b4c91a3
Dynamic BitmapText's origin is used on rendering the text
2018-02-19 18:20:30 -03:00
Felipe Alfonso
41bcaba43a
Dynamic BitmapText now uses origin component to render the text.
2018-02-19 18:16:57 -03:00
Richard Davey
3c65121cb3
eslint fixes
2018-02-16 19:17:49 +00:00
Richard Davey
50dac412be
eslint fixes and console removal
2018-02-16 19:08:50 +00:00
Richard Davey
d745b70330
The Mesh Game Object Factory entry had incorrect arguments passed to Mesh constructor.
2018-02-16 19:07:58 +00:00
Richard Davey
5b4b5de075
TileSprite was missing a gl reference, causing it to fail during a context loss and restore.
2018-02-16 18:54:33 +00:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Twilrom
d45784f3c9
Remove some unnecessary calls to closePath.
2018-02-16 16:13:48 +01:00
Richard Davey
79520bfdc4
Added jsdoc
2018-02-15 14:33:36 +00:00
Richard Davey
d72c7d501a
Destroying a Game Object will now call destroy on its physics body.
2018-02-14 19:33:13 +00:00
Richard Davey
c80e2fde2c
Fixed use of List structure for the Blitter game object.
2018-02-14 12:25:17 +00:00
Richard Davey
2892f20e5c
Depth component added to the Zone Game Object. Fix #3213
2018-02-13 22:19:44 +00:00
Richard Davey
353dba4d5e
Added missing Target camera back, fixing Graphics.generateTexture in the process.
2018-02-13 08:08:48 +00:00
Richard Davey
2813ac8162
Moved PluginManager and merged configs into single root file for easier changing.
2018-02-12 23:03:48 +00:00
Richard Davey
275f6e40b2
Moved to sub-folder.
2018-02-12 22:16:27 +00:00
Richard Davey
ef87b33a10
Added jsdocs
2018-02-12 21:54:51 +00:00
Felipe Alfonso
9b2741387b
Resolution affecting camera display
2018-02-12 16:03:13 -03:00
Richard Davey
8bce7ea7c9
Added jsdocs.
2018-02-12 17:21:06 +00:00
Richard Davey
3493e272d6
Added jsdocs
2018-02-12 17:03:53 +00:00
Richard Davey
b6b8f70550
DisplayList now just extends List and removed the Plugin, as it acts as its own plugin now.
2018-02-12 16:59:57 +00:00
Richard Davey
d578e89828
Moved Mesh out of core and into its own Graphics extension.
2018-02-12 16:59:27 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
d67daa998e
If no value given, set to empty string.
2018-02-12 13:48:51 +00:00
Richard Davey
38b6d2834b
Added jsdocs
2018-02-10 17:11:36 +00:00
Richard Davey
2ece55c28e
Renamed folder to match namespace
2018-02-10 14:56:08 +00:00
Richard Davey
a71998d682
Updated origin call.
2018-02-09 15:23:26 +00:00
Richard Davey
5085ed5c9f
Added setOriginFromFrame.
2018-02-09 15:21:49 +00:00
Richard Davey
3422569a4a
setFrame will use a custom pivot, if set.
2018-02-09 15:21:39 +00:00
Richard Davey
e0899bfa00
Added jsdocs
2018-02-09 03:44:23 +00:00
Richard Davey
10193c181a
Fixed require paths.
2018-02-07 17:10:01 +00:00
Richard Davey
89fe7123e1
Moved to its own top-level folder.
2018-02-07 16:29:48 +00:00
Richard Davey
3c8470863a
Fixed undef error.
2018-02-07 16:16:26 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
8ae958037e
Added jsdocs
2018-02-07 02:46:11 +00:00
Richard Davey
33c9f39b9d
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-02-07 00:19:15 +00:00
Richard Davey
650ae3cf5a
Added jsdocs
2018-02-07 00:18:22 +00:00
Michael Hadley
50434227ac
Tile's flip/rotation is now only set by the flipX, flipY and rotation props
2018-02-06 18:17:15 -06:00
Richard Davey
5c0872485c
Added jsdocs
2018-02-06 22:56:27 +00:00
Richard Davey
645f1e618e
Added jsdocs
2018-02-06 22:37:56 +00:00
Richard Davey
2d4b7b5398
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-02-06 22:25:26 +00:00
Richard Davey
6efb94cce9
Added jsdocs
2018-02-06 22:25:23 +00:00
Felipe Alfonso
cff54d8511
Added tile rotation and fixed undefined resolution on webgl renderer config
2018-02-06 18:47:42 -03:00
Felipe Alfonso
cffc40b834
Fixed flip on blitter game object. Added camera scrollFactor to blitter canvas renderer
2018-02-06 17:19:11 -03:00
Richard Davey
8cd5e772d8
Added jsdocs
2018-02-06 19:22:20 +00:00
Richard Davey
0ebe23e396
Added jsdocs
2018-02-06 19:10:44 +00:00
Richard Davey
039d63b17d
Added jsdocs
2018-02-06 17:17:34 +00:00
Richard Davey
a42d1a3f3e
Added jsdocs
2018-02-06 16:37:35 +00:00
Richard Davey
b0bb397369
Added jsdocs
2018-02-06 16:15:22 +00:00
Richard Davey
26a496ac3f
Added jsdocs
2018-02-06 15:04:20 +00:00
Richard Davey
a4381d65aa
Added jsdocs
2018-02-06 14:13:30 +00:00
Richard Davey
36229eee79
Added jsdocs
2018-02-06 01:08:43 +00:00
Richard Davey
d838f4cfcd
Added jsdocs
2018-02-06 00:56:09 +00:00
Richard Davey
a8eae2bab7
Added jsdocs
2018-02-05 23:59:51 +00:00
Richard Davey
6df51372d5
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-02-05 22:08:52 +00:00
Richard Davey
45bda0b6ab
Added jsdocs
2018-02-05 22:08:48 +00:00
Felipe Alfonso
7b1ad0b307
transparent, clearBeforeRender and roundPixels now affect the rendering result
2018-02-05 19:06:02 -03:00
Richard Davey
b889a39bfb
Removed extra docs output line
2018-02-05 02:34:42 +00:00
Richard Davey
99913b9da4
More jsdoc updates
2018-02-01 05:48:56 +00:00
Richard Davey
9e8ee078e8
Fixed mixin jsdoc defs
2018-02-01 01:36:52 +00:00
Richard Davey
6611685640
Added jsdocs
2018-02-01 01:20:11 +00:00
Richard Davey
a506fcc3ac
Added jsdocs
2018-02-01 01:09:34 +00:00
Richard Davey
d457373287
Added Depth component and tidied up redundant parts of Transform
2018-02-01 00:50:15 +00:00
Richard Davey
c254cb2991
Added jsdocs
2018-02-01 00:25:33 +00:00
Richard Davey
950a125d71
Added jsdocs
2018-02-01 00:04:45 +00:00
Felipe Alfonso
4d03853935
Added cleanup routine for all webgl content on WebGLRenderer destroy function
2018-01-31 14:36:00 -03:00
Richard Davey
d8b2b6e340
jsdoc tweaks
2018-01-31 16:53:48 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Felipe Alfonso
f294a17a79
Fixed light culling
2018-01-30 22:27:11 -03:00
Felipe Alfonso
0648161ca5
Added simple light culling
2018-01-30 22:11:51 -03:00
Felipe Alfonso
d9b04ef2e9
Light2D Plugin added to scene
2018-01-30 19:46:43 -03:00
Felipe Alfonso
de4b308fbd
Light2D update
2018-01-30 00:38:31 -03:00
Richard Davey
4ec30b8db8
Recoded the Data component
...
Added is back in as DataManager, which Game Objects can have an instance of. Plus exposed as DataManagerPlugin available to Scenes. Removed callback based system and implemented events and fixed the destroy method.
2018-01-30 00:55:27 +00:00
Michael Hadley
65beefce29
Fix #3169 : add optional param to Tile#setCollision & Tile.resetCollision to recalc faces
2018-01-29 16:51:08 -06:00
Michael Hadley
b537ebd966
Made CalculateFacesAt accessible as part of the tilemap API
...
This is used internally, but may be useful for some devs
2018-01-29 16:31:14 -06:00
Felipe Alfonso
71a6360a7b
Pipeline components added
2018-01-29 18:46:48 -03:00
Michael Hadley
dfab17fb7a
Tilemap helper methods for accessing objects from object layers
2018-01-27 10:27:12 -06:00
Michael Hadley
7acd9b0381
Tiled object parser: store points as xy objects instead of arrays
...
V2 used arrays, but other places in the codebase (and users) will expect an object with XY props over an array.
2018-01-27 08:34:11 -06:00
Michael Hadley
901b5f8ba9
Upgraded Tilemap object layer parser from v2
...
- Added ObjectLayer class to make the structure of an object layer clear
- Tilemap.objects is now an array of objects. This allows object layer properties to be parsed.
2018-01-27 08:27:56 -06:00
Michael Hadley
c7c94cdea8
Remove unnecessary v2 code: tilemap.collision
2018-01-27 08:05:45 -06:00
Michael Hadley
63123250d1
Add clairifying note to fix #3193
2018-01-26 15:34:03 -06:00
Richard Davey
79de1b860a
Added jsdocs
2018-01-26 15:37:42 +00:00
Richard Davey
feee8e34e8
Moved Container out of prod for now.
2018-01-26 05:25:30 +00:00
Richard Davey
50318435b6
Commented out physics destroy call.
2018-01-25 23:19:37 +00:00
Felipe Alfonso
c94810ad43
Merge branch 'master' into rendering-cleanup
2018-01-25 19:21:34 -03:00
Felipe Alfonso
7c4c439aa4
Diffuse lighting shaders. Also made light layer rendering pass through
2018-01-25 19:20:36 -03:00
Michael Hadley
05688ac598
Tile.GetBounds
2018-01-25 13:48:22 -06:00
Felipe Alfonso
d4f0d02745
Merge branch 'master' into rendering-cleanup
2018-01-25 15:45:15 -03:00
Michael Hadley
91f18d9c94
Added convenience method Tile.getTileData
2018-01-25 07:46:08 -06:00
Michael Hadley
a601c57163
Renamed TilemapLayer.map -> TilemapLayer.tilemap for consistency
2018-01-25 07:29:43 -06:00
Michael Hadley
13349145cb
Added Tile.tilemap convenience getter
2018-01-25 07:25:14 -06:00
Felipe Alfonso
7b3c2c6b1c
Removed old code
2018-01-25 02:27:30 -03:00
Felipe Alfonso
bd8e9b2003
Static Tilemap Layer rendering
2018-01-25 02:26:14 -03:00
Felipe Alfonso
80d9ef42b3
ParticleEmitterManager webgl rendering added
2018-01-24 22:10:30 -03:00
Felipe Alfonso
42482ecb26
TileSprite webgl rendering
2018-01-24 21:15:51 -03:00
Felipe Alfonso
195a59d3ba
Dynamic Tilemap rendering
2018-01-24 19:29:57 -03:00
Felipe Alfonso
06fa0afcc8
Dynamic Bitmap Text webgl rendering
2018-01-24 15:55:23 -03:00
Felipe Alfonso
69c56fc920
Merge branch 'master' into rendering-cleanup
2018-01-24 00:58:53 -03:00
Felipe Alfonso
5170784338
Graphics WebGL Rendering
2018-01-24 00:03:43 -03:00
Michael Hadley
e564a6cbe7
Tile helper methods for getting actual world bounds of a tile
2018-01-23 19:16:56 -06:00
Felipe Alfonso
ca465c8139
Fixed Quad
2018-01-23 21:58:37 -03:00
Felipe Alfonso
99d850346f
Text rendering added
2018-01-23 21:40:20 -03:00
Felipe Alfonso
502ce8ddea
Static BitmapText rendering. Added rect culling to TextureTintPipeline
2018-01-23 20:36:49 -03:00
Felipe Alfonso
dd9cef61cf
Image WebGL rendering
2018-01-23 17:32:20 -03:00
Felipe Alfonso
070d946dca
Mesh and Sprite rendering
2018-01-23 16:29:47 -03:00
Felipe Alfonso
336cc4e3fe
Merge branch 'master' into rendering-cleanup
2018-01-23 13:39:33 -03:00
Michael Hadley
ebabf97ce3
Comment clarification
2018-01-23 09:41:29 -06:00
Michael Hadley
4abf0df119
Added setCollisionFromCollisionGroup for easily setting collision from Tiled collision editor
2018-01-23 09:40:59 -06:00
Michael Hadley
2cabd15684
Added SetCollisionByProperty to Tilemap API
2018-01-23 09:05:37 -06:00
Michael Hadley
e31ea73ad4
Typo fix: Tilset -> Tileset
2018-01-23 08:38:43 -06:00
Michael Hadley
629ead9a37
Making Tileset comments more specific - better explains Tiled structure
2018-01-23 07:55:43 -06:00
Michael Hadley
b8b0f42153
getTileProperty -> getTileProperties
...
A tile can have multiple properties, so it makes more sense as a plural method name
2018-01-23 07:54:03 -06:00
Michael Hadley
c7a471e29a
Convenience for getting Tileset collision group from Tile
2018-01-23 07:52:53 -06:00
Michael Hadley
ab29015742
Convenience tile getters for looking up tileset & tilemap layer
2018-01-23 07:48:59 -06:00
Felipe Alfonso
0f0b422fd7
FlatTint Pipeline progress
2018-01-22 19:51:15 -03:00
Felipe Alfonso
2b043fff65
Removed RenderTarget and Shader from components
2018-01-22 18:53:15 -03:00
Felipe Alfonso
961f00ac11
BlitterPipeline added
2018-01-22 18:21:47 -03:00
Felipe Alfonso
e8610734b7
Merge branch 'master' into rendering-cleanup
2018-01-22 12:18:38 -03:00
Richard Davey
75e9349b3c
Text canvas width cannot drop below 1x1 pixels.
2018-01-22 12:21:42 +00:00
Michael Hadley
348da8c81e
MatterTileBody: wrapper around a Tile that provides access to a matter body
2018-01-21 12:53:27 -06:00
Felipe Alfonso
a4e79875d4
Merge branch 'master' into rendering-cleanup
...
# Conflicts:
# src/gameobjects/blitter/BlitterWebGLRenderer.js
2018-01-21 11:14:27 -03:00
Richard Davey
a8c0ee8839
Allow to pass a Frame object directly to a Bob
2018-01-20 17:45:01 +00:00
Richard Davey
d7611afaab
Fixed issue with setting Bob frame
2018-01-20 17:05:53 +00:00
Richard Davey
2fb3641824
Should be a string, not a Frame object
2018-01-20 16:35:47 +00:00
Richard Davey
a5a112114b
Added blitter coordinates to bob output
2018-01-20 16:21:59 +00:00
Richard Davey
d220634fb6
Added helper methods for flip, visible and alpha
2018-01-20 16:21:42 +00:00
Richard Davey
b951809791
Fixed children reference
2018-01-20 16:21:28 +00:00
Richard Davey
134c67a51b
Split into base class and plugin extension so other classes can use them too
2018-01-20 16:21:12 +00:00
Felipe Alfonso
f388391c25
Merge branch 'master' into rendering-cleanup
2018-01-18 14:28:02 -03:00
Richard Davey
d46662cd46
Swapped to using Number.MAX_VALUE
so repeat -1 now works properly in IE11 and below.
2018-01-18 14:59:32 +00:00
Richard Davey
2deb9edc9e
Plugins now check to see if the Scene is already booted and adapt accordingly.
2018-01-18 14:00:31 +00:00
Richard Davey
5a333bc2fd
Updated to new Plugin format, removed injection and mapping
2018-01-18 05:18:09 +00:00
Michael Hadley
821eae6eee
Bug fix: weltmeister parser
2018-01-17 18:38:55 -06:00
Michael Hadley
2e68f2507d
Added Weltmeister support to Loader & Tilemap API
2018-01-17 18:34:00 -06:00
Michael Hadley
72a14df466
Shortened Tilemap format names
2018-01-17 18:34:00 -06:00
Felipe Alfonso
4983b393e3
Merge with master
2018-01-17 18:30:39 -03:00
Felipe Alfonso
cfe07706e6
Cleaning up WebGLRenderer
2018-01-17 18:25:43 -03:00
Richard Davey
bae63901d7
fillPoint draws the rect in the center of the x/y coordinates instead of the top-left
2018-01-17 15:01:24 +00:00
Antriel
3348f5bd16
Added support for drawing filled ellipse to Graphics.
2018-01-17 11:36:28 +01:00
Michael Hadley
e9ab1725f3
Make tileset the source of truth for texture in both tilemap layers
2018-01-16 19:48:17 -06:00
Richard Davey
d1cd5cbc1d
Tidied up destroy
2018-01-17 00:29:23 +00:00
Richard Davey
ad49a01271
Fixed rogue input reference and hitTest signature
2018-01-16 23:50:01 +00:00
Richard Davey
f9a7939812
Lots of work migrating to the new plugin system, fixing references and exposing on the namespace
2018-01-16 22:28:29 +00:00
Richard Davey
8e07320596
Migrating to plugins
2018-01-16 19:49:13 +00:00
Felipe Alfonso
fd4f441146
DynamicBitmapText WebGL renderer updated
2018-01-16 16:32:27 -03:00
Richard Davey
674c1b5ba8
Moving plugins to their own locations
2018-01-16 18:34:37 +00:00
Felipe Alfonso
5c782c8f7d
Merge branch 'master' into rendering-cleanup
2018-01-16 13:17:39 -03:00
Richard Davey
89c04fc193
Merged Animation component.
2018-01-16 15:39:18 +00:00
Richard Davey
be756ed7fc
Renamed folder camera
to cameras
and split up the contents into proper namespaces. Merged inc files back into classes.
2018-01-16 15:07:04 +00:00
Felipe Alfonso
77d4493f43
Merge branch 'master' into rendering-cleanup
2018-01-15 21:44:47 -03:00
Michael Hadley
f86298b8d2
Tilemap layers now initialize their alpha from LayerData
...
This makes it easy to import layer alphas from Tiled
2018-01-14 16:16:47 -06:00
Felipe Alfonso
ad1701d0ed
Changed Image gl pipeline
2018-01-12 21:20:41 -03:00
Felipe Alfonso
8bb9b1309f
SpriteBatch pipeline re-implementation
2018-01-12 21:13:41 -03:00
Felipe Alfonso
3282ead8a7
Merge branch 'master' into rendering-cleanup
2018-01-12 14:11:18 -03:00
Richard Davey
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Felipe Alfonso
40262eb0cb
Merge branch 'master' into rendering-cleanup
2018-01-12 12:42:45 -03:00
Richard Davey
718859b02e
Moved the depth sorting functions into the DisplayList class, as it's really the one responsible for it, not System.
2018-01-11 13:59:06 +00:00
Michael Hadley
fdc1af0cd2
Install isTilemap prop used by physics system for fast type checking
2018-01-10 20:45:28 -06:00
Felipe Alfonso
8e66cf9f98
Merge branch 'master' into rendering-cleanup
2018-01-10 17:05:32 -03:00
Felipe Alfonso
54274b782a
BlitterBatch pipeline working
2018-01-10 17:03:01 -03:00
Hal Helms
89e4289c9d
Fix WeightedRandomize.js
2018-01-09 22:26:02 -08:00
Hal Helms
42ad0ac399
Add semicolons to WeightedRandomize
2018-01-09 22:24:56 -08:00
Hal Helms
302eba15d9
Update WeightedRandomize docs for index arrays
2018-01-09 22:09:28 -08:00
Hal Helms
e128733f02
Update WeightedRandomize() to support index arrays
2018-01-09 22:05:34 -08:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f
Splitting the dev branch up into versions.
2016-11-22 01:36:56 +00:00
Richard Davey
7a155f66fe
Added Tilemap back in and tested with Blitter object, and it works really fast.
2016-11-15 03:11:21 +00:00
Richard Davey
346fbc2cbd
Blitter + Bob now rendering and updating fully.
2016-11-15 01:57:42 +00:00
Richard Davey
e150efea1f
Added Blitter Game Object, for fast drawing of texture frames, with single level transforms.
2016-11-14 23:38:41 +00:00
photonstorm
fa3905c8c7
Containers added themselves to States properly.
2016-11-10 17:04:29 +00:00
photonstorm
38868d6ecf
Fixed Pixel Field.
2016-11-09 15:33:42 +00:00
photonstorm
7a35f68ddc
MainLoop rendering interpolation done.
2016-11-09 12:25:26 +00:00
Richard Davey
48f90fec34
Implemented a State based MainLoop system, with fully split logic / render cycles and frame rate. Each State can now set its own frame rate. Added in more Camera commands, moved the Tween Manager into the State Systems, and started work on the new heavily reduced Game object.
2016-11-08 01:50:57 +00:00
Richard Davey
4b42972a9b
Comment out some parts that don't work yet.
2016-11-07 00:33:42 +00:00
Richard Davey
d568d2bede
Moved _sys to a StateSystems class to keep things much cleaner, and avoid setter inheritance mess.
2016-11-06 12:18:08 +00:00
Richard Davey
268e40ea7e
Add to 'state' by default now.
2016-11-03 22:26:39 +00:00
Richard Davey
a15747203e
Moved boot into Game, and added State property.
2016-11-03 22:26:16 +00:00
Richard Davey
6e284cf4f9
Removed test code.
2016-11-01 01:19:32 +00:00
Richard Davey
03b651f79f
Loads of tweaks re: Transform inheritance.
2016-11-01 00:31:45 +00:00
Richard Davey
8e2c5b7669
Removed dead code.
2016-10-31 00:03:57 +00:00
Richard Davey
c27b2f9fca
Changed batch limits. Currently running 20,000 pixels in 1 draw call.
2016-10-30 23:59:47 +00:00
Richard Davey
c4a79bfadc
Pixel Batch rendering working, and passing through properly.
2016-10-30 23:40:18 +00:00
Richard Davey
bd80999b33
Refined the Image and WebGL Renderers.
2016-10-30 22:58:14 +00:00
Richard Davey
a55df3f143
Added in the Pixel Field batch processor and start of the Game Object.
2016-10-30 22:57:50 +00:00
Richard Davey
577b81580a
New batch system working.
2016-10-30 14:57:38 +00:00
Richard Davey
f1760f961d
Working through splitting the Batch shader out of the manager, and into its own class. Got multi-shader swapping working.
2016-10-28 02:42:58 +01:00
Richard Davey
2b850ad4e8
Setting the anchor dirties the Transform.
2016-10-27 15:14:09 +01:00
photonstorm
fd3898742f
Added ability to toggle multi-texture support at run-time.
2016-10-25 16:44:23 +01:00
photonstorm
8de992175e
Renamed Renderer spriteBatch to just batch.
2016-10-25 14:30:29 +01:00
Richard Davey
120b6eb2bd
Blend Modes work. More optimisations in the batch manager.
2016-10-25 03:57:34 +01:00
Richard Davey
4c6691863c
Fixed Multi Texture support in the new batch manager.
2016-10-25 00:41:45 +01:00
photonstorm
2af81bdfba
Masses of refactoring in BatchManager, making it as compact and fast as possible.
2016-10-24 17:14:10 +01:00
Richard Davey
3cb806c86e
New addVerts method working.
2016-10-23 11:25:44 +01:00
photonstorm
64cd88f7b4
Trying out flash effect.
2016-10-19 17:17:26 +01:00
photonstorm
f1e8396b6f
Tidying up.
2016-10-19 14:30:43 +01:00
photonstorm
0a659bcf67
No longer needed.
2016-10-19 14:29:38 +01:00
photonstorm
fb3bb4b32f
Refactored into new Base Game Object class, that Image and Sprite (and everything else) will now extend. Much more versatile, and a lot less code duplication.
2016-10-19 11:54:00 +01:00
Richard Davey
5273799912
Added Color component to Stage and Image.
...
Added tint support into the Batch Manager.
2016-10-19 02:21:20 +01:00
photonstorm
18b12dfc3e
Huge amount of work getting the WebGL renderer sorted out, tidied up and merged with the latest Texture and Transform components.
2016-10-18 17:03:25 +01:00
photonstorm
3020e3b8cf
Updating core objects.
2016-10-14 08:59:24 +01:00
photonstorm
bfd391b251
Using Color component.
2016-10-14 08:58:26 +01:00
photonstorm
f9ffe098c3
Check the worldAlpha when rendering.
2016-10-14 06:32:03 +01:00
photonstorm
386e22b0fd
Commented out all the bg color stuff. It now just changes the canvas CSS.
2016-10-14 06:31:26 +01:00
photonstorm
9961eeee6b
Added worldAlpha property.
2016-10-14 06:31:01 +01:00
photonstorm
582d705b1f
Updated base game objects.
2016-10-14 04:09:22 +01:00
photonstorm
ff2caeeb1c
Some quick Image tests (will need to move to Sprite soon)
2016-10-14 02:21:21 +01:00
photonstorm
c5088d4ba6
Updated Factory to add to parent.
2016-10-14 02:21:04 +01:00
photonstorm
f6903df104
Stage now extends Container.
2016-10-14 02:20:01 +01:00
photonstorm
680ce51842
Updated Container methods, renamed renderers, added Factory.
2016-10-14 02:19:35 +01:00
Richard Davey
483c3eb34b
Updated to work with new Image properties.
2016-10-13 01:54:40 +01:00
Richard Davey
559126d7b5
Moved to using new Transform component, and adjusted other properties.
2016-10-13 01:54:18 +01:00
Richard Davey
72ee3c7a84
Updating Image game object to use the new Transform component.
2016-10-13 00:08:26 +01:00
photonstorm
9ed542781b
Added the new Data Component.
2016-10-12 15:19:04 +01:00
photonstorm
ce3308ea1d
Hooking the Loader and Cache into the new Texture Manager.
2016-10-11 14:52:17 +01:00
Richard Davey
3ac8c4fcc5
Tidied up the Children component.
2016-10-09 23:39:27 +01:00
Richard Davey
0af16817a5
Refactored GameObjects
to GameObject
.
2016-10-09 22:27:58 +01:00
Richard Davey
fb13151959
Start of the container.
2016-10-08 17:19:55 +01:00
Richard Davey
d137d3e989
Swapped over to using the new Factory.
2016-10-08 16:31:08 +01:00
Richard Davey
380e717e52
Finished off missing factories. Moved over the docs. Changed rogue @returns to @return everywhere.
2016-10-08 16:17:46 +01:00
Richard Davey
6d0dc5e003
Added BitmapText Factory.
2016-10-08 13:18:35 +01:00
Richard Davey
729020477a
New Game Objects structure in place, and starting to take shape.
...
Moved BitmapData and RenderTexture into the textures folder for now.
All Game Objects now have their own sub-folder, with their Factory and renderer functions alongside them, plus any other files they need.
New Factory class added. Currently hooked into `game.factory` for testing, but will swap to `game.add` when complete.
2016-10-08 03:05:42 +01:00
Richard Davey
f9fe6a3e94
Fixed canvas SpriteBatch and removed duplicate render functions.
2016-10-07 03:41:48 +01:00
Richard Davey
5b4280d694
Removed the matrix.
2016-10-07 03:34:42 +01:00
Richard Davey
35fd29a45a
Removed Pixi globals, and moved constructors above the prototype.
2016-10-07 03:32:37 +01:00
Richard Davey
0abf9d958d
Updated scaleMode global.
2016-10-07 03:22:59 +01:00
Richard Davey
3fab1ce385
Working through the Pixi globals and removing them.
2016-10-07 03:21:39 +01:00
Richard Davey
f6047763fa
Fixed Graphics rendering.
2016-10-07 02:53:34 +01:00
Richard Davey
ea9c9ae7b3
Removed gl texture ID.
2016-10-07 00:59:10 +01:00
Richard Davey
4cd0e833d5
Sorted out the mixin needed for the Canvas renderer.
2016-10-05 01:09:23 +01:00
Richard Davey
047a994334
Canvas and WebGL rendering Text again.
2016-10-04 22:47:05 +01:00
Richard Davey
28eb7a5f40
Adding in more renderer game objects.
2016-10-04 22:36:07 +01:00
Richard Davey
d55cc215ee
Moving more rendering functionality over.
2016-10-04 00:58:52 +01:00
photonstorm
1da95994a5
First pass of the newly re-structured Canvas Renderer (still using old texture system though).
2016-10-03 12:44:54 +01:00
Richard Davey
0aa6650422
Re-arranged methods and added parent.
2016-09-29 03:10:16 +01:00