Tim van den Eijnden
990867547e
fix issue with lineSpacing, no space was added between the lines. The complete text moved down instead
2014-11-25 16:45:29 +01:00
photonstorm
72eaee3139
Adjusted Sprite.preUpdate to remove the lifespan calculation.
2014-11-25 14:18:18 +00:00
photonstorm
1068563914
jsdoc fixes.
2014-11-25 14:15:55 +00:00
Paul
e2f65f58a8
Merge commit '0d9678e512f9037b686ca480907c90f82d5b631e' into wip-time-clarify
2014-11-25 00:35:31 -08:00
Paul
5f9025f800
Sprite/Time - lifespan based on physicsTime
...
- Lifespan is updated based on physics time which makes this consistent
with fixed-step updates and tweens, etc.
2014-11-25 00:33:13 -08:00
photonstorm
0d9678e512
Promoted Game time loop count to protected public var. Checked in Sprite.lifespan decrement to avoid over-decreasing the lifespan ( #1358 )
2014-11-25 02:50:39 +00:00
photonstorm
c4b81ff6ea
jsdoc fixes.
2014-11-25 00:24:28 +00:00
photonstorm
2d50334cd3
Updated lifeSpan to use elapsedMS instead.
2014-11-24 12:54:39 +00:00
photonstorm
06b2a2c6a0
Added Tween.generateData back in, now all the Particles and Tween examples work properly.
2014-11-24 12:34:42 +00:00
photonstorm
21479acd8e
Sprite.autoCull now properly works if the camera moves around the world.
...
Sprite.inCamera uses a much faster check if auto culling or world bounds checks are enabled and properly adjusts for camera position.
2014-11-18 12:29:55 +00:00
photonstorm
497b00d781
Tidying up a little.
2014-11-13 00:27:47 +00:00
photonstorm
d6297884e6
Added Sprite.setScaleMinMax for testing.
2014-11-08 13:31:35 +00:00
Paul
60268dd048
Changes to preserve original API
...
- Added @deprecated/@readonly to various some properties but public properties maintain the same semantics
- Also removed some "cleverness"
- Still same good fixes ..
2014-10-29 19:31:03 -07:00
Paul
5d04c62b33
Button - bug fixes, issue #1246
...
- Fix incorrect passing of "was clicked" to processInteractiveObjects
- Button would not return to Over/Out state because of strict too check to catch `undefined`
- Removed [undocumented] property usage from processInteractiveObjects and slight reformatting
- Update Button state frames/sounds to remove duplication
- Updated documentation in Button for consistency
2014-10-28 23:26:35 -07:00
spayton
a942a03631
Texture width is recalculated larger on subsequent call to updateText() when text has a stroke thickness > 1
...
In function override Phaser.Text.prototype.updateText(), don't include this.context.lineWidth in width calculation as it's already incorporated by this.style.strokeThickness.
2014-10-28 11:48:57 +00:00
photonstorm
26a1a080d2
Buttons are now waiting to be told when they're removed from the World.
2014-10-28 01:49:14 +00:00
photonstorm
d050b8471b
Added onRemovedFromWorld signal. Not currently used anywhere, but will be.
2014-10-28 01:48:42 +00:00
photonstorm
d22f2bd89b
Small fix for Text wordWrapping #1247
2014-10-23 16:03:29 +01:00
photonstorm
bebb83bad4
Removed methods that Pixi now offers directly.
2014-10-22 23:53:02 +01:00
photonstorm
b56c3bf54e
jshint fixes
2014-10-22 22:49:20 +01:00
photonstorm
1bc1d2eb94
Fixed Text class for Pixi v2 changes.
2014-10-22 22:35:21 +01:00
photonstorm
73f210257a
Removed duplicate Pixi classes and updated the build manifests to pull-in the correct Pixi Matrix class.
2014-10-22 21:20:38 +01:00
photonstorm
96fd0ade74
JSDoc fixes.
2014-10-21 22:43:42 +01:00
photonstorm
9d58297eb9
Button.setSounds now works if given an AudioSprite as the sound source.
2014-10-20 23:17:05 +01:00
photonstorm
35d29170d0
Lots of small jsdoc fixes and DocGen updates.
2014-10-20 00:54:56 +01:00
photonstorm
c960ab5d44
Typo fix.
2014-10-17 17:07:43 +01:00
photonstorm
5e734a6bb6
Pixi v2 UV update fixes.
2014-10-17 16:52:47 +01:00
photonstorm
4f1ba99120
BitmapData.getFirstPixel will scan the BitmapData and return the color and location of the first non-transparent pixel encountered. You can specify one of 4 scan directions: top to bottom, bottom to top, left to right and right to left.
...
BitmapData.getBounds will return a `Rectangle` object that encompasses the full extent of the non-transparent pixels in the BitmapData. This can be useful if you wish to trim away transparent pixels from the sides of a BitmapData down to size before saving.
2014-10-17 16:51:50 +01:00
photonstorm
fbfb107146
JSDoc fixes in the Rope class (thanks @Rovanion)
2014-10-15 22:05:38 +01:00
Richard Davey
837a035194
Merge pull request #1228 from Rovanion/dev
...
Corrected documentation for Phaser.Rope
2014-10-15 22:04:17 +01:00
Richard Davey
86cfc7111e
Fixed UV updates for WebGL textures.
2014-10-15 11:36:35 +01:00
photonstorm
d206dd0dad
Updates for Pixi v2
2014-10-13 12:20:25 +01:00
photonstorm
ac27f12c95
Fixes for Pixi update WebGL UV calls.
2014-10-11 04:18:42 +01:00
Rovanion Luckey
3ec5f2e0d3
Was able to figure out what the Array was made of through an example.
2014-10-10 17:16:53 +02:00
Rovanion Luckey
1cfbb31937
Figured out that it's supposed to be an array of some sort from the pixi source.
2014-10-10 17:16:53 +02:00
Rovanion Luckey
9023ec1609
Corrected the docs for Rope somewhat.
2014-10-10 17:16:53 +02:00
photonstorm
08c6106c35
Fixed issue with textureLine creating white blocks in iOS.
2014-10-09 02:30:31 +01:00
Richard Davey
e6812cffa6
Added BMD frame checks.
2014-10-05 12:35:40 +01:00
photonstorm
ff034b5077
Fixed textureLine and added repeat parameter.
2014-10-03 03:57:49 +01:00
photonstorm
ab78710daa
BitmapData.textureLine takes a Phaser.Line object and an image in the image cache. It then accurately draws the image as a repeating texture for the full length of the line.
2014-10-03 02:21:09 +01:00
photonstorm
d65c526184
Cache.addBitmapData has a new parameter: frameData
allowing you to pass a Phaser.FrameData
object along with the BitmapData.
...
Cache.getFrameData has a new parameter: `map` which allows you to specify which cache to get the FrameData from, i.e. `Phaser.Cache.IMAGE` or `Phaser.Cache.BITMAPDATA`.
Sprite.loadTexture if given a BitmapData as the texture will now query the cache to see if it has any associated FrameData, and if so it will load that into the AnimationManager.
2014-10-01 03:10:13 +01:00
photonstorm
26f9e05dca
BitmapData.shadow(color, blur, x, y) provides a quick way to set all the relevant shadow settings, which are then be used in future draw calls.
2014-09-30 22:50:08 +01:00
photonstorm
ef85b8415d
If you pass a tinted Sprite to BitmapData.draw
or BitmapData.copy
it will now draw the tinted version of the Sprite to the BitmapData and not the original texture.
2014-09-30 21:07:57 +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
photonstorm
7f196a01e7
Text.addColor allows you to set specific colors within the Text. It works by taking a color value, which is a typical HTML string such as #ff0000
or rgb(255,0,0)
and a position. The position value is the index of the character in the Text string to start applying this color to. Once set the color remains in use until either another color or the end of the string is encountered. For example if the Text was Photon Storm
and you did Text.addColor('#ffff00', 6)
it would color in the word Storm
in yellow.
...
Text.clearColors resets any previously set colors from `Text.addColor`.
2014-09-24 17:10:02 +01:00
photonstorm
dd74e3b0b4
Changing any of the Text properties such as font, lineSpacing and fontSize on a Text object that wasn't already on the display list would cause an updateTransform error. Parent is now checked first in all setters.
2014-09-24 01:10:36 +01:00
Richard Davey
abe6f5ace2
Point.parse updated to allow either/or x/y setting and default values.
...
Point.parse will return a new Point object based on the x and y properties of the object given to Point.parse (thanks @codevinsky #1198 )
2014-09-23 22:23:01 +01:00
Richard Davey
01fd3df434
AudioSprite support is now built into the Loader and SoundManager. AudioSprites are like sprite sheets, only they consist of a selection of audio files and markers in a json configuration. You can find more details at https://github.com/tonistiigi/audiosprite (thanks @codevinsky #1205 )
...
Fixed AudioSprite jsdoc, casing and formatting issues.
2014-09-23 22:15:09 +01:00
Jeremy Dowell
7cce1366f2
jshint cleanup
2014-09-23 10:25:49 -05:00
Jeremy Dowell
dd0d1729ad
Phaser.AudioSprite
...
AudioSprite implementation for phaser.
Loads audio sprites based on the file format created with: https://github.com/tonistiigi/audiosprite
2014-09-23 10:21:29 -05:00
photonstorm
d18f523d93
jsdoc fixes.
2014-09-18 16:58:25 +01:00
photonstorm
20551f9129
Lots of jsdocs fixes ready for the new doc generator.
2014-09-16 17:35:08 +01:00
photonstorm
60acef2f97
If Game Objects change their frame, such as with an animated Sprite, and the change goes from a previously trimmed frame to a non-trimmed (full size) one, then the previous trim values were still left active, causing it to glitch (thanks stupot)
2014-09-11 20:56:01 +01:00
photonstorm
052e5042ed
jsdoc fix.
2014-09-08 22:34:53 +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
photonstorm
9aaa8d80ca
jsdocs, fixes to load, draw, copy and addToWorld.
2014-09-04 05:05:30 +01:00
photonstorm
7d9a4f4100
Phaser.Text wouldn't render the text to its local canvas if you passed the text on the constructor and didn't add it to the display list. If a string is given it now updates the local canvas on creation.
2014-09-04 02:18:12 +01:00
Richard Davey
fe0c03d5d7
Phaser.Text.destroy will now destroy the base texture by default ( #1162 )
2014-09-03 22:34:10 +01:00
Richard Davey
68368357ba
jshint fix
2014-09-03 22:26:05 +01:00
photonstorm
804eea9ca3
Optimised BitmapData.copy and refactoring continues.
2014-09-03 20:56:31 +01:00
photonstorm
15e6edc56b
BitmapData.copy no longer creates any temporary variables. It also accurately copies over Sprite/Image values before drawing them.
...
Creation now defaults to a texture size of 256x256.
2014-09-03 12:53:07 +01:00
photonstorm
f5ad22399f
BitmapData.copy is now the new uber copy function. Helper methods coming.
2014-09-03 11:12:06 +01:00
photonstorm
3b28d568e9
Ironed out the issues in BitmapData.fastCopy.
2014-09-03 01:28:58 +01:00
Richard Davey
773be312ce
BitmapData.fastCopy test.
2014-09-02 23:16:10 +01:00
photonstorm
de07f5b649
Testing out Frame and Animation clone features.
2014-09-02 21:03:16 +01:00
photonstorm
d26f937f1c
RetroFont has a new property called frameData which contains the Frame objects for each of the letters in the font, which can be used by Sprites.
2014-09-02 00:41:53 +01:00
photonstorm
8f7141ca3f
New blit op
2014-09-01 20:22:47 +01:00
photonstorm
9047e4d5ca
Sorted out the issue with Images not working properly with texture atlases.
2014-08-29 15:55:23 +01:00
photonstorm
b4ba7958c6
Added missing copy parameter to Image.crop, fixing jshint in the process.
2014-08-28 23:26:27 +01:00
photonstorm
e3f73b87ba
Fixed some jsdocs issues and added the Image.alive property.
2014-08-28 17:04:59 +01:00
photonstorm
05922d6fb0
Lots of fixes to the Image class to restore texture loading and fix cropping so it works exactly the same as the Sprite now.
2014-08-28 17:04:59 +01:00
photonstorm
ec687868de
Input.setMoveCallback has been removed due to deprecation.
...
BitmapData.refreshBuffer has been removed and replaced with BitmapData.update.
BitmapData.drawSprite has been removed due to deprecation. Use BitmapData.draw instead.
Pointer.moveCallback has been removed due to deprecation.
SinglePad.addButton has been removed due to deprecation.
P2.Body.loadData has been removed due to deprecation.
P2.World.defaultFriction and defaultRestitution have been removed due to deprecation.
Canvas.create noCocoon parameter has been removed due to deprecation.
Color.getColorInfo, RGBtoHexstring, RGBtoWebstring and colorToHexstring has been removed due to deprecation.
2014-08-28 03:40:59 +01:00
photonstorm
fa45d7feff
Events.onDestroy is a new signal that is dispatched whenever the parent is being destroyed. It's dispatched at the start of the destroy process, allowing you to perform any additional house cleaning needed (thanks @jonkelling #1084 )
...
Group.onDestroy is a new signal that is dispatched whenever the Group is being destroyed. It's dispatched at the start of the destroy process, allowing you to perform any additional house cleaning needed (thanks @jonkelling #1084 )
2014-08-28 02:56:06 +01:00
photonstorm
6b4510f693
TileSprite now has the alive
property, which should help with some Group operations (thanks @jonkelling #1085 )
2014-08-28 02:36:30 +01:00
Richard Davey
9941942941
Merge pull request #1030 from codevinsky/rope
...
Phaser.Rope
2014-08-28 01:56:02 +01:00
Richard Davey
7fe4abc5c4
Merge pull request #1059 from lucbloom/spritesheet-to-framecount
...
Sprite Sheet => frame count
2014-08-28 01:49:15 +01:00
photonstorm
33c52eaf09
BitmapData alpha option added.
...
Pointer return type added.
pixi manifest updated to remove need for geom classes.
2014-08-27 21:26:29 +01:00
Alvin
6da5831f73
Merge pull request #1099 from kay-is/master
...
Method documentation was missing parameters.
2014-08-08 09:56:39 +02:00
Kay Plößer
9ac06c44ba
Method documentation was missing parameters.
2014-08-07 14:47:54 +02:00
photonstorm
9bbc8ecce3
Phaser.Physics.P2.addPolygon now takes a nested array again (thanks @wayfu #1060 )
2014-07-31 13:39:26 +01:00
Luc Bloom
7f3b542fdd
Removed the notion of Sprite Sheets vs single frame images
...
Instead of making a distinction between single frame images and Sprite
Sheets, I added a simple FrameData with one Frame to every image that
gets loaded. This way, a lot of the engine code can be simplified.
For instance, you can play animations on any Sprite without having to
check the “frame count” of its image anymore.
The engine doesn’t have to check for non-existing .frameData anymore.
An animation can keep on playing when an image happens to be set with 1
frame, continuing its animation when after that, another image is set
with multiple frames.
Think of it this way: an image with one frame is an animation of just
one frame.
2014-07-22 10:24:53 +02:00
jackrugile
05d856d4ea
remove escaping backslashes from retro font text set documentation
2014-07-20 15:15:02 -06:00
photonstorm
883c11e377
BitmapData.resize fixed to update the crop property too, resolves issues with images getting cut off with BitmapData.load.
2014-07-18 03:33:17 +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
d10dea27b0
Pixi updated worldTransform from an Array to an Object and Phaser Image, BitmapText, Text and Graphics were still using array access to populate the world property, giving it incorrect results (thanks @alvinsight)
2014-07-15 22:44:02 +01:00
jdowell
f969c15aea
fixed: replaced 'snake' with key
2014-07-15 14:24:47 -05:00
jdowell
6432817c7f
added: Rope debug, segments, updateAnimation
2014-07-15 14:01:15 -05:00
jdowell
5a35e1a61d
Initial Rope Commit
2014-07-15 11:40:40 -05:00
Charles Black
6363b35e26
docs typo
2014-07-14 11:01:21 -04:00
photonstorm
2c421d27ce
GameObjectFactory.spriteBatch now lets you specify null
as a parameter for the parent and automatically adds the batch to game.world
as a result. Also fixed jsdocs issues (@petarov #1000 )
2014-07-14 12:56:05 +01:00
photonstorm
22462566b4
Restored old Image object.
2014-07-11 18:02:40 +01:00
photonstorm
26fb6cb866
Temporary fix for #997
2014-07-11 16:04:15 +01:00
Richard Davey
435fab5205
Merge pull request #990 from lucbloom/warn-texture-not-found
...
Warn about missing textures and show the key that the author was trying to use.
2014-07-10 19:16:07 +01:00
photonstorm
0d0a16ee2c
loadTexture fix.
2014-07-10 19:13:17 +01:00
photonstorm
a3cf246aee
Image.loadTexture fix and new dist files.
2014-07-10 19:03:17 +01:00
Luc Bloom
3f5bde89fc
Warn about missing textures
...
And show the key that the author was trying to use. It can be very
helpful for debugging which image a sprite was trying to load exactly.
2014-07-10 18:49:16 +02:00
photonstorm
a7124cb44c
Swapped back to camera.screenView as that's the correct check for inCamera.
2014-07-10 16:38:15 +01:00
photonstorm
0966971427
jshint fixes and tidying up for release
2014-07-10 16:21:50 +01:00
photonstorm
25e7e6ffc4
Pretty huge refactoring to cut down on duplicated code.
2014-07-10 16:07:02 +01:00
photonstorm
34efa223cb
Small conditional check in case someone has removed the animations property.
2014-07-10 16:06:47 +01:00
photonstorm
6a0b8b5e73
Fixed and working Sprite.crop - removed lots of _cache vars no longer required and added two new private vars.
2014-07-10 14:47:12 +01:00
photonstorm
813de7c125
More crop work.
2014-07-10 10:46:19 +01:00
photonstorm
0ff2eb2fb9
jshint fixes
2014-07-09 11:36:45 +01:00
photonstorm
ffd51479e4
Crop test
2014-07-09 05:43:15 +01:00
photonstorm
4fc26e4a26
Updated to the latest version of Pixi.
2014-07-09 05:40:50 +01:00
photonstorm
3ff8b9f999
On-going crop tests.
2014-07-08 12:59:36 +01:00
photonstorm
2a106473b4
Added more detail to the Tween docs.
2014-07-08 12:59:36 +01:00
photonstorm
2d676b00b4
Working through crop issues.
2014-07-08 12:59:36 +01:00
Alvin
7031d9ccc1
Fixed typo
2014-07-07 18:19:02 +02:00
Alvin
f6f70d35a4
Added game.add.plugin, a shotcut for game.plugins.add
2014-07-07 18:18:00 +02:00
photonstorm
da822ab207
Fixing anchor issue :)
2014-07-03 17:21:06 +01:00
Phaiax
00bf349ff5
Body.enable only exists in Arcade physics, so move conditions concerning this into arcarde
2014-06-30 12:49:53 +02:00
photonstorm
3888653022
Added new loadTexture and setFrame calls. Will test crop support.
2014-06-11 14:38:14 +01:00
Richard Davey
bf48b1a6c3
Merge pull request #894 from lstor/dev
...
Fix getPixel for pixels with zero red value.
2014-06-10 23:52:26 +01:00
photonstorm
7c7d9153e6
Sprite.crop (and Image.crop) has been completely overhauled. You can now crop animated sprites (sprite sheet and texture atlas), you can define the x/y crop offset and the crop rectangle is exposed in the Sprite.cropRect property.
...
Sprite.updateCrop is available if you wish to update an externally referenced crop rectangle.
Sprites and Images now have their own textures objects, they are no longer references to those stored in the global Pixi.TextureCache. This allows you to redefine the texture frame dynamically without messing up any other Sprites in your game, such as via cropping. They still share global Base Textures, so image references are kept to a minimum.
Sprite.resetFrame will revert the Sprites texture frame back to its defaults dimensions. This is called when you call Sprite.crop with no rectangle, to reset the crop effect, but can be userful in other situations so we've left it as a public method.
2014-06-10 23:37:33 +01:00
Lars Storjord
38e971c819
Fix getPixel for pixels with zero red value.
...
Remove an erroneous if that causes getPixel() to fail if the red value
of the pixel is zero.
Fixes #881 .
2014-06-09 23:34:06 +02:00
photonstorm
b3baaba1a1
setFrame updates.
2014-06-09 15:23:18 +01:00
photonstorm
622978fa77
Finally managed to get crop x/y/width/height working across all texture types. Needs optimising for the trim rect, but works.
2014-06-06 04:12:16 +01:00
photonstorm
b63900f669
Testing frame crop support.
2014-06-05 02:33:29 +01:00
photonstorm
1e9d0b2438
Tidying up.
2014-05-30 05:33:30 +01:00
photonstorm
af1508de8f
BitmapData.addToWorld will create a new Phaser.Image object, assign the BitmapData to be its texture, add it to the world then return it.
...
BitmapData.copyPixels now accepts a Sprite, Image, BitmapData, HTMLImage or string as its source.
2014-05-29 03:30:21 +01:00
photonstorm
30cf226fc2
Rebuild on offset change.
2014-05-28 01:08:28 +01:00
photonstorm
0c76e9aada
Sprite animation data wasn't reset when going from a sprite sheet to a single frame in Sprite.loadTexture (thanks @lucbloom, fix #850 )
2014-05-27 14:23:41 +01:00
photonstorm
5a0d5b4887
RetroFont now uses Phaser.scaleModes.NEAREST by default for its RenderTexture to preserve scaling.
2014-05-27 13:36:38 +01:00
photonstorm
cdde45a292
Phaser.RenderTexture incorrectly passed the scaleMode to Pixi.RenderTexture, causing the renderer to error.
2014-05-27 13:35:47 +01:00
photonstorm
9c35dfde0c
ArcadePhysics.Body has a new boolean property enable
. If false
the body won't be checked for any collision or overlaps, or have its pre or post update methods called. Use this for easy toggling of physics bodies without having to destroy or re-create the Body object itself.
2014-05-27 11:22:58 +01:00
photonstorm
5b9bd96583
RetroFont.updateOffset allows you to modify the offsetX/Y values used by the font during rendering.
2014-05-27 05:23:34 +01:00
photonstorm
68f1bbd9a5
RetroFont charsPerRow paramters is now optional. If not given it will take the image width and divide it by the characterWidth value.
2014-05-27 04:26:23 +01:00
photonstorm
cd963242cd
jshint fix + draw sprite fix
2014-05-26 20:15:11 +01:00
photonstorm
c5d9f12858
BitmapData.alphaMask has 2 new optional parameters: sourceRect and maskRect to give more fine-grained control over where the source and mask are drawn and their size
...
BitmapData.draw now has two optional parameters: width and height, to let you stretch the image being drawn if needed.
2014-05-24 03:58:00 +01:00
photonstorm
7846da7c90
BitmapData.alphaMask 'mask' parameter is now optional, if not given it will use itself as the mask.
...
BitmapData.alphaMask now calls BitmapData.update after running.
2014-05-24 03:17:58 +01:00
photonstorm
6e9c9c10b8
BitmapData.alphaMask can now also take a Phaser.Sprite, Phaser.Image or BitmapData object as a source type.
...
BitmapData.alphaMask has 4 new optional parameters: x, y, x2 and y2 to control exactly where the source and mask images are drawn.
2014-05-24 03:15:13 +01:00
photonstorm
be66a694a8
jsdoc and jshint fixes.
2014-05-24 02:53:48 +01:00
photonstorm
f3ef3aed19
BitmapData.draw can now take a BitmapData object as a source type.
2014-05-24 02:43:59 +01:00
photonstorm
934f6a816c
BitmapData.resize now properly updates the baseTexture and texture dimensions.
2014-05-24 02:02:49 +01:00
photonstorm
7b696dddfe
BitmapData.extract has 4 new parameters: r2, g2, b2, a2 which let you re-color the extract pixels as they are drawn to the new BitmapData.
...
BitmapData.load will take a game object or string and resize the BitmapData to match it and then draw the pixels in.
2014-05-24 01:29:47 +01:00
photonstorm
bcddfc83c0
Sprite.alive property now explicitly defined on the Sprite prototype (thanks @lewster32, #841 )
2014-05-21 21:48:29 +01:00
photonstorm
2650e6c47e
RetroFont.text would throw WebGL errors due to an issue with Pixi.RenderTexture. Fixed in Phaser and submitted code to Pixi.
...
RenderTexture.resize would throw WebGL errors due to an issue with Pixi.RenderTexture. Fixed in Phaser and submitted code to Pixi.
2014-05-15 15:32:59 +01:00
photonstorm
bdcc9fcbc4
Updated jsdocs re: Image/Sprite.crop ( #820 )
2014-05-14 02:18:18 +01:00
photonstorm
b2c68c1369
Graphics.drawTriangles will draw an array of vertices to the Graphics object (thanks @codevinsky, #795 )
...
Polygon.area will calculate the area of the Polygon (thanks @codevinsky, #795 )
2014-05-14 00:04:31 +01:00
photonstorm
5047606118
Button.onOverMouseOnly is a boolean that causes onOver events to fire only if the pointer was a mouse (i.e. stops onOver sounds triggering on touch)
2014-05-13 23:43:44 +01:00
Richard Davey
e3f834314e
Merge pull request #795 from codevinsky/graphics-drawTriangles
...
Graphics.drawTriangles and Polygon.area
2014-05-13 23:43:16 +01:00
Samuel Batista
d5366972bc
Typo fix
2014-05-10 02:15:16 -04:00
photonstorm
8b1e736418
BitmapData.rect provides a quick way to draw a Rectangle to a BitmapData.
2014-05-09 16:39:45 +01:00
Richard Davey
aac4ff2226
Merge pull request #808 from muclemente/dev
...
Added undefined check processPixelRGB
2014-05-07 23:48:28 +01:00
Richard Davey
570e8acabb
Joystick updates.
2014-05-07 18:10:13 +01:00
Murilo Clemente
c882ebef2f
Added undefined check processPixelRGB
...
Phaser.BitmapData#processPixelRGB:
I was getting an undefined error when phaser tried to call setPixel32
using “result.r”.
With this additional undefined check the problem stopped and I’m able
to run this method with all my needed images.
2014-05-06 22:43:35 -03:00
jdowell
f10c772ff3
Graphics.drawTriangles && Polygon.area
...
Demo:
http://phaser-triangles.herokuapp.com
2014-05-02 12:30:49 -05:00