{"id":9528,"date":"2016-11-02T12:43:04","date_gmt":"2016-11-02T12:43:04","guid":{"rendered":"http:\/\/beta.coherent-labs.com\/?p=9528"},"modified":"2017-11-14T13:57:19","modified_gmt":"2017-11-14T13:57:19","slug":"how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game","status":"publish","type":"post","link":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/","title":{"rendered":"How to create a modern Battle deck screen for Mobile Strategy Game?"},"content":{"rendered":"<p>The strategy game genre is one of the most popular among the mobile game players. Clash of Clans, Game of War and Boom Beach are titles that attract thousands of players and generate billions of dollars in revenue. How do the mobile game development studios create such addictive gameplay so they make the players come back time after time?<\/p>\n<p>To create an addictive mobile game you need to design a great user flow and user experience. You have to think through every element of the game from gameplay, reward system, user interactions to the user interface.<\/p>\n<p>In this tutorial, I will show you how to get started on one mandatory screen for the strategy games genre &#8211; the battle deck screen. I will use the <a href=\"https:\/\/coherent-labs.com\/blog\/coherent-editor-1-4-latest-features\/\">Coherent visual editor<\/a>.<\/p>\n<p>Here is an image of what you will get in the end of the tutorial. All images used for the sample are created by our designer in Photoshop. You will get them with the evaluation version of Hummingbird.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8619\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/preview-576x1024.jpg\" alt=\"Strategy Game Sample\" width=\"400\" height=\"711\" \/><\/p>\n<p>Open the Coherent Editor and start by creating a new file and setting the resolution to custom width: 750 px and height: 1334 px.<\/p>\n<p>We will divide the screen into 3 main sections:<\/p>\n<ol>\n<li><strong>Top section<\/strong> &#8211; containing the player level, experience, coins and emeralds collected.<\/li>\n<li><strong>Middle section<\/strong> &#8211; for the battle deck tabs, hero portraits, and an average cost field.<\/li>\n<li><strong>Bottom section<\/strong> &#8211; including elements for the background, cards collection information and a tab menu for different parts of the game UI<\/li>\n<li><strong>Hero popup<\/strong> with title and text inside.<\/li>\n<\/ol>\n<h4><strong>Top Section<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8630 aligncenter\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/op_menu.jpg\" alt=\"Top_menu\" width=\"533\" height=\"70\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>1. Top section wrapper + background image<\/p>\n<p><span style=\"font-weight: 400;\">You are going to create a <\/span><strong>responsive image<\/strong><span style=\"font-weight: 400;\"> for the background of the <\/span><strong>top section<\/strong><span style=\"font-weight: 400;\"> and use it as a <\/span><strong>wrapper<\/strong><span style=\"font-weight: 400;\"> in which to\u00a0<\/span><strong>nest<\/strong><span style=\"font-weight: 400;\"> the rest of the elements. <\/span><strong><i>A responsive image is essentially a div with \u0430\u00a0background image<\/i><\/strong><span style=\"font-weight: 400;\"> so we can use it as a wrapper.<\/span><\/p>\n<p><strong>Create a responsive image <\/strong><span style=\"font-weight: 400;\">( ID is <\/span><strong>topSection)<\/strong>\u00a0<span style=\"font-weight: 400;\">use the bg_header.png image. It is <\/span><span style=\"font-weight: 400;\">going to be as wide as the screen, so set the width to 56.5vh. Rename it from the Properties panel to <strong>topSection<\/strong>.<\/span><\/p>\n<p><strong>Player Level Flag<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">1.1 The first inner element will be the shadow of the flag (levelFlagShadow &#8211; shadow_iconKingdom.png). Drag the image from the Assets Library or create it by using the panel on the left hand side. Click on &#8220;Responsive image&#8221; inside &#8220;Create elements&#8221;. Firstly, nest it inside topSection by dragging and dropping it in the Hierarchy panel. Then, place it in the left corner vertically centered. Rename the image to levelFlagShadow.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.2 The second element is the actual flag icon which will sit on top of the shadow (levelFlag). Create it, nest it in topSection and place it over the flag shadow. Rename the image to levelFlag.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.2.1 Inside the levelFlag, create a text element called <strong>mainLevel<\/strong> which will show the <\/span><strong>player level value<\/strong><span style=\"font-weight: 400;\">. You can edit the text size and position from the left panel -&gt; Properties -&gt; <\/span><strong>Text properties. <\/strong><span style=\"font-weight: 400;\">Change the size of the text to 4 and the color to white.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8632 aligncenter\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Flag-and-shadow.jpg\" alt=\"flag-and-shadow\" width=\"143\" height=\"74\" \/><\/span><\/p>\n<p><strong>Experience field<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">1.3 For the next element create a responsive image named expBar (bg_Kingdom.png) and nest a text element inside it, just like in the previous element.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8633 aligncenter\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Experience_bar.jpg\" alt=\"experience_field\" width=\"159\" height=\"72\" \/><\/p>\n<p><strong>Coins collected<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Create a responsive image named coinsBar ((bg<\/span><i><span style=\"font-weight: 400;\">Gold<\/span><\/i><span style=\"font-weight: 400;\">Crystals.png) with a text element (coinsValue) inside, just like in the previous element.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So far you have:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.4 Coins image (wrapper)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.4.1 The actual coins value<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You need to add 3 more elements from the Asset Library panel:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.4.2 Image for the &#8220;Plus&#8221; icon (coinsPlusIcon) <\/span><\/p>\n<p><span style=\"font-weight: 400;\">1.4.3 Image for the shadow of the coin underneath it (coinsIconShadow). <\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">! It is important that the shadow image is placed higher in the hierarchy than the coin image. In such a way the shadow will be placed underneath the image.<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">1.4.4 \u00a0Another image for the &#8220;Coin&#8221; icon (coinIcon)<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8634\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Coins_collected.jpg\" alt=\"coins_collected\" width=\"174\" height=\"71\" \/><\/p>\n<p><strong>Gemstones count<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">To create the gemstone image, simply copy and paste the previous element (coinsBar), change the IDs to emerald, move it to the right and change the two images (for the emerald icon and its shadow).<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8635\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Gems_collected.jpg\" alt=\"gems_collected\" width=\"169\" height=\"70\" \/><\/p>\n<h4><strong>Middle Section<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">Here you have 4 distinctive elements the middleSection which is a background element with nine sliced background image; battle deck tabs for the list of heroes; hero boxes and average resource cost field.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8636\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Middle_section.jpg\" alt=\"middle_section\" width=\"400\" height=\"471\" \/><\/p>\n<p><span style=\"font-weight: 400;\">2.1 <\/span><strong>The background image<\/strong><span style=\"font-weight: 400;\"> (middleFrame)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Create a nine sliced rectangle image from the <strong>Create element panel<\/strong> with width 33.7vh and height 41.4vh. Name it <\/span><strong>middleFrame <\/strong><span style=\"font-weight: 400;\">and change the background color of the image from the Properties&gt;Background&gt;background to rgba(35, 31, 30, 1)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Create a *.css file in our <\/span><strong>CSS<\/strong><span style=\"font-weight: 400;\"> folder (..\\Editor\\uiresources\\css) and name it <\/span><strong>rts.css<\/strong><span style=\"font-weight: 400;\">. Copy and paste the following CSS script which will add a frame around the rectangular image.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#middleFrame {<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-top: 12.36vh solid transparent;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-bottom: 12.36vh solid transparent;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-left: 11.4vh solid transparent;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-right: 11.4vh solid transparent;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-image: url(&#8220;..\/images\/frame_9slice.png&#8221;) stretch;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-image-slice: 165;<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> \u00a0\u00a0\u00a0border-image-width: 12.36vh;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">}<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">From the Editor in the <strong>Assets Library<\/strong>, scroll down and you will see the <strong>Style menu<\/strong>, click on the &#8220;+&#8221; symbol, navigate to the CSS folder and &#8220;Open&#8221; the CSS file you have just created. It will be added at the bottom of the Style list, click on it to activate it &#8211; this will include it in the HTML.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now, the width of <strong>middleFrame<\/strong> is a total of 56.5vh = 33.7vh + 2*11.4vh (border sides). Place the element in the left corner under the <strong>topSection<\/strong> element.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.2 <\/span><strong>Battle Deck Tabs<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">2.2.1 You will create the next element with a flex wrapper &#8211; click on the second tab of Create elements&gt;Flexible panel<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8637\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Flex_wrapper.jpg\" alt=\"flex_wrapper\" width=\"281\" height=\"201\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Create a flexible panel with width 56.5\u00a0vh name it <strong>deckCentering<\/strong> and from its Properties &gt; Basic set <\/span><strong>JustifyContent<\/strong><span style=\"font-weight: 400;\"> to <\/span><strong>center<\/strong><span style=\"font-weight: 400;\">. Set the background of the element to transparent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.2.1.1 Import the image <\/span><strong>bgDeckName.png <\/strong><span style=\"font-weight: 400;\">and nest it in<\/span> <span style=\"font-weight: 400;\">the battle deck wrapper. Rename it to <strong>battleDeckTabs<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.2.1.1.1 Inside the battle deck wrapper create a text element for the title with name <strong>battleDeckLabel<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.2.1.1.2 Create text element for the number of the tab (<strong>tab1<\/strong>), position it in the center of the first tab cell.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.2.1.1.3 Add an image <strong>selectBattleDeck<\/strong>\u00a0(it will be used for marking the current tab selected) and rename it to <strong>tabSelected1<\/strong>. Position the image so that it covers the border of the tab cell.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For the rest of the tab cells, copy and paste each tab and selected tab elements and position them in the intended places.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8638\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Battle-Deck.jpg\" alt=\"battle-deck\" width=\"492\" height=\"64\" \/><\/p>\n<p><span style=\"font-weight: 400;\">2.3 <\/span><strong>Hero Portraits<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">The Hero portrait (heroImage1) is made of several elements layered on top of one another. Be careful about <\/span><strong>Hierarchy position<\/strong><span style=\"font-weight: 400;\"> and the <\/span><strong>z-index<\/strong><span style=\"font-weight: 400;\"> of the elements. The position of the elements in the Hierarchy corresponds directly to how they are represented\/nested\/created\/positioned in the HTML.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8642\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Hero_portrait.jpg\" alt=\"hero_portrait\" width=\"476\" height=\"216\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Here is the frame which you will use for every hero portrait:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8644\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/cardFrame-225x300.jpg\" alt=\"cardframe\" width=\"200\" height=\"267\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The hero avatar should visually be inside the frame. Also, the progress bar at the bottom should be inside the frame.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2.3 Create a wrapper (heroImage1) which will contain the whole portrait and will be used for the hero avatar. Import image <\/span><strong>avatar1.png. <\/strong>Now, y<span style=\"font-weight: 400;\">ou will nest<\/span> <span style=\"font-weight: 400;\">inside we need 3 more elements:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The blue level progress bar<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The hero level<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The frame<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">2.3.1 Start by importing and nesting the portrait frame element &#8211; <\/span><strong>cardFrame.png <\/strong><span style=\"font-weight: 400;\">in the heroImage1 and rename it to <strong>heroDetails1<\/strong>. Use the frame to position all the other elements but keep in mind that in the Hierarchy panel, the frame should be under the elements for the blue level progress bar\u00a0<\/span><span style=\"font-weight: 400;\">and the hero level.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8645\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Hierarchy.jpg\" alt=\"hierarchy\" width=\"383\" height=\"243\" \/><\/p>\n<p><span style=\"font-weight: 400;\">2.3.1.1 Nest the image <\/span><strong>iconElexir.png <\/strong><span style=\"font-weight: 400;\">(resourceCost) and place it in the upper left corner of the frame.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.1.1.1 Inside <strong>resourceCost<\/strong> create a text element <strong>resourceCostValue1<\/strong> with the Level<\/span><strong><i>X<\/i><\/strong><span style=\"font-weight: 400;\"> value.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.1.2 Add the other decorative image element -&gt; <\/span><strong>iconUpgrade.png<\/strong><span style=\"font-weight: 400;\"> and put it on the left side of the progress bar.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.2. Now, create the blue level progress bar by creating a div (fillBar1). Set a black background color and position it in the frame. (Remember, this element should come above the <strong>resourseCost<\/strong> element in the hierarchy)<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.2.1 Inside this black wrapper, create another div representing the current advancement of the full level bar (fillBarProgress1 ). Position it, resize it and set the background to rgba(59, 119, 185, 1).<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.2.2 Create a text element which represents the <\/span><i><span style=\"font-weight: 400;\">current\/level up<\/span><\/i><span style=\"font-weight: 400;\"> portion values (levelProgress1) and put it at the center of the blue div.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.3 To create the hero current level (heroLevel1), create a div with background color of rgba(0, 0, 0, 0.4)<\/span><br \/>\n<span style=\"font-weight: 400;\">2.3.3.1 Nest a text element with name <strong>heroLevelValue1<\/strong> in it.<\/span><br \/>\n<span style=\"font-weight: 400;\">For the rest of the hero portraits -&gt; copy and paste <strong>heroImage1<\/strong>, move it, change the IDs, change the avatar picture, the values and the fillBarProgress<\/span><strong><i>X<\/i><\/strong><span style=\"font-weight: 400;\"> div width.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.4 <\/span><strong>Average Cost Field<\/strong><br \/>\n<span style=\"font-weight: 400;\">2.4.1 Create one flex element (averageCostCentering) and set JustifyContent to center. It goes under the hero portraits and it is the last main item in the middle section.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.4.1.1 Create a responsive image averageCostField with image -&gt; <\/span><strong>bg_AVGResCost.png<\/strong><span style=\"font-weight: 400;\">.<\/span><br \/>\n<span style=\"font-weight: 400;\">Add in it 3 more elements &#8211; 2 text elements and one image.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.4.1.1.1 Create a text field for the title of the field (averageCostTitle) and change the text to &#8220;Average Resource Cost:&#8221;. Position it in the left side of the wrapper image.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.4.1.1.2 Add another text field for the average resource value.<\/span><br \/>\n<span style=\"font-weight: 400;\">2.4.1.1.3 Add responsive image (iconElexir.png) which will be on the right side of the value.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8647\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Avverage_cost.jpg\" alt=\"avverage_cost\" width=\"387\" height=\"36\" \/><\/p>\n<h4><strong>Bottom section<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8648\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Bottom_section.jpg\" alt=\"bottom_section\" width=\"400\" height=\"185\" \/><br \/>\n<strong>For the background<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">3.1 For the background use image bg<\/span><i><span style=\"font-weight: 400;\">WoodenTile<\/span><\/i><span style=\"font-weight: 400;\">2.png, name it responsive image <strong>bottomBackground<\/strong>.<\/span><\/p>\n<p><strong>Cards Collection<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">3.2 Create a flex element (<\/span><span style=\"font-weight: 400;\">cardCollectionCentering<\/span><span style=\"font-weight: 400;\">) and set JustifyContent: center.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1 Inside the flex element create a responsive image (<\/span><span style=\"font-weight: 400;\">cardCollection<\/span><span style=\"font-weight: 400;\">) and use bgFilter.png<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Inside the image you will have 4 main elements:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.1 A responsive image bgFilter.png <\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.1 Text field with the label: &#8220;Cards Collection&#8221; (cardsCollectionTitle).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.2 Another text field with label: &#8220;Found:&#8221; placed under the main title (cardsFoundLabel).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.3 Copy and paste the previous element we&#8217;ve created and position it to the\u00a0<\/span>right. In such a way you create the same element as the previous one and you can use it for\u00a0<span style=\"font-weight: 400;\">the <\/span><i><span style=\"font-weight: 400;\">*found\/total*<\/span><\/i><span style=\"font-weight: 400;\"> values.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.4 The last main element (byArenaBack) is an image for the &#8220;By Arena&#8221; button (btn_Filter.png) which holds the title.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.2.1.4.1 Lastly, add the text element for the title of the button (byArenaTitle).<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-8649\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Card_Collection-300x56.jpg\" alt=\"card_collection\" width=\"300\" height=\"56\" \/><br \/>\n<strong>Bottom Menu<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">3.3 Create a div (bottomMenu) with a\u00a0width of 56.5vh, set the height to 10.1vh and set a background color to rgba(52, 66, 83, 1) &#8211; the color of the buttons. Inside this div you will have the buttons, a top separator, the left and right arrow, and the button title.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.3.1 Create a new div (chestButton), set it to a proper size, change the background color (rgba(52, 66, 83, 1)).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.3.1.1 Inside the div create an image for the button icon (chestIcon** -&gt; **iconChest.png).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For the rest of the buttons simply copy and paste the chest button. Place it, change the IDs, the icon, and the text.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.4 Create div with background color &#8211; rgba(70, 88, 109, 1), the full width of the viewport, height of 0.4vh and place it as a separator on top of the buttons.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3.5 For the left arrow create a responsive image -&gt; <\/span><strong>arrow_left.png<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">3.6 For the right arrow create another image -&gt; arrow.png<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You don&#8217;t need separate arrows for every button as you are trying to use less DOM elements to create the UI and achieve high performance. You can just change the positions of the two arrows when a button is clicked according to its position.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-8650\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Bottom_menu-300x63.jpg\" alt=\"bottom_menu\" width=\"300\" height=\"63\" \/><br \/>\n<strong>Hero Popup<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">The Hero Popup is activated when a hero portrait is clicked on.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-8651\" src=\"http:\/\/coherent-labs.com\/content\/uploads\/2016\/11\/Hero_popup-276x300.jpg\" alt=\"hero_popup\" width=\"276\" height=\"300\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">4.1 Create a flex element (heroPopupCentering) and set JustifyContent to center.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4.1.1 Inside it create a div (heroPopup). Use the same nine sliced image for the borders and the same background as the <strong>middleFrame<\/strong>. Make it as big and wide as you want.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4.1.1.1 Hero name title &#8211; text element.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4.1.2.2 Hero description &#8211; text element.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the sample, the popup is visually placed in the middle of the list for the hero portraits. When you activate it the popup is initially transparent (opacity: 0) and has little or no height, and when you click it the opacity transitions to 1 and the height to the proper size.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This concludes the tutorial of the Strategy Game UI. I hope that you have enjoyed it.\u00a0Let me know if you want to see a tutorial for creating a specific mobile game UI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you want to\u00a0try out Hummingbird and the Coherent editor download a trial from <a href=\"https:\/\/coherent-labs.com\/hummingbird\/\">here<\/a>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The strategy game genre is one of the most popular among the mobile game players. Clash of Clans, Game of War and Boom Beach are titles that attract thousands of players and generate billions of dollars in revenue. How do the mobile game development studios create such addictive gameplay so they make the players come [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":9744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[406],"tags":[194,205,206,229],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs\" \/>\n<meta property=\"og:description\" content=\"The strategy game genre is one of the most popular among the mobile game players. Clash of Clans, Game of War and Boom Beach are titles that attract thousands of players and generate billions of dollars in revenue. How do the mobile game development studios create such addictive gameplay so they make the players come [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/\" \/>\n<meta property=\"og:site_name\" content=\"Coherent Labs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CoherentLabs\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-02T12:43:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-14T13:57:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/coherent-labs.com\/posts\/wp-content\/uploads\/2017\/01\/stencil.blog-post-feature-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alexandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CoherentLabs\" \/>\n<meta name=\"twitter:site\" content=\"@CoherentLabs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/\",\"url\":\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/\",\"name\":\"How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs\",\"isPartOf\":{\"@id\":\"https:\/\/coherent-labs.com\/posts\/#website\"},\"datePublished\":\"2016-11-02T12:43:04+00:00\",\"dateModified\":\"2017-11-14T13:57:19+00:00\",\"author\":{\"@id\":\"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/b0252689790c3d1c9036209533d03791\"},\"breadcrumb\":{\"@id\":\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/coherent-labs.com\/posts\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a modern Battle deck screen for Mobile Strategy Game?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/coherent-labs.com\/posts\/#website\",\"url\":\"https:\/\/coherent-labs.com\/posts\/\",\"name\":\"Coherent Labs\",\"description\":\"Cross-Platform Game UI Middleware\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/coherent-labs.com\/posts\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/b0252689790c3d1c9036209533d03791\",\"name\":\"Alexandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/687476ba742eac5c6da76b305bc4004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/687476ba742eac5c6da76b305bc4004b?s=96&d=mm&r=g\",\"caption\":\"Alexandra\"},\"url\":\"https:\/\/coherent-labs.com\/posts\/author\/alexandra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/","og_locale":"en_US","og_type":"article","og_title":"How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs","og_description":"The strategy game genre is one of the most popular among the mobile game players. Clash of Clans, Game of War and Boom Beach are titles that attract thousands of players and generate billions of dollars in revenue. How do the mobile game development studios create such addictive gameplay so they make the players come [&hellip;]","og_url":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/","og_site_name":"Coherent Labs","article_publisher":"https:\/\/www.facebook.com\/CoherentLabs\/","article_published_time":"2016-11-02T12:43:04+00:00","article_modified_time":"2017-11-14T13:57:19+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/coherent-labs.com\/posts\/wp-content\/uploads\/2017\/01\/stencil.blog-post-feature-3.jpg","type":"image\/jpeg"}],"author":"Alexandra","twitter_card":"summary_large_image","twitter_creator":"@CoherentLabs","twitter_site":"@CoherentLabs","twitter_misc":{"Written by":"Alexandra","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/","url":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/","name":"How to create a modern Battle deck screen for Mobile Strategy Game? - Coherent Labs","isPartOf":{"@id":"https:\/\/coherent-labs.com\/posts\/#website"},"datePublished":"2016-11-02T12:43:04+00:00","dateModified":"2017-11-14T13:57:19+00:00","author":{"@id":"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/b0252689790c3d1c9036209533d03791"},"breadcrumb":{"@id":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/coherent-labs.com\/posts\/how-to-create-a-modern-battle-deck-screen-for-mobile-strategy-game\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/coherent-labs.com\/posts\/"},{"@type":"ListItem","position":2,"name":"How to create a modern Battle deck screen for Mobile Strategy Game?"}]},{"@type":"WebSite","@id":"https:\/\/coherent-labs.com\/posts\/#website","url":"https:\/\/coherent-labs.com\/posts\/","name":"Coherent Labs","description":"Cross-Platform Game UI Middleware","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/coherent-labs.com\/posts\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/b0252689790c3d1c9036209533d03791","name":"Alexandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/coherent-labs.com\/posts\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/687476ba742eac5c6da76b305bc4004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/687476ba742eac5c6da76b305bc4004b?s=96&d=mm&r=g","caption":"Alexandra"},"url":"https:\/\/coherent-labs.com\/posts\/author\/alexandra\/"}]}},"_links":{"self":[{"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/posts\/9528"}],"collection":[{"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/comments?post=9528"}],"version-history":[{"count":6,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/posts\/9528\/revisions"}],"predecessor-version":[{"id":13597,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/posts\/9528\/revisions\/13597"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/media\/9744"}],"wp:attachment":[{"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/media?parent=9528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/categories?post=9528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coherent-labs.com\/posts\/wp-json\/wp\/v2\/tags?post=9528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}