Skip to main content

Posts

Showing posts from January 29, 2014

HTML5 Game Development

HTML5 Game Development If you bind up with the texture packer then it gives you lots of hope to move further. Previous discussed topics are: Atlases, JSON Implementation, HTML5, and Texture Packer. For providing a proper output you need to process these three functions: Define variable for Object. Load object with the help of JSON. Draw the object.   FRAME TRIMMING FRAME TRIMMING is a method to remove the unused pixels from the rendered object. After parsing the image from Texture packer, that image contains lots of unused area over the boundary. To make that image work for the game you need to remove the unused pixels and here you need this functionality. Here is an example, your main object is the blue one but you have parsed the rectangular box. To remove those lots of unused area you need to work with frame trimming. For this there is an function named ParseAtlas , The PasreAtlas Defination function is used to remove the unused pi