Commit graph

334 commits

Author SHA1 Message Date
Richard Davey
e43571980d Book files 2013-11-19 00:25:55 +00: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
38bd00b4ed ArcadePhysics.separateTile wasn't returning the value, so the custom process callback wasn't getting called (thanks flameiguana) 2013-11-16 13:47:12 +00:00
photonstorm
83cacb93a0 More updates to BitmapData. 2013-11-15 20:40:55 +00:00
Richard Davey
8d48576fe2 Updates 2013-11-14 16:24:27 +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
46cf024a35 filter test updates 2013-11-09 02:16:52 +00:00
photonstorm
3f99b691c9 Added in a Group.sort demo, also updated the documentation and build files. 2013-11-07 06:10:15 +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
photonstorm
789f0bb0a1 Fixing up Group.sort 2013-11-06 17:43:01 +00:00
photonstorm
dfb22f1044 Tracked down an evil bug in Group.swap that caused the linked list to get corrupted in an upward (B to A) neighbour swap. 2013-11-06 16:46:21 +00:00
photonstorm
8b793cd8d7 Updated to latest version of Pixi.js. Lovely new WebGL filters now working happily :) 2013-11-06 04:51:23 +00:00
photonstorm
1eca16a948 ArcadePhysics.updateMotion applies the dt to the velocity calculations as well as position now (thanks jcs) 2013-11-05 16:14:24 +00:00
photonstorm
2e576fa9a7 Input Handler updates, orientation screen and World visibility 2013-11-04 20:44:32 +00:00
photonstorm
3e9777e6f4 Updated docs for 1.1.2 release. 2013-11-01 18:16:52 +00:00
alvinsight
d0889fcc17 Tidied up the code base 2013-11-01 18:04:54 +00:00
photonstorm
160a321a36 Updated invaders demo. 2013-11-01 17:37:32 +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
alvinsight
56c7f1f275 Invaders game improved 2013-11-01 17:02:06 +00:00
Webeled
e3f76ce481 Tilemaps examples updated 2013-11-01 12:25:14 +00:00
photonstorm
581d637663 Added Group.cursor. This points to the first item added to a Group. You can move the cursor with Group.next() and Group.previous(). 2013-11-01 02:50:00 +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
6f93a2ec94 Multiple Anims update, Tilemap fixes and some new examples. 2013-10-31 15:45:19 +00:00
photonstorm
712858cf75 More work on the Invaders game. 2013-10-31 05:31:54 +00:00
photonstorm
ddf15979d0 Fixing up Invaders and Star Struck. Also removing lots of un-used css jsdoc themes. 2013-10-31 01:45:16 +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
9261160571 1.1.1 release with fix for Phaser.AUTO and a new text example. 2013-10-26 19:14:13 +01:00
photonstorm
34736fbde5 Final 1.1 release. Here goes nothing :) 2013-10-25 18:35:49 +01:00
Webeled
8dfe5aee1c Second commit, all the basic examples added, and wip files moved 2013-10-25 18:10:03 +01:00
Webeled
f63e8d7d06 Basic examples created 2013-10-25 18:00:25 +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
Florent Cailhol
708a144c7a Sort example directories 2013-10-24 14:12:54 +02:00
Florent Cailhol
f6b50c4520 Fix order of examples 2013-10-24 14:08:57 +02:00
photonstorm
a6fac64248 Loads of issues reported on Github resolved (sprite crop, music resume, etc). 2013-10-24 04:27:28 +01:00
Richard Davey
e4621aafdd Merge pull request #115 from ooflorent/grunt-build
Build phaser using Grunt
2013-10-23 09:11:51 -07: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
Florent Cailhol
dfee9f9b2f Add new Grunt build 2013-10-23 16:58:48 +02:00
photonstorm
94c7c57e1c Fixed WebGL detection and code colour on Firefox. 2013-10-23 15:13:21 +01:00
photonstorm
4a51ac4671 Updated README and sorting out folder case issue. 2013-10-23 13:30:23 +01:00
photonstorm
f1f42e4d41 New Examples area finished, README updated. Getting closer to 1.1 release. 2013-10-23 04:15:44 +01:00
photonstorm
cab3b53cf0 SideView example viewer finished. 2013-10-23 02:14:51 +01:00
photonstorm
e5c3ca27c5 Making dependancies local for offline access to examples. 2013-10-22 21:29:58 +01:00
Richard Davey
84b837f56c View 2013-10-22 16:38:40 +01:00
photonstorm
77fd15bf3c Preparing new static examples viewer. 2013-10-22 14:59:43 +01:00
photonstorm
07724e5001 Revamping the examples area. 2013-10-22 03:58:20 +01:00
Webeled
97423a9d8d All the names now fit 2013-10-18 16:27:55 +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
4b2ac6c6c6 More tilemap examples 2013-10-16 21:25:51 +01:00
photonstorm
9c1fdb371c Nearly finished Tilemap integration into the core. 2013-10-16 06:33:39 +01:00
photonstorm
31018b9295 Star Struck game back and working again, plus finished the level design. 2013-10-16 03:37:15 +01:00
photonstorm
a97f271de7 Fixed Animation index 0 issue and hooked TilemapLayer to camera. 2013-10-16 02:09:12 +01:00
photonstorm
fd5eeb9088 Fixed Rectangle intersection issue and tilemap collision is working again. Win! 2013-10-15 15:24:07 +01:00
photonstorm
f3ea68aad3 Extracting the correct area from a layer, debug displaying it and preparing for collision. 2013-10-15 05:41:42 +01:00
photonstorm
dd695e066f More tilemap tweaks. 2013-10-14 19:37:52 +01:00
Webeled
969fa46484 Loads of new examples, some more bug fixes, all of them work beautifully 2013-10-14 19:32:07 +01:00
Richard Davey
faf432bdb0 Merge pull request #102 from alvinsight/dev
Well, almost every example works with 1.0.7 except multiple anims, plus some funky tweens examples, and renamed a lot of files
2013-10-14 05:47:38 -07:00
Webeled
44613f7140 Should resolve the conflict 2013-10-14 13:40:02 +01:00
photonstorm
c6bf67c392 Group.alpha exposed and instance returns added to Loader functions. 2013-10-13 20:28:06 +01:00
photonstorm
e98aa205ea Sprite.destroy is back in business. 2013-10-13 01:29:57 +01:00
Webeled
786aa2900e Final commit of the day 2013-10-11 22:49:51 +01:00
Webeled
eb98998046 Testing 2013-10-11 22:29:50 +01:00
Webeled
3acdad92cb First commi using the new software 2013-10-11 22:26:27 +01:00
photonstorm
574f4f351b Github Issue #101 fixed. Plus more Tilemap updates. 2013-10-11 20:02:12 +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
cf414394c3 Tileset working, map coming next. 2013-10-11 06:30:28 +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
29acf7fb4b Enemy tanks, now firing. 2013-10-09 07:11:36 +01:00
photonstorm
ca9321ef42 Updated physics body to use localTransform. Updated tanks demo. 2013-10-09 05:13:38 +01:00
photonstorm
83a00862be Lots of new examples and updates. 2013-10-09 04:31:08 +01:00
Richard Davey
1c577d3674 Fixed RandomDataGenerator.sow 2013-10-08 22:55:27 +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
ebc4e5dc3d New examples HTML page added. 2013-10-08 12:52:20 +01:00
photonstorm
fa692653e3 Final commit before rebuilding the Tilemap system. 2013-10-08 10:52:15 +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
Webeled
1a522ea786 Removed the self-executing functions 2013-10-07 21:32:34 +01:00
Webeled
77b553ac2a Test 2013-10-07 20:56:44 +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
96da57cac0 Fixed up the namespace in the documentation and finished off all sections other than Game Objects and Physics (yuck). 2013-10-03 02:38:35 +01:00
Richard Davey
f832bacfd6 More Docs! 2013-10-03 01:21:08 +01:00
Richard Davey
e85643abf4 Yet more documentation done. 2013-10-02 20:18:24 +01:00
Richard Davey
6ce6330f50 More docs. 2013-10-02 11:22:48 +01:00
Richard Davey
0a98bb67d8 jsdoc blocks added to every file and tidied up. 2013-10-01 15:05:30 +01:00
Richard Davey
480d90b009 * Removed the callbackContext parameter from Group.callAll because it's no longer needed.
* Updated Group.forEach, forEachAlive and forEachDead so you can now pass as many parameters as you want, which will all be given to the callback after the child.
* Updated build script so it can be run from the command-line and includes UMD wrappers (thanks iaincarsberg)
2013-10-01 02:19:08 +01:00
Richard Davey
8668b82ef6 * Fixed issue causing Keyboard.justPressed to always fire (thanks stemkoski)
* Added Keyboard.addKey() which creates a new Phaser.Key object that can be polled for updates, pressed states, etc. See the 2 new examples showing use.
2013-10-01 01:18:29 +01:00
Richard Davey
83fc38344c Merge pull request #80 from webeled/dev
Tons of new examples
2013-09-30 11:53:55 -07:00
Webeled
933edb203f Final Commit of the day,
Final commit, the wip/examples folder can be removed,
2013-09-30 19:13:01 +01:00
Webeled
bdc8edea9d Lots of new examples :)
Lots of new examples, the wip/examples folder can be destoryed I think
2013-09-30 17:31:03 +01:00
Richard Davey
e3384b7ff7 Merge pull request #71 from webeled/dev
More examples migrated across.
2013-09-30 04:16:44 -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
Webeled
8096dc67f5 Corrected few typos and added a keyboard exampl 2013-09-27 18:25:18 +01:00
Webeled
efa01dcaa3 Final commit of the day more groups examples 2013-09-27 18:06:36 +01:00
Webeled
903b11b730 Groups examples and some boolean checks corrected 2013-09-27 13:27:15 +01:00
Richard Davey
18c695e9dd PixiPatch and other 1.0.7 features 2013-09-27 09:57:08 +01:00
Richard Davey
3a369d5485 Added zwoptex Phaser template. 2013-09-26 11:25:43 +01:00
Richard Davey
891369b197 Preparing for 1.0.6 release, but moving physics changes to dev. 2013-09-24 15:28:29 +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
f66e6326e3 Merge pull request #61 from powerfear/master
make tweens chainable with .to
2013-09-22 14:13:30 -07:00
Richard Davey
20f63c0af2 Fixed Graphics not working correctly. 2013-09-22 15:22:45 +01:00
powerfear
c36543a261 make tweens chain loopable 2013-09-20 21:47:58 -04:00
powerfear
f31d56584d make tweens chainable with .to
Allow successive .to calls to chain tweens, and an example using it.
2013-09-20 19:14:50 -04:00
Richard Davey
45426be0bc Assets update 2013-09-20 23:21:12 +01:00
Richard Davey
8452fa0fd4 Missing assets merged back in! 2013-09-20 17:13:26 +01:00
Richard Davey
a415e779d1 Final 1.0.5 release. 2013-09-20 13:55:33 +01:00
Richard Davey
9e88da5c66 Multiple animation fixes in place. 2013-09-19 23:47:50 +01:00
Webeled
1b5c1f18fe More camera examples 2013-09-19 17:47:12 +02:00
Webeled
6e4631a849 First commit of the day 2013-09-19 10:36:15 +02: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
bb9761aaf4 It loops but still problems on the constructor 2013-09-16 17:40:56 +02: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
e3869ff3ac * Fixed a bug in the AnimationManager where useNumericIndex was always set to true
* Added in lots of Particle examples
* Added in the start of a Breakout game
* Added in the start of a Platformer game
2013-09-16 01:52:15 +01:00
Richard Davey
e705509d29 Added lots of particles examples. 2013-09-16 01:08:06 +01:00
Richard Davey
8c9a7c8bc7 Adding more examples in. 2013-09-15 20:45:00 +01:00
Richard Davey
f069107e55 1.0.1 release - fixes issues in tile map collision, additional Animation stop checks and updated package license. 2013-09-15 03:58:38 +01:00
Richard Davey
70233b7508 Updating examples with new runner and menu system. 2013-09-13 17:48:47 +01: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
62d77e7038 Small new demo and refactored collision list - now far less comparisons to perform! 2013-09-13 04:22:12 +01:00
Richard Davey
0a42269479 Group vs. Group collision working - also fixed a bug in the Body.reset function that was causing some lovely physics errors :) 2013-09-13 03:52:05 +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
f812b92b8a Creating test cases. 2013-09-13 02:07:58 +01:00
Richard Davey
79dc3566f4 Fixed some issues in Tilemap collision, updated the Emitter so x/y controls the point of emission (to stop collision getting out of whack) and fixed the postUpdate in body. 2013-09-12 20:59:56 +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
d211cf669c Some maps :) 2013-09-12 04:56:33 +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
3d22d0e169 Fixed a bug in the tilemap rendering so the tile offsets were wrong. Now renders perfectly :) Also fixed issue that would cause the World to resize smaller than the game size (not allowed for rendering reasons). 2013-09-12 02:18:23 +01:00
Richard Davey
89b00db103 Tilemap Rendering is working :) 2013-09-12 00:55:27 +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
87858d6bbf Fixed a bug stopping legacy Audio from starting correctly. Also fixed an issue in the Loader causing it to not load the next file if an unsupported audio file was encountered. Fixed audio playback issues on Firefox/Waterfox as a result. 2013-09-11 11:33:27 +01:00