

- #Texturepacker scale mode how to#
- #Texturepacker scale mode code#
- #Texturepacker scale mode download#
How to create an atlas using TexturePackerįirst of all you need install TexturePacker. assets.enqueueAtlas('atlas', 'atlas.png', 'atlas.json') Step four: Load all textures in AssetManager ('complete', this.onAssetsLoaded, this) Ĭongratulations you’ve loaded the image in assets manager Load Atlas assets.enqueueImage('anvil', 'popart_anvil.png') Step three: Now we should specify the texture. Step one: Put your images in textures folder.ĭeclare AssetManager and path to your assets. Open command console from this location and enter following commands: So, now you can start working with Black! Loading assets Load imageīefore you starting to write any code, create a folder for your projects or go to the folder where your projects are usually located. This is your entry point, where you can start writing code.
#Texturepacker scale mode code#
Open project folder in your favorite code editor. Simply enter next command: npm run bundle.

For better compatibility and faster loading time please use production build. Settings in gulpfile.js allow you to build changes in a really short time. If you can see the anvil on the screen, then you've done everything right.Īll files inside sheets, textures, fonts, html, spine and audio folders will be automatically copied into dist folder when changed. This template provides ability to run development server on port 4245 to do so run npm start in the terminal then open a browser and navigate to. Even if you already have it, we recommend downloading the latest version.īefore you starting to write any code, create a folder for your projects or go to the folder where your projects are usually located, open command console in this folder and enter following commands: git clone
#Texturepacker scale mode download#
If it is not already installed on your computer, follow download link: Node.js. Node.js runtime is required to run your future project. If you are an experienced developer Black Engine core concepts will be quite easy for understanding, but we strongly recommend you to take a minute and read this overview carefully because despite the simplicity of some of our conceptions, they can differ from what you might expect initially. Vice versa, we believe that the main task of Black is empowering you, as a game creator, with simple but strong tools which will allow you realize your personal unique vision. In spite of fact that this is a turn-key production platform, Black Engine does not try to provide all-encompassing solutions for everything. All of the descriptions are quite brief but you can find the links for more detail documentation below.īlack Engine was designed on a clear philosophy of simplicity. This introduction covers the core concepts of the Black Engine and intended to give an overview to the scripts and the most important features of it.

Introductionīlack Engine is a highly optimized 2D framework for desktop, mobile games and applications.
