photonstorm
506a091257
Sound.allowMultiple allows you to have multiple instances of a single Sound playing at once. This is only useful when running under Web Audio, and we recommend you implement a local pooling system to not flood the sound channels. But it allows for one Sound object to play overlapping times, useful for gun effects and similar ( #1220 )
2014-10-09 14:44:25 +01:00
photonstorm
a2a60f207f
Updated readme and TS defs.
2014-10-09 14:16:24 +01:00
photonstorm
b00866cee9
AnimationManager.name will now return the name
property of the currently playing animation, if any.
2014-10-09 14:06:13 +01:00
Clark Stevenson
90c8ec4edf
Minor Typescript Updates
2014-10-03 21:28:20 +01:00
Richard Davey
acba9c4e14
Updated TypeScript defs.
2014-09-29 12:14:02 +01:00
photonstorm
415c7fe578
Added the sourceRect
and maskRect
parameters back into BitmapData.alphaMask
as they were accidentally removed in 2.1 (thanks seejay92)
2014-09-25 15:30:03 +01:00
Clark Stevenson
01bcec97d2
Update phaser.d.ts
...
Small fixes and a few additions
2014-09-25 09:38:38 +01:00
Clark Stevenson
4b311944d7
Should bring phaser upto date with master, P2 has been added as it is cool to have access to the p2 data.
2014-09-11 00:02:23 +01:00
photonstorm
33d9b19e29
The Debug canvas is now cleared on State swap.
2014-09-09 15:28:58 +01:00
photonstorm
c40c140631
Camera.roundPx is a new boolean. If set to true
it will call view.floor
as part of its update loop, keeping its boundary to integer values. Set to false
to disable this from happening ( #1141 )
2014-09-09 12:47:27 +01:00
photonstorm
9fa3f8f2b1
alphaMask update.
2014-09-04 16:53:19 +01:00
photonstorm
3a69ed944d
Fixed TypeScript defs for BitmapData.
2014-09-04 16:52:10 +01:00
Chad Engler
6b324720bd
fix typo of 'object'
2014-09-01 10:56:28 -07:00
Chad Engler
43394300f7
change all Objects to any
2014-09-01 08:55:02 -07:00
Chad Engler
449e0a130b
implement resize callback
2014-09-01 08:54:05 -07:00
photonstorm
6784c3a50d
TypeScript def updates to match new ScaleManager.
2014-09-01 03:40:26 +01:00
Chad Engler
e6f3bd5da6
more typescript definition file updates
2014-08-30 18:21:33 -07:00
Richard Davey
e5cfa8202a
Merge pull request #1154 from saikobee/issues/1153
...
Fixes #1153
2014-08-31 00:12:45 +01:00
Brian Mock
fe94d7f002
Fixes #1153
...
Previously the `Phaser.Keyboard` module's `lastKey` property was of type
`string` in the TypeScript definition file, but it is actually a
`Phaser.Key` object, so `build/phaser.d.ts` has been updated to reflect
that.
2014-08-29 21:28:55 -07:00
Rene Hangstrup Møller
4efac73ec6
p2.createContactMaterial() options parameter should be object
2014-08-29 23:02:03 +02:00
Chad Engler
6483e48b2e
fix some minor issues in the typescript definition
2014-08-28 06:56:27 -07:00
Rene Hangstrup Møller
097b35bbc0
fixed function type for easing function
2014-08-22 22:13:58 +02:00
Rene Hangstrup Møller
82d701bba4
Emitter.setScale() has separate arguments for x and y
2014-08-22 18:38:05 +02:00
clark-stevenson
ecf8b4eb26
TileMapLayer getTileX/Y returns number not Tile
...
Fixed simple type error.
http://www.html5gamedevs.com/topic/8621-gettilex-gettiley-typescript-signature-wrong/
2014-08-17 20:43:03 +01:00
photonstorm
f887ee0df8
TypeScript definition updates to help fix for the noimplicitany
option (thanks @Waog #1088 )
2014-08-06 16:24:33 +01:00
Clark Stevenson
ebe1f9901f
Fixed #1056 draw typo changed to drag
2014-07-22 12:39:53 +01:00
Clark Stevenson
2526ef2edc
Fixed BitmapFont tint
2014-07-18 13:31:20 +01:00
Clark Stevenson
769822e6da
Merge branch 'dev' of https://github.com/photonstorm/phaser into dev
2014-07-18 12:56:38 +01:00
photonstorm
24527eac3e
Group.checkAll allows you to check if the same property exists across all children of the Group and is set to the given value (thanks @codevinsky #1013 )
...
Group.checkProperty allows you to check if the property exists on the given child of the Group and is set to the value specified (thanks @codevinsky #1013 )
Phaser.Utils.setProperty will set an Objects property regardless of depth (thanks @codevinsky #1013 )
Phaser.Utils.setProperty will set an Objects property regardless of depth (thanks @codevinsky #1013 )
Phaser.Utils.getProperty will get an Objects property regardless of depth (thanks @codevinsky #1013 )
2014-07-18 11:52:39 +01:00
Clark Stevenson
643a46a57f
Update phaser.d.ts
2014-07-16 14:51:57 +01:00
photonstorm
f6935c01f8
Sprite.loadTexture will store the smoothed
property of the Sprite and re-apply it once the new texture is loaded.
2014-07-16 00:56:26 +01:00
photonstorm
aaf82f9d3a
Sprite.loadTexture has a new optional stopAnimation
boolean parameter which will halt the currently running animation (if any) after changing the texture (based on #1029 ).
2014-07-16 00:29:43 +01:00
photonstorm
f78a527ad5
Prevented objects with pixel perfect checks from over-riding other higher priority ID items ( #983 )
...
Rebuilt the way items are polled for Pointer events (drag, click, move). Now faster and more efficient, especially when some items in the stack require pixel perfect checks.
2014-07-15 11:20:57 +01:00
Clark Stevenson
a7bd3977eb
Incorrect GamePad replaced with Gamepad
2014-07-14 11:28:20 +01:00
Clark Stevenson
0ec4fefbc4
Updated Phaser.d.ts to dev
...
Fixes #1008
2014-07-13 23:46:24 +01:00
Alvin
9e9cf1ab23
Added game.add.plugin to the definitions file
2014-07-13 23:45:58 +01:00
photonstorm
494c33a9f4
Rectangle.randomX will return a random value located within the horizontal bounds of the Rectangle.
...
Rectangle.randomY will return a random value located within the vertical bounds of the Rectangle.
2014-07-09 11:34:18 +01:00
photonstorm
003403c832
Color.getWebRGB will now accept either an Object or numeric color value.
2014-07-09 11:15:24 +01:00
photonstorm
8e7623e8a9
Updates TS defs ( fix #982 )
2014-07-08 13:01:43 +01:00
Clark Stevenson
a644443f6e
Update TS Defs
2014-07-07 20:02:44 +01:00
photonstorm
14109aeeb1
Animation.next will advance to the next frame in the animation, even if it's not currently playing. You can optionally define the number of frames to advance, but the default is 1. This is also aliased from the AnimationManager, so you can do Sprite.animations.next()
.
...
Animation.previous will rewind to the previous frame in the animation, even if it's not currently playing. You can optionally define the number of frames to rewind, but the default is 1. This is also aliased from the AnimationManager, so you can do `Sprite.animations.previous()`.
2014-07-03 16:23:36 +01:00
photonstorm
e4536f9999
addMarker added to ts defs ( #968 )
2014-07-03 14:04:14 +01:00
photonstorm
212436529c
Updated TS defs.
2014-07-03 02:22:56 +01:00
photonstorm
2916f0413f
Group.bringToTop (and consequently Sprite.bringToTop) no longer removes the child from the InputManager if enabled (thanks @BinaryMoon, fix #928 )
...
Group.sendToBack (and consequently Sprite.sendToBack) no longer removes the child from the InputManager if enabled.
Group.add has a new optional boolean parameter: `silent`. If set to `true` the child will not dispatch its `onAddedToGroup` event.
Group.addAt has a new optional boolean parameter: `silent`. If set to `true` the child will not dispatch its `onAddedToGroup` event.
Group.remove has a new optional boolean parameter: `silent`. If set to `true` the child will not dispatch its `onRemovedFromGroup` event.
Group.removeBetween has a new optional boolean parameter: `silent`. If set to `true` the children will not dispatch their `onRemovedFromGroup` events.
Group.removeAll has a new optional boolean parameter: `silent`. If set to `true` the children will not dispatch their `onRemovedFromGroup` events.
Internal child movements in Group (such as bringToTop) now uses the new `silent` parameter to avoid the child emitting incorrect Group addition and deletion events.
2014-07-02 14:04:14 +01:00
clark-stevenson
3c90cccdd5
Various updates to Phaser, and 1.5.4 PIXI
2014-07-01 22:42:36 +01:00
Phaiax
3a70e76e23
Update phaser.d.ts: P2 default Collision groups
2014-06-28 02:02:29 +02:00
Phaiax
e940f81b85
Update phaser.d.ts: fix my fix: createCollisionGroup
2014-06-28 01:48:01 +02:00
Phaiax
961d25cadc
createCollisionGroup -> public, included in .d.ts file
2014-06-28 01:25:51 +02:00
Richard Davey
a0a7c02da3
Merge pull request #948 from Phaiax/update-d-ts
...
phaser.d.ts: Changed return type of getPhysicsData to Object[]
2014-06-27 18:34:47 +01:00
Phaiax
b9791cea93
Changed return type of getPhysicsData to Object[]
2014-06-26 21:57:32 +02:00