cubiq Posted February 20, 2014 Share Posted February 20, 2014 do you plan on adding advanced features such as path finding, war of fog, line of sight, ... ? Quote Link to comment Share on other sites More sharing options...
enpu Posted February 20, 2014 Author Share Posted February 20, 2014 Good suggestions.If you can, add your requests to issue tracker and i will put them on a milestone. Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 20, 2014 Share Posted February 20, 2014 enpu your engine is really good but to people to be able to learn it fast you need to make better docs, I mean give explanation for every object, module, property, method in the engine and also please add an example for every of object, module, property, method. chanojuano 1 Quote Link to comment Share on other sites More sharing options...
cubiq Posted February 21, 2014 Share Posted February 21, 2014 I'm flooding you https://github.com/ekelokorpi/panda.js/issues/28 https://github.com/ekelokorpi/panda.js/issues/29 https://github.com/ekelokorpi/panda.js/issues/30 https://github.com/ekelokorpi/panda.js/issues/31 Quote Link to comment Share on other sites More sharing options...
enpu Posted February 21, 2014 Author Share Posted February 21, 2014 @angelkom, i'm improving docs and tutorials/examples all the time, so please be patient @cubiq, Great thanks!! angelkom and Skwal 2 Quote Link to comment Share on other sites More sharing options...
cubiq Posted February 21, 2014 Share Posted February 21, 2014 oh also a seeded random generator would be handy. I used to use Alea but I'm now using a very lame and very effective:RANDOM_SEED = (RANDOM_SEED * 9301 + 49297) % 233280;return RANDOM_SEED / 233280;don't ask me why it works... but it does... Quote Link to comment Share on other sites More sharing options...
enpu Posted February 21, 2014 Author Share Posted February 21, 2014 That's new thing to me,can you give me example on where you would need that? Quote Link to comment Share on other sites More sharing options...
cubiq Posted February 21, 2014 Share Posted February 21, 2014 sometimes you need to create a random but repeatable pattern. Say for example a random sudoku schema. You need it random but you also need a "seed" to be able to retrieve that random pattern. Another example is in procedural random generated dungeons/levels, sometimes you spot an error in the generator that you need to fix, but without a seed you can't re-generate the same random schema (making debug really hard). Apart from that, the internal javascript random generator sucks really hard. We are talking about "serious" gaming here, not casual-flapping-one-stage games. Nothing against them of course. Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 21, 2014 Share Posted February 21, 2014 @enpu yup sorey you are right I'm inpatient. Btw are you working alone on the engine or as a team like in the phaser? Quote Link to comment Share on other sites More sharing options...
enpu Posted February 21, 2014 Author Share Posted February 21, 2014 Currently alone, but other developers are welcome to contribute at GitHub:https://github.com/ekelokorpi/panda.js Skwal 1 Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 21, 2014 Share Posted February 21, 2014 @enpu for solo developer the engine is great the game I'm making with the engine is perfect I'm using your flappy dog code btw do I have permission to edit the flappy dog code take some of the code and etc and put in my game also how to make the game to work even if there isn't internet I want to have analytics in my game but only when there is internet because I think that makes the game to force close Quote Link to comment Share on other sites More sharing options...
enpu Posted February 21, 2014 Author Share Posted February 21, 2014 Yes you can use and edit Flying Dog code anyway you want. Here is example on how to use analytics:http://www.pandajs.net/tutorials/example-2/ You can check internet connection with:if(navigator.onLine) { // You got internet connection!}For offline support, get src/engine/offline.js from develop branch. Then run this command from root of your project:node src/engine/offline.js [outputFile] [gameFile] [mediaDir][outputFile] = Filename for your game cache file (default: game.cache)[gameFile] = Filename of your minified game file (default: game.min.js)[mediaDir] = Directory of your media files (default: media)Then include the generated cache file in your index.html:<html manifest="game.cache"> Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 21, 2014 Share Posted February 21, 2014 And how can we change the frame of the sprite or the sprite it self later on lets say I want when the player jumps change to the jump.png ? Quote Link to comment Share on other sites More sharing options...
enpu Posted February 21, 2014 Author Share Posted February 21, 2014 You can change sprite's texture like this:var texture = game.Texture.fromImage('media/jump.png');sprite.setTexture(texture); Quote Link to comment Share on other sites More sharing options...
angelkom Posted February 22, 2014 Share Posted February 22, 2014 @enpu It doesn't work I putted in the jump method but it doesn't work the sprite doesn't change on jump... jump: function() { if(this.body.position.y < 0) return; this.body.velocity.y = this.jumpPower; game.sound.playSound('jump'); var jump = game.Texture.fromImage('media/jump.png');this.sprite.setTexture(jump ); } Quote Link to comment Share on other sites More sharing options...
enpu Posted February 24, 2014 Author Share Posted February 24, 2014 Can i see full code of the class? Quote Link to comment Share on other sites More sharing options...
Madmaxx Posted February 26, 2014 Share Posted February 26, 2014 Hi, real nice framework.just to confirm does your library contains the following features: Drag & Drop actions & conditionsBullet "imply moves an object forwards at an angle. However, it provides extra options like gravity and bouncing that allow it to also be used like a bouncing ball."Persist "makes the object remember its state when going to a different layout, then coming back. If a layout has objects"Intel XDK AGI implementation to export.iFrame for adsregards 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.