photonstorm
7487c15f0e
Doc updates.
2015-09-08 15:56:28 +01:00
photonstorm
dbcff585e0
Time.desiredFps has moved to a getter / setter.
...
Time.physicsElapsed and Time.physicsElapsedMS are no longer calculated every frame, but only when the desiredFps is changed.
Time.update has been streamlined and the `updateSetTimeout` and `updateRAF` methods merged and duplicate code removed.
2015-09-08 15:56:19 +01:00
luckylooke
63f5df9c65
Feature: Allow random generator to get/set state
2015-09-07 21:47:36 +02:00
Richard Davey
d7a42370a4
BitmapData.move, moveH and moveV have a new optional wrap
argument allowing you to control if the contents of the BitmapData are wrapped around the edges (true) or simply scrolled off (false).
2015-09-07 01:16:43 +01:00
Richard Davey
8210d4faa1
Removed tween console.log for now.
2015-09-07 00:26:03 +01:00
Hugo Fonseca
e303fcbdaa
fix tutorial doc
2015-09-05 14:41:02 +01:00
Paul McMonagle
ad38fff083
Reordered removeEventListener calls to match addEventListener order
2015-09-04 17:11:50 -04:00
Richard Davey
1e7f8dddd9
jsdoc fix.
2015-09-03 00:46:48 +01:00
Richard Davey
38eca4d5b9
Filter.addToWorld allows you to quickly create a Phaser.Image object at the given position and size, with the Filter ready applied to it. This can eliminate lots of duplicate code.
2015-09-03 00:46:47 +01:00
Paul McMonagle
c2bf22ef7c
Added useCapture flags to removeEventListener where approriate
...
Event listeners added with true passed in as the useCapture flag are only removed when true is also passed into the removeEventListener call. Adding this flag to the stop method where appropriate fixes a memory leak in IE where events on window are never removed.
See https://msdn.microsoft.com/en-us/library/ff975250(v=vs.85).aspx
2015-09-02 14:36:49 -04:00
photonstorm
37fc327ea7
Tween elapsed debug.
2015-09-02 16:58:51 +01:00
photonstorm
8833a509eb
jsdoc fix.
2015-09-02 16:16:52 +01:00
nickryall
ca795af457
adjust wrapped text that is centered to sprite via anchor
2015-09-02 10:50:03 +12:00
Josh McGhee
fb249b2a41
cleaning up to obey jshint
2015-09-01 01:10:56 +01:00
Josh McGhee
4a19aca212
some cleaning up and documentation polish
2015-09-01 01:03:51 +01:00
Josh McGhee
cbd7265bee
cherry pick commits from master. Read: I'm not clever.
2015-09-01 00:57:54 +01:00
Richard Davey
41906c5ac1
When the Text width was being calculated it would add the strokeThickness
value twice, causing an alignment offset (thanks @nickryall #2039 )
2015-08-31 11:33:18 +01:00
Richard Davey
d6ae99544b
Merge pull request #2042 from cloakedninjas/dev
...
Fixing typos in transformCallbackContext
2015-08-31 13:15:05 +03:00
Richard Davey
f46e6e3778
Merge pull request #2043 from Garbanas/feature/typescript-definitions
...
Updated typescript definitions for Phaser 2.4.3
2015-08-31 13:14:32 +03:00
Richard Davey
adcc5d3afb
Merge pull request #2047 from Garbanas/feature/p2-remove-collision-group
...
Convenience function to remove a collision group from a P2 Body
2015-08-31 13:12:13 +03:00
Richard Davey
c10c7cdf2a
Merge pull request #2044 from rblopes/dont-prefix-data-urls
...
Prevent 'data:' URLs from being prefixed
2015-08-31 13:08:22 +03:00
Richard Davey
af194d447c
jsdoc fix #2049
2015-08-31 10:57:54 +01:00
Christoph Dörfel
96441fdb27
Set correct default value for 'clearCallback' on P2.Body.removeCollisionGroup
2015-08-30 01:30:33 +02:00
Christoph Dörfel
2623ddeaf7
Convenience function to remove a collision group from a P2 Body
2015-08-30 00:19:37 +02:00
Christoph Dörfel
c30b993cb9
Add some changes from phaser.comments.d.ts back to phaser.d.ts
2015-08-29 23:08:07 +02:00
Christoph Dörfel
ab6feb3ebc
Fix CachedImage interface definition
2015-08-29 22:52:53 +02:00
Rafael Barbosa Lopes
1485fd110a
Updated to use a matching expression instead.
...
Replaced the booleans with a matching expression. Now, URLs
beginning with the following patterns will be ignored:
- blob:
- data:
- http://
- https://
- //
As suggested by @pnstickne.
2015-08-28 17:19:24 -03:00
Rafael Barbosa Lopes
14632cdfb5
Prevent 'data:' URLs from being prefixed
...
Fixes an issue where 'data:' URLs may get prefixed by
`#baseURL` and `#path` properties making these URLs invalid.
2015-08-28 15:14:30 -03:00
Christoph Dörfel
2796a9db48
Updated typescript definitions for Phaser 2.4.3
2015-08-28 15:09:41 +02:00
photonstorm
32b0c98f7a
Group.resetChild is a new method that allows you to call both child.reset
and/or child.loadTexture
on the given child object. This is used internally by getFirstDead
and similar, but is made public so you can use it as a group iteration callback. Note that the child must have public reset
and loadTexture
methods to be valid for the call.
...
Group.getFirstDead, Group.getFirstAlive and Group.getFirstExists all have new optional arguments: `createIfNull`, `x`, `y`, `key` and `frame`. If the method you call cannot find a matching child (i.e. getFirstDead cannot find any dead children) then the optional `createIfNull` allows you to instantly create a new child in the group using the position and texture arguments to do so. This allows you to always get a child back from the Group and remove the need to do null checks and Group inserts from your game code. The same arguments can also be used in a different way: if `createIfNull` is false AND you provide the extra arguments AND a child is found then it will be passed to the new `Group.resetChild` method. This allows you to retrieve a child from the Group and have it reset and instantly ready for use in your game without any extra code.
2015-08-28 12:23:48 +01:00
cloakedninjas
efd6a5e152
Fixing typos in transformCallbackContext
2015-08-28 10:10:29 +01:00
Richard Davey
14dd1eabbf
Updated readme.
2015-08-28 09:14:09 +01:00
photonstorm
f0d7da1c56
Removed RND.float as it's a reserved word :(
...
Fixed jshint errors.
2015-08-27 19:28:01 +01:00
photonstorm
b14510d1e7
Fixing some emitter issues with position.
2015-08-27 19:11:26 +01:00
photonstorm
9d1217ea21
Fixed the rnd calls.
2015-08-27 14:57:50 +01:00
photonstorm
ddcc46124c
RandomDataGenerator.float is a new alias for the method 'realInRange' and takes the same arguments.
2015-08-27 14:57:23 +01:00
photonstorm
9798864cc6
Emitter.emitParticle now has 4 new optional arguments: x
, y
, key
and frame
. These allow you to override whatever the Emitter default values may be and emit the particle from the given coordinates and with a new texture.
2015-08-27 14:48:52 +01:00
Richard Davey
f380549240
Merge pull request #2036 from qdrj/dev
...
Fixed TypeScript definitions
2015-08-27 14:26:44 +03:00
Vladislav Forsh
fb299b8838
Fixed few typos in typings
2015-08-27 13:56:49 +03:00
Vladislav Forsh
3b71baff7d
Fixed typos in typings for CachedImage
2015-08-27 13:53:22 +03:00
Richard Davey
a2fda3fa47
Merge pull request #2034 from pnstickne/wip-2032d
...
Change splice.call(arguments, ..) to use slice
2015-08-27 12:47:53 +03:00
Richard Davey
902ad357c6
Merge pull request #2035 from timotei/dev
...
Fix TypeScript `addKeys` declaration
2015-08-27 12:43:14 +03:00
timotei
5ec7d7e4c9
Fix TypeScript addKeys
declaration
...
Since we expect an object that's `any`
instead of an array `any[]`
2015-08-27 11:21:57 +03:00
Paul
26a6338072
Change splice.call(arguments, ..) to use slice
...
- Bypasses issue of usage incorrectly omitting 2nd argument to `splice`
- More clear of intent; `slice` does not modifify `arguments`
- `slice` is faster across all desktop browsers, by varying degrees
- Probably due to parameter-aliasing and de-opts when modified.
- Both `slice` and `splice` create a new Array object
2015-08-26 23:50:16 -07:00
Richard Davey
bae732ca9e
Merge pull request #2027 from bsparks/dev
...
utilize the heal method
2015-08-26 23:38:40 +03:00
Richard Davey
0689395aa9
Merge pull request #2033 from clark-stevenson/dev
...
Minor TypeScript definition edits.
2015-08-26 23:30:38 +03:00
Richard Davey
a1bd35fc35
Tidied up formatting and improved jsdocs.
2015-08-26 19:13:46 +01:00
Clark Stevenson
77329e7889
Minor TypeScript definition edits.
2015-08-26 19:07:56 +01:00
Richard Davey
b4a72b8747
Merge pull request #2025 from rwrountree/dev
...
Optimize the average function in math.js
2015-08-26 21:07:24 +03:00
Richard Davey
31d6c4d43c
Merge pull request #2029 from milkey-mouse/dev
...
Fixed TypeScript definition for replaceRGB
2015-08-26 21:04:19 +03:00