enpu Posted March 30, 2015 Share Posted March 30, 2015 EDIT: Current Panda v2 docs: http://ekelokorpi.github.io/panda.js-site/engine/docs/ Playground: http://ekelokorpi.github.io/panda.js-site/engine/playground/ So, next version is not going to be 1.14.0, because there are big changes coming, this is going to be the first major update, 2.0! One of the biggest thing, i have gone through all Pixi.js source code and cleaned everything, fixed some bugs and removed lots of useless stuff, so it's like lite version of Pixi, customized just for Panda. I have also converted all classes to use the same class inheritance as other Panda classes, so that means you can extend and inject from all Pixi classes, this will make things a lot simpler and cleaner. Also loader and interaction are rewritten and separated from renderer. Some other things that have already been done: - Every property, method and attribute on every class are now documented and private ones are renamed to start with underscore - Don't have to use addObject anymore. Every class that has update function, is automatically added to scene, when you create new instance of it. - Don't have to call this.super(); on scene's update function anymore. - You can change scene's update order (physics, objects, tweens, timers etc.) - Lots of small changes and improvements WombatTurkey, drhayes, OttoRobba and 1 other 4 Quote Link to comment Share on other sites More sharing options...
rich Posted March 30, 2015 Share Posted March 30, 2015 I assume from what you've said above that it's not using Pixi 3 then? Quote Link to comment Share on other sites More sharing options...
LinkTree Posted March 30, 2015 Share Posted March 30, 2015 Sounds great! can't wait to play with it.I would also like to hear what are the plans for Pixi 3 when it is released. Thank you for all the good work you put into this. Quote Link to comment Share on other sites More sharing options...
hamdirizal Posted March 31, 2015 Share Posted March 31, 2015 That's great enpu. Thanks for your commitment on this awesome engine. Quote Link to comment Share on other sites More sharing options...
enpu Posted March 31, 2015 Author Share Posted March 31, 2015 Yep no Pixi 3 there, i tried it, then considered to make my own renderer, mainly for same reasons as Rich on Phaser.But then decided to make customized version of Pixi 2, and the more i got through the code, the more i found thingsthat are really not needed on game engine, in my opinion. I'm pretty happy with it right now, still few things need to be implemented,and i'm going to release some features as plugins, like Spine support. So in Panda v2 you will be able to do things like this:game.createClass('MySprite', 'Sprite', { init: function() { this.position.set(100, 100); }, update: function() { this.rotation += 1 * game.system.delta; }});var sprite = new game.MySprite('panda.png');Pretty clean i think! Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 31, 2015 Share Posted March 31, 2015 Sounds absolutely awesome! I can't wait Thank you for the awesome engine!! PS. Can we please have hires support for Spine animations? Quote Link to comment Share on other sites More sharing options...
LinkTree Posted March 31, 2015 Share Posted March 31, 2015 Yep no Pixi 3 there, i tried it, then considered to make my own renderer, mainly for same reasons as Rich on Phaser.But then decided to make customized version of Pixi 2, and the more i got through the code, the more i found thingsthat are really not needed on game engine, in my opinion. I'm pretty happy with it right now, still few things need to be implemented,and i'm going to release some features as plugins, like Spine support. So in Panda v2 you will be able to do things like this:game.createClass('MySprite', 'Sprite', { init: function() { this.position.set(100, 100); }, update: function() { this.rotation += 1 * game.system.delta; }});var sprite = new game.MySprite('panda.png');Pretty clean i think!Definitely. it feels more intuitive this way.You don't think the improved rendering performance that comes with pixi v3 is worthwhile? Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted March 31, 2015 Share Posted March 31, 2015 Enpu you're the best, I've been watching the awesome progress for weeks. Now I cannot wait any more. Can you tell us when will the develop branch ready to use? Also curious about why you create the renderer based on v2 instead of v3 which sounds like faster? Quote Link to comment Share on other sites More sharing options...
rich Posted March 31, 2015 Share Posted March 31, 2015 Yep no Pixi 3 there, i tried it, then considered to make my own renderer, mainly for same reasons as Rich on Phaser.But then decided to make customized version of Pixi 2, and the more i got through the code, the more i found thingsthat are really not needed on game engine, in my opinion. I'm pretty happy with it right now, still few things need to be implemented, Sounds like exactly the same conclusions and actions I came to with Phaser 2.3 so I understand completely! There's a lot of stuff that can be removed isn't there (which to be fair to them is partly what Pixi 3 was all about). From what I've tested I don't believe there are any significant speed increases in Pixi 3 over Pixi 2. However there are lots of bug fixes which never made it into the Pixi 2 branch, which is the only part that worries me a little. So I've been manually applying my own fixes, back porting code, etc and it's working ok so far. I could have gone all-in with Pixi 3 (in Phaser 2) but it's still unstable and I had to trade the cost of doing that vs. rewriting Phaser 2 from scratch to support their module format. It just didn't weigh up for me. I'm guessing you came to a similar conclusion (although the module part would be less of an issue for you of course). Good luck with Panda 2! Quote Link to comment Share on other sites More sharing options...
enpu Posted March 31, 2015 Author Share Posted March 31, 2015 Thanks Rich! Here is first preview video of Panda Editor / Launcher combination. I'm pretty excited about it, because it's really makes your work faster and easier, especially when working with mobile devices. I got about 10 devices (iOS, Android and Windows Phone) on my desk, all connected into the same project, and i can see changes instantly on every device as i change the code in the editor. It's way faster than other livereloaders, because they usually just reload the whole page, but Panda Editor knows exactly what module and class you have changed, and then sends the info to the devices, and they just load the new files that are changed and then relaunches the scene, and it's super fast! Also you can control and see all devices in your editor, and reload any specific one if needed. Also debugging is so much easier, you got console in your editor and every device sends their errors to the editor, and you can see exactly what device sent the error and what file and line number etc. You can also see visually from the device that it got error. The editor also highlights the error, if it occurs in the game code. drhayes, OttoRobba and Ninjadoodle 3 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 31, 2015 Share Posted March 31, 2015 That looks really awesome! Quote Link to comment Share on other sites More sharing options...
rich Posted March 31, 2015 Share Posted March 31, 2015 @enpu - btw just a friendly heads-up that Pixi 2 is MIT, so you still need to include the copyright / author notice in the source (I saw you had stripped that all out in the Panda 2 dev branch, legally it needs to be put back) Quote Link to comment Share on other sites More sharing options...
enpu Posted March 31, 2015 Author Share Posted March 31, 2015 @rich - Ah thanks for the info! Do they have to be in every file though? Quote Link to comment Share on other sites More sharing options...
rich Posted March 31, 2015 Share Posted March 31, 2015 You could read it either way really: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." Personally I just think it's good form. It's a single line of text. Not exactly going to rock the boat. Your call though. Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted March 31, 2015 Share Posted March 31, 2015 Really interesting changes, will definitely make development with Panda faster Great wokr Enpu! Quote Link to comment Share on other sites More sharing options...
gianmichele Posted April 1, 2015 Share Posted April 1, 2015 Looking cool! Are you going to have a custom wrapper then, or will you still be relying on cocoon js for mobile? Quote Link to comment Share on other sites More sharing options...
goide Posted April 2, 2015 Share Posted April 2, 2015 I do not speak much English, but in truth this great achievement so see you've developed, but I think for this new version, and you implement several changes, you can document a little more, that would be great for the transition in the change expect to see. The other does not but think your implementation of the new Javascript to Version 6 change much in the way of programming this game engine Panda? Is that I've put some reading this new example's implementation when lanze of JS6 and good for me I think it would change many game engines currently on the market. Quote Link to comment Share on other sites More sharing options...
Pattentrick Posted April 6, 2015 Share Posted April 6, 2015 @enpu I am very excited about the upcoming release of the new and shining Panda Engine 2.0.0! You wrote that you are planning to release this new version in the next few months. Do you think that it's possible to finish the new version until the end of the summer? Or should we better expect a release at autumn, or at the end of the year? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 7, 2015 Author Share Posted April 7, 2015 Looking cool! Are you going to have a custom wrapper then, or will you still be relying on cocoon js for mobile? Panda Launcher is made using PhoneGap, so mainly that is supported, but also CocoonJS. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 7, 2015 Author Share Posted April 7, 2015 @enpu I am very excited about the upcoming release of the new and shining Panda Engine 2.0.0! You wrote that you are planning to release this new version in the next few months. Do you think that it's possible to finish the new version until the end of the summer? Or should we better expect a release at autumn, or at the end of the year? I'm doing my best to release it asap Quote Link to comment Share on other sites More sharing options...
enpu Posted April 8, 2015 Author Share Posted April 8, 2015 Some new things implemented: - Play animation in reverse- Play animation in random order- Define animation speed in frames per second- There is now anchor point in every display object (Container, Text etc.)- Anchor point is now defined in pixels rather than percent Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted April 8, 2015 Share Posted April 8, 2015 @enpu, nice new features.Will you make Animation class support multiple animations in the future which seems more convenient? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 8, 2015 Author Share Posted April 8, 2015 What exactly do you mean by multiple animations? Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted April 8, 2015 Share Posted April 8, 2015 Ah, sorry for that. What I mean is like how Phaser.Sprite does, here's a example:var myAnim = new game.Animation(frames);myAnim.addAnim('walk', [2, 3, 4, 5]);myAnim.play('walk');Well, I think addAnim is not a good name here, replace it with define:var myAnim = new game.Animation(frames);myAnim.define('walk', [2, 3, 4, 5]);myAnim.play('walk'); SkyzohKey 1 Quote Link to comment Share on other sites More sharing options...
SkyzohKey Posted April 8, 2015 Share Posted April 8, 2015 On 8/4/2015 at 4:41 PM, PixelPicoSean said: Ah, sorry for that. What I mean is like how Phaser.Sprite does, here's a example: var myAnim = new game.Animation(frames); myAnim.addAnim('walk', [2, 3, 4, 5]); myAnim.play('walk'); var myAnim = new game.Animation(frames);myAnim.addAnim('walk', [2, 3, 4, 5]);myAnim.play('walk'); Yeah should be cool ! + animations defined by a .json file. ! Example: { "walk": { // Base path: media/ "sprites/player-walk-01.png", "sprites/player-walk-02.png", "sprites/player-walk-03.png", "sprites/player-walk-04.png", "sprites/player-walk-05.png" }, "run": { // Base path: media/ "sprites/player-run-01.png", "sprites/player-run-02.png", "sprites/player-run-03.png", "sprites/player-run-04.png", "sprites/player-run-05.png" } } { "walk": { // Base path: media/ "sprites/player-walk-01.png", "sprites/player-walk-02.png", "sprites/player-walk-03.png", "sprites/player-walk-04.png", "sprites/player-walk-05.png" }, "run": { // Base path: media/ "sprites/player-run-01.png", "sprites/player-run-02.png", "sprites/player-run-03.png", "sprites/player-run-04.png", "sprites/player-run-05.png" }} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.