photonstorm
94448d2497
P2 postBroadphase example and handler done. Group.enableBodyDebug added. Sprites no longer remove bodies from the world if exists = false, instead they set safeDestroy to true, which removes the body on the next preUpdate, to avoid mid-step destruction issues.
2014-03-13 07:29:23 +00:00
photonstorm
84741f065f
New P2 examples. And fixed Camera.atLimit value.
2014-03-12 16:33:53 +00:00
photonstorm
8683d41c76
New Text examples.
2014-03-11 20:21:07 +00:00
photonstorm
6bddf1a914
The main Game class has been modified so that the update methods no longer have any if/else checks in them. Now split into coreUpdate, etc.
...
Put QuadTree back into Debug class.
Debug class now clears down on WebGL.
Updated RetroFont.type.
Fixed QuadTree example.
2014-03-11 16:14:01 +00:00
photonstorm
6ef9e30753
Added z property to remaining game objects and updated TypeScript defs.
2014-03-10 23:16:49 +00:00
photonstorm
53797171a3
Fixed Group.sort. Added z-depth property to all core game objects. Fixed P2 const overwrite.
2014-03-10 23:01:10 +00:00
photonstorm
c73b4eaea0
json is now the default tilemap format when not defined (thanks RyanDansie, #528 )
...
Updated docstrap
2014-03-10 00:50:06 +00:00
photonstorm
f22af81653
TileSprites now have a physics body property and call it in the pre and post updates. As with all physics bodies it's null by default.
2014-03-07 03:23:32 +00:00
photonstorm
3b2573de9a
Objects that are 'fixedToCamera' are now still correctly placed even if the camera is scaled ( #512 )
2014-03-06 17:12:12 +00:00
photonstorm
3e93f24583
New split physics system is implemented. Still tidying-up, but ArcadePhysics, P2 and Ninja Physics are in and configured. Lots more examples required, and tilemap collision mostly broken in Arcade at the moment. Time to implement in Ninja.
2014-03-06 06:29:19 +00:00
photonstorm
22b1ce9b9d
Added Phasers new Physics Manager and restored the pre-1.1.4 ArcadePhysics system. The new manager can handle multiple physics systems running in parallel, which could be extremely useful for lots of games.
2014-03-05 02:36:08 +00:00
photonstorm
67ad898294
Tween.generateData(frameRate) allows you to generate tween data into an array, which can then be used however you wish (see new examples)
...
Added new Retro Font examples.
2014-03-03 22:43:35 +00:00
photonstorm
7183322259
Renamed Phaser.BitmapFont to Phaser.RetroFont because I believe it will cause confusion otherwise. Also tidied up the asset fonts folder.
2014-03-03 17:05:28 +00:00
photonstorm
833960b3c8
Animation.looped has been renamed to Animation.loop. It's a boolean you can toggle at run-time to turn on/off animation looping.
...
A single Animation object now has 3 new events: onStart, onLoop and onComplete.
Animation.loopCount holds the number of times the animation has looped since it last started.
Animation.stop has a new parameter: dispatchComplete. If true it'll dispatch an Animation.onComplete event.
2014-03-03 16:05:55 +00:00
photonstorm
4a370c82cf
You can now load in CSV Tilemaps again and they get created properly ( fixes #391 )
...
You can now create blank Tilemaps and then populate them with data later.
2014-03-03 13:45:47 +00:00
photonstorm
d8f5832fa2
Completely empty Tilemaps can now be created. This allows for dynamic map generation at runtime.
...
Loads of updates across most the Tilemap files. Not finished yet, still CSV loading to do and a multi-tileset issue to resolve, but it's a lot more flexible now.
2014-03-03 05:19:46 +00:00
photonstorm
c4a68e3e87
The Debug panel now works in WebGL mode. Pay attention to the warning at the top of the Debug docs (feature request #499 )
...
All the Debug methods have had the word 'render' removed from the start. So where you did `debug.renderSpriteInfo` before, it's now just `debug.spriteInfo`.
Debug methods that rendered geometry (Rectangle, Circle, Line, Point) have been merged into the single method: `Debug.geom`.
2014-03-03 00:46:03 +00:00
photonstorm
418a161b46
Testing webgl debug overlay.
2014-03-02 20:51:44 +00:00
photonstorm
664d5b3e2c
Fixed issue where Image, Sprite, etc wouldn't call preUpdate or postUpdate of its children.
...
Fixed issue where renderOrderID wasn't being assigned correctly, causing the Input Handler to be unable to select the "top" item on a display list (would all default to zero)
Fixed issue where Stage would assign renderOrderIDs in reverse, should be in sequence.
Fixed issue where objects where checking World for the currentRenderOrderID by mistake instead of Stage.
Basically, input handling works a lot better now for Groups and nested objects :)
2014-02-28 19:45:15 +00:00
photonstorm
8662cd2fd4
Brand new Grunt task - creates each core library as its own file and a combined phaser.js.
...
New build script now cleanly splits Phaser, Pixi and p2 so they are each UMD wrapped and each available in the global scope (now more requireJS friendly!).
phaser-no-libs.js allows you to use your own version of p2.js or pixi.js with Phaser. Warning: This is totally unsupported. If you hit bugs, you fix them yourself.
Fixed silly instanceof bug in game objects (sorry guys).
2014-02-28 09:30:53 +00:00
photonstorm
4562939e4e
Fixed stupid error in destroy().
2014-02-28 06:17:18 +00:00
photonstorm
09d4a35b7f
Fixed issue where Phaser.Canvas.create would always make a screencanvas for CocoonJS, but that should only happen once. New parameter toggles it.
2014-02-28 03:55:06 +00:00
photonstorm
a8bd5db7ba
Fixed smoothed value in Sprite and Image too.
2014-02-27 21:57:57 +00:00
photonstorm
7e12075be1
Buttons are now cleanly destroyed if part of a Group without leaving their InputHandler running.
...
You can now safely destroy a Group and the 'destroyChildren' boolean will propogate fully down the display list.
Calling destroy on an already destroyed object would throw a run-time error. Now checked for and aborted.
Calling destroy while in an Input Event callback now works for either the parent Group or the calling object itself.
In Group.destroy the default for 'destroyChildren' was false. It's now `true` as this is a far more likely requirement when destroying a Group.
All GameObjects now have a 'destroyChildren' boolean as a parameter to their destroy method. It's default is true and the value propogates down its children.
2014-02-27 20:05:16 +00:00
photonstorm
a1b502fc06
Stage.smoothed allows you to set if sprites will be smoothed when rendered. Set to false if you're using pixel art in your game. Default is true. Works in Canvas and WebGL. Setting the game anti-aliased parameter now works properly too.
...
Sprite.smoothed and Image.smoothed allows you to set per-Sprite smoothing, perfect if you just want to keep a few sprites smoothed (or not).
Fixes #381 .
2014-02-25 04:41:57 +00:00
photonstorm
57796a60be
TileSprites can now receive full Input events, dragging, etc and be positioned in-world and fixed to cameras ( fixes #321 )
2014-02-21 19:21:00 +00:00
photonstorm
5a00a0ad97
TilemapParser will now throw a warning if the tileset image isn't the right size for the tile dimensions ( fixes #377 )
2014-02-21 16:57:45 +00:00
photonstorm
d7ababa398
BitmapData.alphaMask will draw the given image onto a BitmapData using an image as an alpha mask.
2014-02-21 15:09:04 +00:00
photonstorm
07af06fc4e
Fixing up documentation, missing functions, examples and alpha masks.
2014-02-21 14:50:18 +00:00
photonstorm
eb38ae35f8
renderXY added back into RenderTexture.
2014-02-21 13:44:39 +00:00
photonstorm
a61d030256
Display Objects now clean-up their children properly on destroy.
2014-02-21 13:25:08 +00:00
photonstorm
dd8a393bc9
Updated version of p2
2014-02-21 12:40:49 +00:00
photonstorm
efd760479d
Sprite and Image now remove any masks that may have been set when they are destroyed.
2014-02-21 12:18:23 +00:00
photonstorm
9fcab5ef26
Lots of doc fixes (thanks nhowell)
2014-02-20 03:44:44 +00:00
photonstorm
4ad7b304c6
Added Game configuration option: forceSetTimeOut
2014-02-20 01:31:13 +00:00
photonstorm
5f79bb4330
Fix typos of method names in Button.js for doc #444
2014-02-19 15:01:59 +00:00
photonstorm
d9080052c3
Disabled World bounds by default.
...
Body.collides now takes a group level callback.
Added Body.createBodyCallback and Body.createGroupCallback.
2014-02-19 05:22:37 +00:00
photonstorm
f6807e23c6
Fixed Body.removeFromWorld
2014-02-19 04:05:12 +00:00
photonstorm
cad14848e8
Removed input handler from Graphics as it's just meant to be used as a texture really, if you need input events you can apply Graphics to a Sprite.
...
You can now create a Physics Body directly via game.physics.createBody(), and Body has been updated so it's no longer always bound to a Sprite.
Debug.renderPhysicsBody now works with Rectangles, Lines and multiple Convex shapes.
Starting to get the Tiled polyline parsing working nicely. Not too far off a complete tilemap collision.
2014-02-17 17:54:10 +00:00
photonstorm
78bf874888
Fresh build. Added pre/post update hooks to Graphics.
2014-02-17 11:27:31 +00:00
photonstorm
e5e643b103
fixedToCamera now works across all display objects. When enabled it will fix at its current x/y coordinate, but can be changed via cameraOffset.
...
fixedToCamrea now works for Groups as well :) You can fix a Group to the camera and it will influence its children.
Also fixed the issue with World.preUpdate/postUpdate not being called and various small documentation issues.
2014-02-15 01:27:42 +00:00
photonstorm
539a0f2256
BitmapFont fixes and updates and Cache support for it added. Working sweet now.
2014-02-14 16:38:06 +00:00
photonstorm
ef95fbaa00
BitmapFont moved to extending RenderTexture instead of BitmapData. Now applied as a texture to a Sprite/Image.
2014-02-14 13:50:50 +00:00
photonstorm
c3f306c795
Testing BitmapFont as a texture.
2014-02-14 12:07:04 +00:00
photonstorm
7d2a818d0d
Added BitmapFont to the GameObjectFactory.
2014-02-14 06:16:36 +00:00
photonstorm
15b83e1c88
Added the new BitmapFont class. This is for rendering retro style fixed-width bitmap fonts into an Image object.
2014-02-14 06:04:29 +00:00
photonstorm
b38b00c2c1
Loader.bitmapFont now has 2 extra parameters: xSpacing and ySpacing. These allow you to add extra spacing to each letter or line of the font.
2014-02-14 04:34:57 +00:00
photonstorm
24f2e2a46d
BitmapText updated and bought in-line with the new Text class. Moved to use the new Bitmap Text XML loader which should work fine on CocoonJS now and also supports multiple bitmap fonts per cache.
2014-02-14 03:34:35 +00:00
photonstorm
58e44f75e3
SpriteBatch converted. It's an extended Group and Batch merged and works amazingly :) Ported over the maggots demo to test and wow!
2014-02-14 01:39:01 +00:00
photonstorm
3e99391cbf
Updated all Game Objects so they all have preUpdate, update and postUpdate functions (even if empty). Updated World so when it iterates through them all it no longer checks if those functions are present before calling them. Was wasting a lot of time doing that before.
2014-02-14 01:09:52 +00:00
Richard Davey
ec4eab07a7
Merge pull request #413 from Fishrock123/1.2-return-type
...
Strict type return (boolean) for `Sprite.exists` getter.
2014-02-13 23:29:08 +00:00
photonstorm
35e4c03bad
TileSprites are now much more tidy and can run from a frame in a texture. They can also be animated. New TileSprite.autoScroll function added.
2014-02-13 23:13:10 +00:00
Fishrock123
19c5b7c22c
Strict type return (boolean) for Sprite.exists
getter.
2014-02-13 11:05:19 -05:00
photonstorm
90e9edbf05
Updated TileSprite so it just directly extends the Pixi original. This means no input events or body for a TileSprite.
...
Removed un-needed stuff from Graphics.
Removed un-used events.
Made docs in StateManager more clear re: shutdown (#410 )
2014-02-13 15:03:46 +00:00
photonstorm
30fbbec675
BitmapData.addTo removed and enhanced BitmapData.add so it can accept either a single Sprite/Image or an Array of them.
...
BitmapData has had all of the EaselJS functions removed. It was just taking up space and you can do it all via BitmapData.context directly.
Camera following now working again.
2014-02-13 14:19:41 +00:00
photonstorm
bdb8908fee
Groups now update their children across preUpdate, update and postUpdate.
...
Sprite.exists = false removes Body from world.
2014-02-13 12:26:39 +00:00
photonstorm
312ec462bc
Sprite.exists now toggles the Body as well. Sprite.exists = false will remove an active Body from the World.
2014-02-13 09:55:46 +00:00
photonstorm
f6113ac6c4
Physics World events added.
...
Group has new 'addToWorld' parameter, which fulfills the same function as the old useStage.
Stage now extends PIXI.Stage rather than owns one.
2014-02-12 19:45:09 +00:00
photonstorm
c6cc2c9d71
Updated p2.js to latest build. Checked tests. Added Debug draw (needs rotation support).
2014-02-12 05:34:31 +00:00
photonstorm
2c100754bb
Body.setPolygon converted and working, along with some other p2 Body methods hoisted up.
2014-02-12 03:22:49 +00:00
photonstorm
43d9fc4f52
Fixed issue where loadTexture would sometimes incorrectly try to apply the texture update twice. Also fixed bug in Math.angleBetween.
2014-02-11 04:08:32 +00:00
photonstorm
47e23096bd
Integrating p2.js.
2014-02-10 16:01:30 +00:00
photonstorm
ae74cb02dd
Fixes #382 Error when using InputHandler#onInputUp & sprite destroys itself during the event.
2014-02-10 02:14:59 +00:00
photonstorm
0294a4735d
Fixes issues reported in #389
2014-02-10 01:49:58 +00:00
photonstorm
f9f2f2a9ae
Converted the Pixi.Ellipse class.
2014-02-10 01:18:53 +00:00
photonstorm
e15bebd269
Text.lineSpacing allows you to control the spacing between each line that is rendered.
...
Text.inputEnabled allows you to enable all input events over Text objects: dragging, clicking, etc - anything that works on a Sprite works on Text now too.
2014-02-09 22:48:35 +00:00
photonstorm
bca64c2adb
Huge update to Phaser.Text. Much more lean, but loads of great new options added including drop shadows, gradient fills, fonts with spaces in the name, etc.
2014-02-09 13:36:02 +00:00
photonstorm
4aa945f991
Removed PixiPatch as it's no longer needed. Re-worked all of the Sprite autoCull and inWorld checks and cached the bounds. Fixed the Body calculations so physics is working again.
2014-02-09 03:48:31 +00:00
photonstorm
243820c973
Fixing up Pixis setBackgroundColor.
2014-02-08 09:14:44 +00:00
photonstorm
67bd653eb4
Graphics updated and restored. Working through fixing up Physics.
2014-02-07 19:44:14 +00:00
photonstorm
c429787877
Button now extends Phaser.Image not Phaser.Sprite, all the same functionality as before remains, just no animations or physics body.
2014-02-07 18:55:29 +00:00
photonstorm
bf13c7b569
Updated Sprite to use the new smaller, leaner code. Farewell insane cache objects and multiple point processing!
2014-02-07 18:44:58 +00:00
photonstorm
bc3a3fd43d
You can now use the hitArea property on Sprites and Image objects. hitArea can be a geometry object (Rectangle, Circle, Polygon, Ellipse) and is used in pointerOver checks.
2014-02-07 17:14:10 +00:00
photonstorm
890e52008a
Mouse callback tests.
2014-02-07 07:32:11 +00:00
photonstorm
9b9baa83a9
Added Image.frame and Image.frameName support in.
2014-02-07 06:52:49 +00:00
photonstorm
d583b364bd
Game.add.renderTexture now has the addToCache parameter. If set the texture will be stored in Game.Cache and can be retrieved with Cache.getTexture(key).
...
Game.add.bitmapData now has the addToCache parameter. If set the texture will be stored in Game.Cache and can be retrieved with Cache.getBitmapData(key).
2014-02-07 06:25:28 +00:00
photonstorm
773b4d5ed1
More animation tests.
2014-02-07 04:12:23 +00:00
photonstorm
ddc255382d
Updated Rectangle to use prototype based getters and setters (re: iOS speed discussion on the forum).
2014-02-07 02:31:29 +00:00
photonstorm
3cae06d1ad
Phaser.AnimationParser now sets the trimmed data directly for Pixi Texture frames. Tested across JSON Hash, JSON Data, Sprite Sheet and XML.
2014-02-07 00:57:41 +00:00
photonstorm
6cabb03a82
Sprite.crop() now takes a Phaser.Rectangle instead of explicit parameters.
...
Phaser.Image is a brand new display object perfect for logos, backgrounds, etc. You can scale, rotate, tint and blend and Image, but it has no animation, physics body or input events.
Previously if you used Sprite.crop() it would crop all Sprites using the same base image. It now takes a local copy of the texture data and crops just that.
2014-02-06 23:13:39 +00:00
photonstorm
4b7fc8d506
Change to boot order to try and resolve short-TTL timers.
2014-02-06 22:42:35 +00:00
photonstorm
3748811d11
Testing new Image object.
2014-02-06 19:34:05 +00:00
photonstorm
4ed20e0f77
Removed all intances of Sprite.group from Group and replaced with the already existing parent property.
2014-02-06 13:15:45 +00:00
photonstorm
4cfce8b4d2
Group now extends PIXI.DisplayObjectContainer, rather than owning a _container property, which makes life a whole lot easier re: nesting.
2014-02-06 02:31:36 +00:00
photonstorm
0896c2fac7
Updating copyright year and README.
2014-02-05 16:54:59 +00:00
photonstorm
1af86771ba
And we have level/ground jitter fixed :) Starstruck is running again properly now too. Time to commit and remove lots of debug data.
2014-02-05 16:54:58 +00:00
photonstorm
84f0f00f49
n-way collision checks and onBeginContact and onEndContact done and working. Also fixed issue in TweenManager.removeAll.
2014-02-05 16:54:58 +00:00
photonstorm
8315973c5d
Body/Group testing complete. Now focusing on n-way collision.
2014-02-03 04:09:45 +00:00
photonstorm
28f71ed86d
Fixed the Sprite / World / Group body issue. So invaders now works again, as do the new examples.
2014-02-03 04:09:45 +00:00
photonstorm
3488880956
Sprite vs. Sprite Group Body Tests.
2014-02-03 04:09:45 +00:00
photonstorm
5e182d317b
Fixed lots of examples and added the missing Line.js.
2014-01-31 14:12:20 +00:00
photonstorm
27fc447928
New polygon collision object examples and Body scale fixes.
2014-01-31 10:34:18 +00:00
photonstorm
45b6d5a741
Removed: Debug.renderSpriteTouching, Debug.renderLocalTransformInfo, Debug.renderWorldTransformInfo, Debug.renderSpriteCollision and Debug.dumpLinkedList.
...
Debug.renderPhysicsBody(body, color) is extremely useful for debugging the new physics bodies. Will draw the outline + points in the color given.
Debug.renderBodyInfo(sprite, x, y, color) will display lots of Sprite body data.
2014-01-31 05:42:20 +00:00
photonstorm
651858372c
Added Game core loop stepping support. Super-useful for debugging, and helped me track down the issue with jittery physics collision. Double-win!
2014-01-29 17:10:13 +00:00
photonstorm
9deb5514a2
ArcadePhysics.setBoundsToWorld implemented. Body.setCircle, setRectangle and setPolygon all working. Tidying up Body class. Need to add tile collision special case handler next.
2014-01-28 05:01:17 +00:00
photonstorm
90c09374af
Velocity integration tidied up. Now moving to sync Body with Sprite center point.
2014-01-28 01:29:35 +00:00
photonstorm
128c7143d5
Lots more physics tests and updates.
...
PLEASE DO NOT upgrade to this release if you need your game working and it uses any of the physics functions, as they're nearly all broken here.
Just pushing up so I can share it with someone.
2014-01-20 20:14:34 +00:00
photonstorm
754219a978
Fixed some documentation typos.
2014-01-09 01:23:23 +00:00
photonstorm
5526a7322b
Warning: This version has a new ArcadePhysics handler in it. Don't upgrade if you need this for live game code, wait until we go to master. Otherwise, this commit contains lots of new physics demos and a new updateMotion and Body class to try and fix, once and for all, the physics issues with applied forces.
2014-01-02 23:28:22 +00:00
photonstorm
d1cd1df9a5
Lots of fixes and updates to the Button class, InputHandler for snap offsets, Sound looping and Stage scaling.
2013-12-31 17:03:09 +00:00
photonstorm
ba74bea4b4
New Group.destroy example and patched the desyrel font xml.
2013-12-30 21:36:50 +00:00
photonstorm
ce4cf531d4
Added class constructors, fixed Stripshader, added relative Tween example and updated Tween source.
2013-12-30 16:54:00 +00:00
photonstorm
fdbdd81b7b
Updated some docs, added the new renderHidden parameter for Canvas and updated the RenderTexture examples as a result.
2013-12-27 00:26:21 +00:00
photonstorm
0acef49a7c
RenderTexture now displays correctly in Canvas games.
...
Stage.display property added. A direct reference to the root Pixi Stage object (very useful for RenderTexture manipulation)
2013-12-23 04:20:09 +00:00
photonstorm
63d90a0176
Sprites that are fixedToCamera can now be input dragged regardless of world position.
2013-12-22 03:46:08 +00:00
photonstorm
b2c680811b
New unified Tiled loader.
2013-12-18 13:02:01 +00:00
photonstorm
dd7ae12271
ArcadePhysics.overlap and collide now recognise TileSprites in the collision checks.
2013-12-17 16:48:03 +00:00
photonstorm
896e9af9f5
TilemapLayers now render tiles correctly, with our without debugging overlay. Collision working well across single and index ranges.
2013-12-17 05:07:00 +00:00
photonstorm
7917eac255
Added Matching Pairs game and updated fixed to camera example.
2013-12-16 15:16:44 +00:00
photonstorm
669570c701
Tidying up the examples and more Tilemap work.
2013-12-10 12:23:42 +00:00
photonstorm
886618c056
Tilemap collision fixed, regardless of rotation, number of overlapping tiles and speed (to a point anyway). Maps also don't crash if they are smaller than the render area. Layers can be positioned successfully anywhere in camera but collision isn't yet offset for this.
2013-12-06 04:34:27 +00:00
photonstorm
8e289e6b7c
Mostly working, just need to apply a max overlap to avoid tunneling, although a ray would be better.
2013-12-06 02:34:28 +00:00
photonstorm
1f513a333e
Fixed an issue where passing null as the Group parent wouldn't set it to game.world as it should have (thanks tito100).
...
Continued work on the tilemap collision - again, please don't use this version if you need working tilemaps.
2013-12-06 01:07:25 +00:00
photonstorm
c5c754725a
* When a Sprite is destroyed any active filters are removed as well.
...
* Updated Pixi.js so that removing filters now works correctly without breaking the display list.
2013-12-04 22:39:53 +00:00
photonstorm
666df67453
Tidying up the wip folder and updating pixi.
2013-12-03 20:50:34 +00:00
photonstorm
42c0bed502
Fixed World.scale and Group.scale.
2013-12-03 02:13:57 +00:00
photonstorm
f22159e257
Updated documentation.
2013-11-28 15:57:09 +00:00
photonstorm
a9a46bfbbf
Lots of documentation updates and new Loader examples.
2013-11-27 16:33:49 +00:00
photonstorm
141337bed9
Heavily optimised PixiShader.
2013-11-26 05:13:56 +00:00
photonstorm
06a17b4b26
Fixed an issue in Text. Fixed the background color issue with Canvas games. Updated the Examples viewer so the side-by-side focuses the iframe now. Added new "Extend Group" example.
2013-11-25 13:12:03 +00:00
photonstorm
299115ca5d
The entire Phaser library has been updated to match the new JSHint configuration.
2013-11-25 04:40:04 +00:00
photonstorm
13a2cc2feb
Updating all files to adhere to the JSHint settings and fixing lots of documentation errors on the way.
2013-11-25 03:13:04 +00:00
Richard Davey
373b97648d
Documentation updates
2013-11-24 23:52:31 +00:00
photonstorm
496639ff25
Added Phaser.Filter and started moving the shaders over into their own filter classes, so they won't all get bundled in unless needed.
2013-11-21 05:00:07 +00:00
photonstorm
e620c99479
ShaderToy convertor up and working, lots of shaders being turned into Pixi filters :)
2013-11-20 02:28:28 +00:00
Cameron Foale
7ef5ab8c98
Skip preupdate/update for PIXI hierarchies in which an ancestor doesn't exist
2013-11-19 16:29:02 +11:00
photonstorm
b63bd14172
ScaleMode fix, BitmapData change and Device updates.
2013-11-18 20:27:40 +00:00
photonstorm
a5f2d65d23
Fixing a few more Pixi issues.
2013-11-17 12:31:57 +00:00
photonstorm
7ad4164e3a
Expanding BitmapData
2013-11-17 04:33:16 +00:00
Richard Davey
ba6863bdf5
bmd tweaks
2013-11-17 00:55:28 +00:00
photonstorm
83cacb93a0
More updates to BitmapData.
2013-11-15 20:40:55 +00:00
Richard Davey
ebe441666c
BitmapData object added
2013-11-13 20:57:09 +00:00
Richard Davey
6a24d6116b
Lots of renderTexture updates and examples added
2013-11-13 06:49:24 +00:00
photonstorm
42cd8bd812
Added Group.sort, can sort the Group based on any given numeric property (x, y, health), finally you can do depth-sorting :)
2013-11-07 04:31:37 +00:00
Román Jiménez
06e33bc8e4
Polygon & drawPolygon method
2013-11-05 20:25:06 +01:00
photonstorm
2e576fa9a7
Input Handler updates, orientation screen and World visibility
2013-11-04 20:44:32 +00:00
Richard Davey
0e84b7ccc9
Merge pull request #162 from beeglebug/button
...
Button now goes back to over state when setFrames used in action
2013-11-03 18:39:54 -08:00
beeglebug
3227918c57
fix #154 Button now goes back to over state when setFrames used in action
2013-11-02 11:24:00 +00:00
photonstorm
685054eac5
Group.callAll now supports nested functions and a context, making it really powerful!
2013-11-01 17:29:57 +00:00
photonstorm
787abc1e02
Updated debug header and added more info to the project template.
2013-11-01 04:58:08 +00:00
photonstorm
3c164b466c
* Updated: event.preventDefault() has been added to all Mouse event handlers.
...
* Updated: Sprite.deltaX/Y removed due to non-use. prevX/Y values moved to Sprite._cache.prevX/Y.
* Updated: Due to missing extends parameter the Sprite prototype was picking up functions from classes it never meant to (Button, TilemapLayer), now fully isolated.
2013-11-01 02:07:21 +00:00
photonstorm
24c809dd5f
Final body / physics / bounds fixes. Also updated various examples, optimised Sprite core loop and enhanced the Invaders example.
2013-10-30 03:46:52 +00:00
photonstorm
3de62907a0
Nearly fixed the tilemap / body issue. More tests needed but then can push to master.
2013-10-29 04:07:26 +00:00
photonstorm
a814cc26cc
* Fixed issue 135 - Added typeof checks into most ArcadePhysics functions to avoid errors with zero values.
...
* Fixed issue 136 - distanceTo using worldX/Y instead of x/y.
2013-10-28 10:17:36 +00:00
photonstorm
65d2bf557b
Updated docs and more tidying up.
2013-10-25 17:30:37 +01:00
photonstorm
9f9e6a2a57
Lots of doc updates!
2013-10-25 16:54:40 +01:00
Richard Davey
0463bb4333
Merge pull request #124 from alvinsight/dev
...
A lot of documentation updates
2013-10-25 07:51:38 -07:00
Webeled
12148b3159
More improvements on GameObjectFactory
2013-10-25 15:42:48 +01:00
Webeled
ce04ade458
Lots of JSDocs updates in the gameobjects folder
2013-10-25 15:22:45 +01:00
photonstorm
a08436abc3
Final Sprite documentation added.
2013-10-25 15:02:21 +01:00
Webeled
35517d94ad
Just to test if smartGit works again
2013-10-25 14:31:25 +01:00
photonstorm
d8a2b9d2af
Removed console.log
2013-10-25 05:43:10 +01:00
photonstorm
2921a6de2e
Pixel Perfect click detection now works even if the Sprite is part of a texture atlas.
2013-10-25 05:40:46 +01:00
photonstorm
1294b3a2b9
Input over now works regardless of rotation, anchor or scale.
2013-10-25 03:57:08 +01:00
photonstorm
427819c655
Sprite bounds finally correct, regardless of rotation, parenting, scale or anchor.
2013-10-25 03:50:15 +01:00
photonstorm
1469663ea5
Button fixes and Input coordinate fixes.
2013-10-25 02:19:16 +01:00
photonstorm
1f28d328a7
Commit before refactoring Sprite guts.
2013-10-24 21:21:00 +01:00
photonstorm
a6fac64248
Loads of issues reported on Github resolved (sprite crop, music resume, etc).
2013-10-24 04:27:28 +01:00
photonstorm
7e5f38d022
Phaser.Time physicsElapsed delta timer clamp added. Stops rogue iOS / slow mobile timer errors causing crazy high deltas.
2013-10-23 17:11:06 +01:00
photonstorm
4a51ac4671
Updated README and sorting out folder case issue.
2013-10-23 13:30:23 +01:00
photonstorm
8ed783802e
New examples page
2013-10-18 15:12:32 +01:00
photonstorm
7e8b79adf4
Tilemap painting example and other smaller updates.
2013-10-17 21:10:00 +01:00
photonstorm
275fa4641e
Added Text.destroy and BitmapText.destroy.
2013-10-17 15:40:44 +01:00
photonstorm
9c1fdb371c
Nearly finished Tilemap integration into the core.
2013-10-16 06:33:39 +01:00
photonstorm
e98aa205ea
Sprite.destroy is back in business.
2013-10-13 01:29:57 +01:00
photonstorm
0201baef11
And Tilemaps are rendering again - and much better than ever before :) Just one final optimisation pass to do and then it's on to collision.
2013-10-11 18:18:27 +01:00
photonstorm
b868c2cb1b
Started revamp of the Tilemap system. Also removed old 'Advanced Physics' and dropped in p2.js which is what I hope we'll eventually use.
2013-10-11 04:42:11 +01:00
photonstorm
a7230aa769
Sprite.loadTexture added.
2013-10-10 09:03:38 +01:00
photonstorm
f10f9324ad
Animation.killOnComplete added and fixed a few issues in the Tanks game.
2013-10-09 13:36:57 +01:00
photonstorm
f5584bdfe5
Lots of fixes and updates to ArcadePhysics and Group, plus more examples.
2013-10-08 21:09:46 +01:00
photonstorm
c307f79102
Added Sprite.fixedToCamera, fixed Angular Velocity and Acceleration, fixed jittery Camera, added skipQuadTree flag and created lots more examples.
2013-10-08 00:58:20 +01:00
photonstorm
1bc6ac25fa
Preparing to merge new examples.
2013-10-07 22:15:28 +01:00
Richard Davey
47e1b1b54b
Sprite optimisations.
2013-10-04 19:00:55 +01:00
Richard Davey
455b18b7ec
Sprite optimisations :)
2013-10-04 18:09:56 +01:00
Richard Davey
c00bf96603
World and Camera updates nearly complete.
2013-10-04 16:51:24 +01:00
Richard Davey
e8bed83ac3
Making some major changes to Camera and World.
2013-10-04 14:41:15 +01:00
Richard Davey
54f073e5cb
Testing some new Camera tricks.
2013-10-03 23:20:24 +01:00
Richard Davey
e85643abf4
Yet more documentation done.
2013-10-02 20:18:24 +01:00
Richard Davey
ca113b85aa
More docs coming on.
2013-10-01 16:39:39 +01:00
Richard Davey
9b4b267e7a
Working through building the docs.
2013-10-01 16:15:45 +01:00
Richard Davey
305b12d76b
Adding docs.
2013-10-01 15:01:46 +01:00
Richard Davey
16b1913de1
* Fixed issue in Sound.play where if you gave a missing marker it would play the whole sound sprite instead.
...
* Button.setFrames will set the current frame based on the button state immediately.
* InputHandler now creates the _pointerData array on creation and populates with one empty set of values, so pointerOver etc all work before a start call.
* Added Canvas.setUserSelect() to disable touchCallouts and user selections within the canvas.
* When the game boots it will now by default disable user-select and touch action events on the game canvas.
* Loaded.setPreloadSprite now rounds the width/height values and starts from 1. This fixes canvas draw errors in IE9/10 and Firefox.
2013-09-30 17:12:22 +01:00
Richard Davey
c5d90a7722
Merge pull request #74 from cottonflop/dev
...
Fix for incorrect new particle positioning (issue #73 )
2013-09-30 03:20:11 -07:00
Richard Davey
31bbf05ace
* Fixed small bug stopping Tween.pause / resume from resuming correctly when called directly.
...
* Fixed an issue where Tweens.removeAll wasn't clearing tweens in the addition queue.
* Change: When you swap State all active tweens are now purged.
2013-09-30 11:15:50 +01:00
Betsy Cottonflop
40b968028a
Fix for incorrect new particle positioning
2013-09-28 16:52:37 -07:00
Richard Davey
497d15b5bc
Sprite.play
2013-09-27 13:47:22 +01:00
Richard Davey
18c695e9dd
PixiPatch and other 1.0.7 features
2013-09-27 09:57:08 +01:00
Richard Davey
51049128f5
Collision fixes for testing
2013-09-23 22:23:17 +01:00
Richard Davey
257cbe3be8
Much more stable collision, just need to refactor the Tilemap handling - see if I can optimise it a bit too.
2013-09-23 03:26:08 +01:00
Richard Davey
bc02a1a05e
Fixing collision issues
2013-09-23 01:06:09 +01:00
Richard Davey
093bf8343d
Graphics fixes and other changes
2013-09-22 22:55:34 +01:00
Richard Davey
6b9484aa80
Merge pull request #60 from TheJare/master
...
Fix bug in StateManager...
2013-09-22 14:32:25 -07:00
Richard Davey
20f63c0af2
Fixed Graphics not working correctly.
2013-09-22 15:22:45 +01:00
TheJare
a4bc69c2f7
Fix box dimensions in PIXI.BitmapText. Support anchor in Phaser.BitmapText
2013-09-21 01:03:19 +01:00
Richard Davey
a415e779d1
Final 1.0.5 release.
2013-09-20 13:55:33 +01:00
Richard Davey
e938e41c73
Merge pull request #54 from webeled/master
...
Lots of JSDdocs done, and some camera examples
2013-09-19 12:15:26 -07:00
Webeled
26a595cd44
JSDocs update ;)
2013-09-19 16:34:48 +02:00
Richard Davey
3f1cafe21f
Put the famous idnetityMatrix typo back in so it doesn't break Pixi
2013-09-19 13:33:51 +01:00
Webeled
78a062dfb6
Updated my files and the documentation checklist
2013-09-19 13:17:49 +02:00
Cameron Foale
6fde862f61
Make Phaser.Text play nicely with scrolling, by using an explicit x, y
2013-09-19 16:57:19 +10:00
Cameron Foale
4f969901da
Fixed typo 'indetityMatrix' in RenderTexture
2013-09-19 16:41:34 +10:00
Richard Davey
d9a49797c4
1.0.4 release
2013-09-18 06:34:56 +01:00
Richard Davey
3c5ea01e09
1.0.3 release - fixed Text and Bitmap Fonts, Animation documentation and more examples
2013-09-17 16:50:47 +01:00
Webeled
fc584cf6bc
Examples (audio, button,camera), and docs
...
Created some examples (audio, button,camera), and documented the source
code along the way
2013-09-16 16:37:30 +02:00
Richard Davey
7c6e6df91a
State swap example done and working.
2013-09-13 05:44:04 +01:00
Richard Davey
fd0a071cb3
Added Sprite.centerOn(x,y) and fixed the InputHander snap as a result.
2013-09-13 04:37:06 +01:00
Richard Davey
ecc91fb4e0
More collision test cases and fixing a few issues as I go :)
2013-09-13 03:07:39 +01:00
Richard Davey
9f687b4f8a
Adding Type support for collision checks.
2013-09-12 21:54:41 +01:00
Richard Davey
92e86494e3
Tilemap Collision in and working :) Needs testing against Groups now.
2013-09-12 15:39:52 +01:00
Richard Davey
dbaf7269e9
Promoted the Tilemap to a DisplayObject and vastly simplified the load process.
2013-09-12 04:24:01 +01:00
Richard Davey
95374339b9
Added a Sample Plugin and tested out the Plugin Manager. Working great :)
2013-09-11 17:32:53 +01:00
Richard Davey
fba731e740
Added optional "pixel perfect" input checks and tested against static sprites, animated sprites, physics sprites and sprites positioned outside the screen (needing camera shift to appear).
2013-09-11 16:25:46 +01:00
Richard Davey
f260108433
Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions.
2013-09-11 13:21:07 +01:00
Richard Davey
e79dd5856d
Added the ability to crop a sprite with a custom Rectangle.
2013-09-11 03:55:53 +01:00
Richard Davey
48ed27dfcc
Finished off RenderTexture. Sprites can now accept a RenderTexture or a key when you create them. RenderTextures are also now stored in the cache under their own key, making re-using them across other Sprites much easier. Also ported over all of the Tilemap classes, but need to get them rendering.
2013-09-11 02:57:36 +01:00
Richard Davey
f885f7b023
Added CSS3Filters plugin. Also modified Sprite to contain preUpdate call, so that update can be over-ridden by custom Classes + added an example for this.
2013-09-11 00:35:21 +01:00
Richard Davey
e2eddc8b24
Added Full Screen support and tested it. Also added in the BitmapText game object and custom XML loader. Game now sends a pause and resume signal, which the TweenManager listens to and handles correctly.
2013-09-10 23:51:35 +01:00
Richard Davey
e41e35fd09
Fixed an error that stopped 2 tweens from being able to run on the same object. Also refactored a lot of the classes to remove prototype properties and move them to local instance properties.
2013-09-10 20:40:34 +01:00
Richard Davey
15fe5ed6c8
Fixed the Bring to Top bug and also fixed Group/World.swap when the child was a tail node. Also improved Group.dump significantly. Fixed Phaser.Utils namespace clash too.
2013-09-10 12:46:14 +01:00
Richard Davey
4f950ae801
Fixed a fantastic FrameData bug. Also added support to the Emitter to handle multiple image keys and/or frames.
2013-09-10 11:09:25 +01:00
Richard Davey
5d3fe891cd
Particle Emitter in and working. Nice and fast, and a lot more flexible than before.
2013-09-10 01:26:50 +01:00
Richard Davey
60f0e8967f
Added Phaser.Graphics and fixed the Out of World Bounds call.
2013-09-09 17:01:59 +01:00
Richard Davey
30fc4099c6
Out of bounds and Sprite events hooked up
2013-09-09 13:29:33 +01:00
Richard Davey
13d6ab512b
Fixed the Button frame issue and Down states now work properly
2013-09-09 10:30:01 +01:00
Richard Davey
9b6c819e0e
Input Component done and new Button object done and included. Also finished the build script.
2013-09-09 00:30:44 +01:00
Richard Davey
50624c1552
Input Handler working. Dragging, sliding, click detection, multi-touch. Appears to be an issue with bringToTop but it's most likely a problem with the swapChild function rather than Input.
2013-09-08 22:58:15 +01:00
Richard Davey
ebda1f99e3
Input Handler 90% there.
2013-09-08 22:38:19 +01:00
Richard Davey
90b1946c25
Input Handler mostly restored
2013-09-08 13:23:21 +01:00
Richard Davey
78598ae54a
Implemented my own LinkedList class to make the new Input Handler easier to work with. And also just generally useful to have too.
2013-09-08 11:24:41 +01:00
Richard Davey
eb7af3d2a2
Group nearly done. Sprite.anchor appears to be broken though, must fix.
2013-09-06 20:20:58 +01:00
Richard Davey
822a2df289
Lots of work on Group and also resolved the issue of the core game loop structure not being quite right.
2013-09-06 15:00:05 +01:00
Richard Davey
f4dab1847e
Working on Linked List node swapping.
2013-09-04 21:03:39 +01:00
Richard Davey
0f438d5221
separateX up and working sweet with gc spike removal too
2013-09-03 19:34:38 +01:00
Richard Davey
a27f6d6562
Forces working, collision half way there.
2013-09-03 17:28:12 +01:00
Richard Davey
2fe8a3a0a7
Physics integration and a fix to Tween that stopped the repeat/yoyo from working.
2013-09-03 17:07:05 +01:00
Richard Davey
bdc1c2ceb9
Sorted out the bounds for when sprites are in trimmed texture atlases to stop the physics checks going insane. Also bundled in Advanced Physics lib, although not hooked up yet.
2013-09-03 15:35:40 +01:00
Richard Davey
8a90a87492
Text converted and a couple of examples created. Using new extend system, so much smaller classes now.
2013-09-03 06:02:47 +01:00
Richard Davey
5acb4e9f1b
Borrowed the 'extends' system from jQuery and now the codebase will be considerably smaller :) TileSprite already updated to new format.
2013-09-03 04:58:30 +01:00
Richard Davey
66e86e7d82
Tiling Sprite added
2013-09-03 03:19:42 +01:00
Richard Davey
c18de53bab
SoundManager converted and playing audio :)
2013-09-03 01:24:16 +01:00
Richard Davey
7c597999d4
Camera culling now in and working, although you need to enable it on a per sprite basis. Also fixed a few small bugs in the Animation Manager.
2013-09-02 23:22:24 +01:00
Richard Davey
d31777972c
Camera culling
2013-09-01 19:52:50 +01:00
Richard Davey
7bdcbf5c2a
getBounds update.
2013-09-01 13:17:44 +01:00
Richard Davey
71b4cc532f
Added Sprite.getBounds function
2013-09-01 11:15:13 +01:00
Richard Davey
d54a92310d
Optimised sprite a tiny bit more and created a couple of fun demos :)
2013-09-01 06:21:39 +01:00
Richard Davey
fef28c6a6a
Optimised update loop to reduce calculations if the transform doesn't change.
2013-09-01 05:50:47 +01:00
Richard Davey
6ef89826df
Phew.. lots of transform matrix math over and I can finally get all 4 points of a Sprite, regardless of rotation, translation or scale of itself or any of its parents.
2013-09-01 05:29:53 +01:00
Richard Davey
12e5d2aceb
...
2013-09-01 05:22:08 +01:00
Richard Davey
801c2af9d4
Updated world so the update run uses the linked list. Sprite.getLocalPosition now almost working, but falls over for children.
2013-09-01 03:57:24 +01:00
Richard Davey
188d6239a3
Edge points in and working.
2013-09-01 03:15:27 +01:00
Richard Davey
22847f6ade
DebugUtils converted, re-name spaced the Input classes and started on Camera culling.
2013-08-31 21:50:34 +01:00
Richard Davey
f9aa7f7339
Fixed small bug in Game where AUTO didn't detect the lack of WebGL properly. Tidied up Math a bit more.
2013-08-30 20:05:29 +01:00
Richard Davey
54d98944e4
Mummy attack :)
2013-08-30 18:56:10 +01:00
Richard Davey
e77f5da2cd
Fixed the TweenManager and added support to GameObjectFactory, so you can create tweens easily now all hooked in to the internal game clock. Also added the AnimationManager into Sprite, so you can create and play animations directly from sprites nice and easily.
2013-08-30 17:09:43 +01:00
Richard Davey
936118bd91
AnimationManager done and in, need to fix texture update bug, otherwise finished.
2013-08-30 04:20:14 +01:00