gamify Posted April 3, 2017 Share Posted April 3, 2017 http://melonjs.github.io/melonJS/examples/UI/ in this above example how the UI_Assets.json is created and how the frames are and its attributes are set Quote Link to comment Share on other sites More sharing options...
obiot Posted April 3, 2017 Share Posted April 3, 2017 using Texture Packer : https://www.codeandweb.com/texturepacker Tutorial here : https://www.codeandweb.com/texturepacker/tutorials/using-sprite-sheets-with-melonjs-tutorial which translates to this in the UI example : https://github.com/melonjs/melonJS/blob/master/examples/UI/js/game.js#L23-L28 https://github.com/melonjs/melonJS/blob/master/examples/UI/js/entities/UIContainer.js#L28 https://github.com/melonjs/melonJS/blob/master/examples/UI/js/entities/buttons.js#L21 Quote Link to comment Share on other sites More sharing options...
gamify Posted April 3, 2017 Author Share Posted April 3, 2017 okay thank you so much 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.