Commit Graph

  • 480c1819d6 Working through AABB vs. AABB tests. 1.2 photonstorm 2014-03-07 05:30:56 +00:00
  • 4cac6408d8 Ninja.AABB updated with all the correct properties, now works fully as with Circle. Created new tests, all Ninja shapes now set Body.touching values correctly. TileSprites work as bodies. Trying out AABB vs. AABB collision now. photonstorm 2014-03-07 04:43:55 +00:00
  • 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. photonstorm 2014-03-07 03:23:32 +00:00
  • 1c68ff9042 Tilemap.createFromObjects allows you to specify you own object type to be created if you want a class that extends Phaser.Sprite. photonstorm 2014-03-07 03:19:07 +00:00
  • a51ae03246 Tweens are now bound to their own TweenManager, not always the global game one. So you can create your own managers now (for you clark :) photonstorm 2014-03-07 01:26:09 +00:00
  • 3b2573de9a Objects that are 'fixedToCamera' are now still correctly placed even if the camera is scaled (#512) photonstorm 2014-03-06 17:12:00 +00:00
  • a6b05f4d02 Merge pull request #519 from clark-stevenson/patch-1 Richard Davey 2014-03-06 16:57:38 +00:00
  • 7db8e5bc5e Fixed typo in README (thanks prtksxna, #518) photonstorm 2014-03-06 16:56:25 +00:00
  • d75f6e163f Updated tilemap type to string (fixes #516) photonstorm 2014-03-06 16:53:52 +00:00
  • 081c083176 InputHandler.enableSnap now correctly assigns the snap offset parameters (fixes #515) photonstorm 2014-03-06 16:45:29 +00:00
  • 83091b7647 Phaser.Image extends PIXI.Sprite clark-stevenson 2014-03-06 11:44:26 +00:00
  • 512b542e50 Fixed gruntfile and included new labs demo. photonstorm 2014-03-06 10:01:46 +00:00
  • 6815c5909a New tiles and new map test. photonstorm 2014-03-06 09:48:42 +00:00
  • e97a207816 Added in Circle to the Ninja physics system. photonstorm 2014-03-06 07:18:59 +00:00
  • 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. photonstorm 2014-03-06 06:27:16 +00:00
  • 2bab4fd2fb Testing lines. photonstorm 2014-03-05 04:40:37 +00:00
  • 12a2a2ec16 Testing map collision photonstorm 2014-03-05 03:18:24 +00:00
  • 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. photonstorm 2014-03-05 02:36:08 +00:00
  • cc82336952 Adding in TweenGroup for wip dev. photonstorm 2014-03-04 03:31:20 +00:00
  • 5a6ae5f696 Tilemap.putTile now correctly re-calculates the collision data based on the new collideIndexes array (fixes #371) Tilemap.putTile can now insert a tile into a null/blank area of the map (before it could only replace existing tiles) photonstorm 2014-03-04 03:08:35 +00:00
  • b5df53b4f6 Merge pull request #507 from clark-stevenson/patch-1 Richard Davey 2014-03-04 02:05:45 +00:00
  • f9cad58082 Labs code updates. photonstorm 2014-03-04 01:40:02 +00:00
  • a30c2c87a9 New build files. photonstorm 2014-03-04 01:29:04 +00:00
  • 8c2502d37d Group.xy(index, x, y) allows you to set the x and y coordinates of a Group child at the given index. Group.reverse() reverses the display order of all children in the Group. New labs demo. Fixed some Easing docs issues. photonstorm 2014-03-04 01:27:57 +00:00
  • 700d8d5258 PIXI + Phaser Definitions clark-stevenson 2014-03-03 23:46:24 +00:00
  • 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. photonstorm 2014-03-03 22:43:35 +00:00
  • 7183322259 Renamed Phaser.BitmapFont to Phaser.RetroFont because I believe it will cause confusion otherwise. Also tidied up the asset fonts folder. photonstorm 2014-03-03 17:03:15 +00:00
  • 6cc09fce67 Updated Pixi to fix roundToPixel error. photonstorm 2014-03-03 16:13:50 +00:00
  • 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. photonstorm 2014-03-03 16:05:55 +00:00
  • 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. photonstorm 2014-03-03 13:43:33 +00:00
  • 960e8cace6 Updated blank tilemap example with painting tool. photonstorm 2014-03-03 11:40:40 +00:00
  • 502d74ee39 Keyboard.event now stores the most recent DOM keyboard event. photonstorm 2014-03-03 11:18:56 +00:00
  • 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. photonstorm 2014-03-03 05:19:46 +00:00
  • 6f513042c1 Tween no longer copies all the object properties into the _valuesStart object on creation. Fixed shadow bug in Debug.text Fixed tween examples. photonstorm 2014-03-03 02:40:59 +00:00
  • 76040d303e Added in the Gestures support contribution for testing. photonstorm 2014-03-03 01:42:11 +00:00
  • 61376093fd Updated all the examples to use the new Debug methods. photonstorm 2014-03-03 01:19:31 +00:00
  • 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. photonstorm 2014-03-03 00:46:03 +00:00
  • 418a161b46 Testing webgl debug overlay. photonstorm 2014-03-02 20:51:44 +00:00
  • 442e6bb776 Events.onInputUp would be dispatched twice if the Sprite had drag enabled, now only dispatched once (thanks Overbryd, fixes #502) Changed webfont URI back to // photonstorm 2014-03-02 11:31:26 +00:00
  • 3794a846d4 Merge pull request #504 from georgiee/fix-single-polygon Richard Davey 2014-03-02 11:26:31 +00:00
  • a7dbd6e626 Merge pull request #498 from alvinsight/1.2 Richard Davey 2014-03-02 11:23:59 +00:00
  • 0eb23d4b11 RandomDataGenerator.integerInRange(min, max) now includes both min and max within its range (#501) photonstorm 2014-03-02 11:21:30 +00:00
  • 52118be088 Sound.onMarkerComplete event is now dispatched when a marker stops. See Sound.onLoop for a looping marker event (thanks registered99, fixes #500) photonstorm 2014-03-02 11:11:20 +00:00
  • 66bdf56349 The physics world is now cleared on state swap (fixes #505) photonstorm 2014-03-02 11:04:04 +00:00
  • 33da238e97 Updated pixi.js photonstorm 2014-03-02 10:58:51 +00:00
  • 7ff4e51ab1 Time.reset does a removeAll on any Timers. Device no longer things a Windows Phone or Windows Tablet are desktop devices (thanks wombatbuddy, fixes #506) photonstorm 2014-03-02 10:56:39 +00:00
  • a1bb3ea23b pop first element if there is only one shape Georgios Kaleadis 2014-03-01 12:04:30 +01:00
  • 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 :) photonstorm 2014-02-28 19:45:15 +00:00
  • 8dcfef8db0 Updated to latest Pixi build (can do away with our own local patch now). Group.sendToBottom(child) is the handy opposite of Group.bringToTop() Group.moveUp(child) will move a child up the display list, swapping with the child above it. Group.moveDown(child) will move a child down the display list, swapping with the child below it. photonstorm 2014-02-28 18:55:07 +00:00
  • 27cea5e6f0 Tidying up a bit alvinsight 2014-02-28 18:40:06 +00:00
  • f17cdd9c32 Updated a lot of examples to Phaser 2.0 :) alvinsight 2014-02-28 18:22:52 +00:00
  • bbc0f4a18a Updated grunt script so it can copy the build files to the right location. photonstorm 2014-02-28 11:12:49 +00:00
  • 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). photonstorm 2014-02-28 09:30:53 +00:00
  • 4562939e4e Fixed stupid error in destroy(). photonstorm 2014-02-28 06:17:18 +00:00
  • e45a929b00 Body.loadPolygon now parses all shapes that may exist in a JSON data file, and re-creates them all on the Body. Assumes shapes are CCW + Convex (tested working with Lime Exportor). Almost fixes #449 but Body rotation seems to screw orientation of shapes. photonstorm 2014-02-28 05:46:02 +00:00
  • 8dc28f4800 Animation.speed added. You can now change the animation speed on the fly, without re-starting the animation (feature request #458) photonstorm 2014-02-28 04:32:12 +00:00
  • e3d53ad6a3 Game no longer pauses if you've forced orientation and change it, also doesn't resize a NO_SCALE game. If the game was set to NO_SCALE and you swapped orientation, it would pause and resize, then fail to resize when you swapped back (thanks starnut, fixes #258) photonstorm 2014-02-28 04:15:28 +00:00
  • 09d4a35b7f Fixed issue where Phaser.Canvas.create would always make a screencanvas for CocoonJS, but that should only happen once. New parameter toggles it. photonstorm 2014-02-28 03:55:06 +00:00
  • 34ee2b0b20 Fixed issue with CocoonJS detection in Device. Fixed docs issue in Tilemap. Created landscape pointer test, confirmed working fine (issue #276) photonstorm 2014-02-28 03:09:04 +00:00
  • 43cd5e4b3f Fixed the Tunnel filter. Had to patch Pixi to do it :( But no other choice for now until they merge my pull request. photonstorm 2014-02-27 23:28:28 +00:00
  • 3568dc4ff1 Pixi GrayFilter ported over (thanks nickryall #404) Fixed Time.totalElapsedSeconds, which gets the other filters working again too. photonstorm 2014-02-27 22:35:06 +00:00
  • a8bd5db7ba Fixed smoothed value in Sprite and Image too. photonstorm 2014-02-27 21:57:57 +00:00
  • 5c30fd019f Stage.smoothed was returning the opposite of its actual setting (#494) photonstorm 2014-02-27 21:56:47 +00:00
  • 10b3dbf74a Loader.replaceInFileList wouldn't over-write the previous entry correctly, which caused the Loader.image overwrite parameter to fail (thanks basoko, fixes #493) photonstorm 2014-02-27 21:41:54 +00:00
  • 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. photonstorm 2014-02-27 20:05:16 +00:00
  • 53c10ca31f The grunt task now creates an optional version of Phaser without any Physics support built in. Quite a bit smaller now. The grunt task now has a new noUmd option which builds Phaser without the UMD wrapper. photonstorm 2014-02-27 17:00:14 +00:00
  • 4d284029c7 Tweens now resume correctly if the game pauses (focus loss) while they are paused. Tweens don't double pause if they were already paused and the game pauses. photonstorm 2014-02-26 23:27:22 +00:00
  • 86374d4437 Phaser.Timer will no longer resume if it was previously paused and the game loses focus and then resumes (fixes #383) Phaser.Timer.stop has a new parameter: clearEvents (default true), if true all the events in Timer will be cleared, otherwise they will remain (fixes #383) photonstorm 2014-02-26 20:12:17 +00:00
  • db090601b8 The Timer will no longer create negative ticks during game boot, no matter how small the Timer delay is (fixes #366) photonstorm 2014-02-26 19:51:28 +00:00
  • 493c12c807 Merge pull request #491 from nhowell/patch-1 Richard Davey 2014-02-26 18:57:32 +00:00
  • 419076ed62 Add missing spaces in CONTRIBUTING.md Nicholas Howell 2014-02-26 10:41:13 -05:00
  • d0fa50f014 Fixed issue stopping SoundManager.volume from working correctly on a global volume basis (fix # 488) photonstorm 2014-02-26 14:40:55 +00:00
  • 4a97861ff8 Updated p2 photonstorm 2014-02-26 06:27:44 +00:00
  • 5ab104ad4b Loader.script now has callback (and callbackContext) parameters, so you can specify a function to run once the JS has been injected into the body. photonstorm 2014-02-26 02:45:06 +00:00
  • 1aea08d0f7 AnimationParser.spriteSheet wasn't taking the margin or spacing into account when calculating the numbers of sprites per row/column, nor was it allowing for extra power-of-two padding at the end (fix #482, thanks yig) AnimationManager.add documentation said that 'frames' could be null, but the code couldn't handle this so it defaults to an empty array if none given (thanks yig) Also updated TypeScript definitions and StateManager.add docs. photonstorm 2014-02-26 01:32:38 +00:00
  • 4f0c764b63 Merge pull request #484 from Strato/patch-1 master Richard Davey 2014-02-26 01:25:38 +00:00
  • 29fcfc515d Fixed TilemapParser - would spit out a tileset warning if margin/spacing were set (fix #485, thanks Cybolic) photonstorm 2014-02-26 01:20:24 +00:00
  • 994eaff92b StateManager fixes for when you change state in the create function. TilemapLayer update for WebGL. photonstorm 2014-02-26 00:58:19 +00:00
  • d958b34f43 New build. photonstorm 2014-02-25 23:20:06 +00:00
  • db2e3733c2 Fullscreen mode now uses window.outerWidth/Height when using EXACT_FIT as the scale mode, which fixes input coordinate errors (fixes #232) Fullscreen mode now works in Internet Explorer and uses the new fullscreen non-prefix call. photonstorm 2014-02-25 21:16:56 +00:00
  • 375da5db14 Update phaser.d.ts Strato 2014-02-25 19:03:30 +01:00
  • 741249043c ScaleManager has 2 new events: ScaleManager.enterFullScreen and ScaleManager.leaveFullScreen, so you can respond to fullscreen changes directly. Fullscreen mode now uses window.outerWidth/Height when using EXACT_FIT as the scale mode, which fixes input coordinate errors (fixes #232) photonstorm 2014-02-25 17:10:37 +00:00
  • be27442139 Fixed Fullscreen example and State preloading. photonstorm 2014-02-25 16:26:11 +00:00
  • 1646157c0c Fixed documentation error. photonstorm 2014-02-25 14:54:56 +00:00
  • 13c99f3491 Phaser.StageScaleMode has been renamed to ScaleManager and moved from the system folder to the core folder. It's still available under game.scale. If your game references the old Phaser.StageScaleMode consts like SHOW_ALL you need to update them to Phaser.ScaleManager, i.e. Phaser.ScaleManager.SHOW_ALL. All of the Project Templates have been updated to reflect the above change. photonstorm 2014-02-25 14:46:48 +00:00
  • fdde4cb7e6 Sorry, removing console.logs :) photonstorm 2014-02-25 11:58:17 +00:00
  • b4dbaf9950 StateManager.start can now have as many parameters as you like. The order is: start(key, clearWorld, clearCache, ...) - they are passed to State.init() (NOT create!) photonstorm 2014-02-25 11:56:57 +00:00
  • 159426c6fa Updating bower for 1.1.6 + non-minified (#401). photonstorm 2014-02-25 10:39:19 +00:00
  • c53a06849e Stop Group.callAll splitting empty strings. photonstorm 2014-02-25 05:20:19 +00:00
  • a24d252430 Fixed issue where Stage.update wasn't called. photonstorm 2014-02-25 04:58:09 +00:00
  • 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. photonstorm 2014-02-25 04:40:44 +00:00
  • b255fea85f Time.advancedTiming is a new boolean property. If true Time.fps, fpsMin, fpsMax, frames, msMin and msMax will be calculated, otherwise they remain at their defaults. photonstorm 2014-02-25 03:50:52 +00:00
  • 8fafb3de56 Merge pull request #470 from indiejones/1.2 Richard Davey 2014-02-25 04:05:21 +00:00
  • 8fb2f20482 Swapping between tabs will pause and resume tweens correctly, allowing their onComplete events to still fire (fixes #292) photonstorm 2014-02-25 03:33:47 +00:00
  • cc06a62b90 Pausing the game will now mute audio and resuming will un-mute, unless it was muted via the game (fixes #439) photonstorm 2014-02-25 03:12:12 +00:00
  • 415342d986 Vastly improved visibility API support + pageshow/pagehide + focus/blur. Working across Chrome, IE, Firefox, iOS, Android (also fixes #161) photonstorm 2014-02-25 02:59:24 +00:00
  • beaac18b8f Active animations now monitor if the game pauses, and resume normally when the game un-pauses (fixes #179) photonstorm 2014-02-24 23:06:45 +00:00
  • a25f6dbc3b Physics.processRebound now takes Body direction into account, helps with body-body collision bounces (thanks ram64) Fixed the Example / physics / mass velocity test. Fixed readme typo. photonstorm 2014-02-24 21:43:02 +00:00
  • 0ed1aedba7 Merge pull request #477 from JoeAnzalone/master Richard Davey 2014-02-24 21:28:23 +00:00
  • 36df5516dd Fixed full-screen anti-alias issue (#478). photonstorm 2014-02-24 20:33:22 +00:00