glass22 Posted December 13, 2013 Share Posted December 13, 2013 Hi, I've seen Pixi is able to bend sprites, does any one have a tutorial? of source code that does it? or even just what functions within Pixi I would need to look at? the sea example does it, but can't find code for it? Quote Link to comment Share on other sites More sharing options...
rich Posted December 13, 2013 Share Posted December 13, 2013 The example code is in the examples folder! IIRC it uses a Rope object (in src/extras), or maybe a Strip. Look at the example source and see! Quote Link to comment Share on other sites More sharing options...
glass22 Posted December 13, 2013 Author Share Posted December 13, 2013 Hi, I've looked but I only see the 14 examples? none contain this? can you link me to source code? The code for this would be ideal http://www.goodboydigital.com/pixijs/storm/ it's been minified etc but the original or anything showing how to do the bendy things. Quote Link to comment Share on other sites More sharing options...
rich Posted December 13, 2013 Share Posted December 13, 2013 It's not minified as far as I can see: http://www.goodboydigital.com/pixijs/storm/js/stormCodez.js And as I thought, it uses the Rope extra. Quote Link to comment Share on other sites More sharing options...
glass22 Posted December 13, 2013 Author Share Posted December 13, 2013 Ah sorry was just missing white space, I fixed. Other than this source code I can't find any information on rope? does any exist? Quote Link to comment Share on other sites More sharing options...
Akis Posted December 14, 2013 Share Posted December 14, 2013 It's not minified as far as I can see: http://www.goodboydigital.com/pixijs/storm/js/stormCodez.js And as I thought, it uses the Rope extra.It's minified but not obfuscated. There is a difference between the 2 Quote Link to comment Share on other sites More sharing options...
rich Posted December 14, 2013 Share Posted December 14, 2013 I have a Chrome plugin that automatically 'tidies' up and un-minifies JS source. Quote Link to comment Share on other sites More sharing options...
xerver Posted December 15, 2013 Share Posted December 15, 2013 I have a Chrome plugin that automatically 'tidies' up and un-minifies JS source. Chrome has that functionality built in to the debug tools Just hit the {} symbol on the bottom bar. Quote Link to comment Share on other sites More sharing options...
glass22 Posted December 15, 2013 Author Share Posted December 15, 2013 Does anyone know of a tutorial to using rope? I'm new to JavaScript and Pixi, but I can't really find any information on using it and Pixi as a whole seems to have very little information out there? Even just a basic thing showing the way to create a rope object and add it to the screen would be idea, how are vectors passed in for the points? I tried array and objects but no luck. sk-iv 1 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.