Skip to content

Commit 1d37cde

Browse files
committed
Updated p2 to latest build and patched for Float32Array + UMD issues.
1 parent 06c6995 commit 1d37cde

3 files changed

Lines changed: 791 additions & 405 deletions

File tree

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Version 2.0.4 - "Mos Shirare" - in development
6161
### Updates
6262

6363
* Updated to [Pixi.js 1.5.3](https://github.com/GoodBoyDigital/pixi.js/releases/tag/v1.5.3)
64+
* Updated to latest [p2.js](https://github.com/schteppe/p2.js/commits/master) - all commits from 0.5.0 to Apr 27th 2014.
6465
* TypeScript definitions fixes and updates (thanks @clark-stevenson @metrofun @killalau)
6566
* Timer has removed all use of local temporary vars in the core update loop.
6667
* The Input.reset `hard` reset parameter is now passed down to the Keyboard and Key reset methods.
@@ -88,22 +89,24 @@ Version 2.0.4 - "Mos Shirare" - in development
8889

8990
### New Features
9091

92+
* New Phaser Project Template specifically for requireJS in the `resources/Project Templates` folder (many thanks @ashatch)
9193
* Loader now has an onFileStart event you can listen for (thanks @codevinsky, #705)
94+
* Group.classType allows you to change the type of object that Group.create or createMultiple makes from Phaser.Sprite to your own custom class.
9295
* Timer.clearPendingEvents will purge any events marked for deletion, this is run automatically at the start of the update loop.
9396
* Device.crosswalk detects if your game is running under Intels Crosswalk XDK.
9497
* Keyboard.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
9598
* Key.reset has a new `hard` parameter which controls the severity of the reset. A soft reset doesn't remove any callbacks or event listeners.
9699
* InputManager.resetLocked - If the Input Manager has been reset locked then all calls made to InputManager.reset, such as from a State change, are ignored.
97100
* Group.resetCursor will reset the Group cursor back to the start of the group, or to the given index value.
98101
* World.wrap will take a game object and if its x/y coordinates fall outside of the world bounds it will be repositioned on the opposite side, for a wrap-around effect.
99-
* Group.classType allows you to change the type of object that Group.create or createMultiple makes from Phaser.Sprite to your own custom class.
100-
* Game.scratch is a single handy BitmapData instance that can be used as a visual scratch-pad, for off-screen bitmap manipulation (and is used as such by BitmapData itself).
101102
* Device.support32bit is a new boolean that sets if the context supports 32bit pixel manipulation using array buffer views or not.
102-
* BitmapData.processPixelRGB lets you perform a custom callback on every pixel in the BitmapData.
103-
104103
* P2.World now has its own pause and resume methods, so you can pause the physics simulation independent of your game (thanks @georgiee)
105-
* Phaser.ArrayList is a new iterative object, similar in principal to a linked list but operating on a single array without modifying the object structure.
104+
* Phaser.ArrayList is a new iterative object, similar in principal to a set data structure, but operating on a single array without modifying the object structure.
106105
* Add scaleMode params to FilterTexture and RenderTexture (pixi.js update by @giraluna)
106+
* Your State can now have a pauseUpdate method, which is called constantly when the game is paused.
107+
* Timer.timeCap is a new setting allowing your Timers to protect against unexpectedly large delta timers (such as raf de-vis or CPU grind).
108+
* Camera.unfollow allows you to easily unfollow a tracked object (thanks @alvinsight, #755)
109+
* Animation.setFrame allows you to set the animation to a specific frame (thanks @adamholdenyall, #706)
107110
* Point.dot - get the dot product of two Point objects.
108111
* Point.cross - get the cross product of two Point objects.
109112
* Point.cross - get the cross product of two Point objects.
@@ -118,8 +121,6 @@ Version 2.0.4 - "Mos Shirare" - in development
118121
* Point.multiplyAdd - Adds two 2D Points together and multiplies the result by the given scalar.
119122
* Point.negative - Creates a negative Point.
120123
* Point.interpolate - Interpolates the two given Points, based on the `f` value (between 0 and 1) and returns a new Point.
121-
* Your State can now have a pauseUpdate method, which is called constantly when the game is paused.
122-
* The Input system is now updated even while the game is paused.
123124
* Color.packPixel packs an rgb component into a single integer.
124125
* Color.unpackPixel unpacks an integer into a color object.
125126
* Color.fromRGBA converts an integer in 0xRRGGBBAA format to a color object.
@@ -133,10 +134,15 @@ Version 2.0.4 - "Mos Shirare" - in development
133134
* Color.RGBtoString converts an rgba color into a # or 0x color string.
134135
* Color.HSVColorWheel will return an array with 360 color objects for each segment of an HSV color wheel, you can optionally set the saturation and value amounts.
135136
* Color.HSLColorWheel will return an array with 360 color objects for each segment of an HSL color wheel, you can optionally set the saturation and lightness amounts.
136-
* Timer.timeCap is a new setting allowing your Timers to protect against unexpectedly large delta timers (such as raf de-vis or CPU grind).
137-
* Camera.unfollow allows you to easily unfollow a tracked object (thanks @alvinsight, #755)
138-
* Animation.setFrame allows you to set the animation to a specific frame (thanks @adamholdenyall, #706)
139-
* New Phaser Project Template specifically for requireJS in the `resources/Project Templates` folder (many thanks @ashatch)
137+
* BitmapData.cls clears the current context.
138+
* BitmapData.fill fills the context with the given color.
139+
* BitmapData.processPixelRGB lets you perform a custom callback on every pixel in the BitmapData by passing the pixels color object to your callback.
140+
* BitmapData.processPixel lets you perform a custom callback on every pixel in the BitmapData by passing the pixels color value to your callback.
141+
* BitmapData.replaceRGB will scan the bitmap for a specific color and replace it with the new given one.
142+
* BitmapData.setHSL sets the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.
143+
* BitmapData.shiftHSL shifts the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.
144+
* BitmapData.extract scans this BitmapData for all pixels matching the given r,g,b values and then draws them into the given destination BitmapData.
145+
* BitmapData.circle draws a filled Circle to the BitmapData at the given x, y coordinates and radius in size.
140146

141147

142148
### Bug Fixes

src/gameobjects/BitmapData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ Phaser.BitmapData.prototype = {
434434
},
435435

436436
/**
437-
* Sets any or all of the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.
437+
* Sets the hue, saturation and lightness values on every pixel in the given region, or the whole BitmapData if no region was specified.
438438
*
439439
* @method Phaser.BitmapData#setHSL
440440
* @param {number} [h=null] - The hue, in the range 0 - 1.

0 commit comments

Comments
 (0)