Commit graph

2378 commits

Author SHA1 Message Date
photonstorm
4903e47a98 Rectangle.topRight returns a Point object that represents the top-right coordinate of the Rectangle. 2014-09-05 15:45:47 +01:00
Jeremy Dowell
06c6b23454 moved: Utils.range to Math.numberArray 2014-09-05 09:36:36 -05:00
eguneys
fdf00b1b49 A new custom build with no physics added. 2014-09-05 11:38:40 +03:00
photonstorm
72c0f50b6b Lots of small enhancements and layer types. 2014-09-05 08:02:44 +01:00
photonstorm
0af4ec4da2 The StateManager will now check if a State has a method called resize. If it does, and if the game is running in the RESIZE Scale Mode then this method will be called whenever the game resizes. It will be passed two parameters: width and height that will match the games new dimensions. Resizing can happen as a result of either the parent container changing shape, or the browser window resizing. 2014-09-05 06:22:10 +01:00
photonstorm
0c9eef8a91 FlexGrid added to the ScaleManager. 2014-09-05 06:02:25 +01:00
photonstorm
07f529bf12 First experimental build of FlexGrid. 2014-09-05 06:01:48 +01:00
photonstorm
f2a8a927f9 Group.addMultiple allows you to pass an array of game objects and they'll all be added to the Group in turn. 2014-09-05 06:01:25 +01:00
photonstorm
cb14fd1c01 Rectangle.centerOn(x,y) allows you to quickly center a Rectangle on the given coordinates. 2014-09-05 04:13:21 +01:00
Jeremy Dowell
1835453880 fixed: jshint errors 2014-09-04 19:31:53 -05:00
Jeremy Dowell
6c3fac5665 added: Phaser.Utils.range 2014-09-04 19:28:46 -05:00
photonstorm
ac9c9a1f9b Fixed the assignment of the fullScreenTarget so FS mode works again now. 2014-09-05 01:07:51 +01:00
photonstorm
67f14713af Removed Gestures stuff as it was all commented-out anyway. 2014-09-05 01:07:16 +01:00
photonstorm
4d14119a57 Removed console.log. 2014-09-05 00:14:22 +01:00
photonstorm
d5ffe1f971 Phaser.Mouse will now add a listener to the window to detect mouseup events. This is used to detect if the player releases the mouse while outside of the game canvas. Previously Pointer objects incorrectly thought they were still pressed when you returned the mouse over the canvas (#1167) 2014-09-04 23:29:43 +01:00
Richard Davey
7ee1564f2e Signal.removeAll would ignore the context parameter and remove all bindings regardless (thanks @alect #1168) 2014-09-04 22:24:47 +01:00
Richard Davey
55400ce988 World.createDistanceConstraint signature changed to include new local anchors (thanks @rhmoller #1169) 2014-09-04 22:22:10 +01:00
photonstorm
a98fbc0c62 New 2.1.0 build files. 2014-09-04 16:56:45 +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
cbc6ac8e7d New debug header. 2014-09-04 05:05:05 +01:00
photonstorm
cd7e4abecf Add jsdocs. 2014-09-04 05:04:54 +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
0d486aa949 Updated the road map. 2014-09-03 23:01:24 +01:00
Richard Davey
168ce82fe8 Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon #1165) 2014-09-03 22:42:24 +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
Richard Davey
42f19f4978 Phaser.Canvas.setImageRenderingCrisp now sets image-rendering: pixelated, perfect for pixel art and which is now supported in Chrome 38. 2014-09-03 22:16:03 +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
1f84024a3e Cache.getImage now returns null if no image was found. 2014-09-03 11:11:48 +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
8bc5ba8d7d Tween.generateData would skip the end values in the data array. They are now included as the object in the final array element. 2014-09-02 15:45:52 +01:00
photonstorm
865c6878bf P2.World.getSprings used to return an empty array, but now returns all the Springs in the world (#1134) 2014-09-02 15:06:43 +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
Richard Davey
152335ff46 docs update. 2014-09-01 21:33:29 +01:00
Richard Davey
895ab12262 Merge pull request #1158 from ctmartinez1992/dev
Added support to pass 2 array in Arcade collide and overlap
2014-09-01 21:31:33 +01:00
Richard Davey
58b1409414 Merge pull request #1160 from englercj/dev
typescript definition updates
2014-09-01 21:30:29 +01:00
photonstorm
8f7141ca3f New blit op 2014-09-01 20:22:47 +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
Carlos Martinez
ec9a8b6903 Firxed for travis build. 2014-09-01 15:03:29 +01:00
Carlos Martinez
94f9c0906f this fixes the camera judders when following with float values. 2014-09-01 14:49:44 +01:00
Carlos Martinez
a869939bc3 Merge branch 'master' of https://github.com/photonstorm/phaser into dev 2014-09-01 14:20:15 +01:00
Carlos Martinez
9843818f30 Merge branch 'dev' of https://github.com/photonstorm/phaser into dev 2014-09-01 14:19:50 +01:00