{"id":42,"date":"2021-11-25T03:43:24","date_gmt":"2021-11-25T03:43:24","guid":{"rendered":"https:\/\/writingagame.com\/?p=42"},"modified":"2021-11-27T20:52:32","modified_gmt":"2021-11-27T20:52:32","slug":"chapter-1-installing-visual-studio","status":"publish","type":"post","link":"https:\/\/writingagame.com\/index.php\/2021\/11\/25\/chapter-1-installing-visual-studio\/","title":{"rendered":"Chapter 1. Installing Visual Studio"},"content":{"rendered":"\n<p>1. Google \u201cVisual Studio download\u201d. Proceed to <a href=\"https:\/\/visualstudio.microsoft.com\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/visualstudio.microsoft.com<\/a><\/p>\n\n\n\n<p>Continue to <em>Download Visual Studio -&gt; Community 2022<\/em> (or whatever is current). Download and start installer.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>2. On <em>Workloads<\/em> page pick \u201cDesktop development with C++\u201d. <\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/writingagame.com\/img\/b01\/c01\/01.jpg\"><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Don\u2019t need extra components so far, so use default settings (on the right-hand side panel). If necessary, we can install them later.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>3. Since we want to target Android too, we\u2019ll also need \u201cMobile development with C++\u201d.<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/writingagame.com\/img\/b01\/c01\/02.jpg\"><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Just in case, Android SDK and NDK are included, so don\u2019t need to download them separately.<\/li><li>If you don\u2019t have an Android device under the hand, theoretically you can pick an emulator (on the right-side panel), though I would not recommend that, it is better to work with a real device.<\/li><\/ul>\n\n\n\n<p>Then \u2013 <strong>Install<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Start Visual Studio (you can access it from Windows Start menu). If it\u2019s the first start, it will ask to register. Won\u2019t hurt. Now, since we&#8217;ll need it quite often, pin VS icon to the taskbar: Right-click on VS icon on the bottom of the screen and pick \u201cPin to taskbar\u201d:<\/li><\/ol>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/writingagame.com\/img\/b01\/c01\/03.jpg\"><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Now, when Visual Studio is up and running, let\u2019s close it so far and let\u2019s talk a bit about our project structure and our next steps.<\/p>\n\n\n\n<p>The plan is to create 2 simple C++ projects first (one for PC, and one for Android). After that we\u2019ll see which parts of code are platform-specific and what can be shared between platforms, which will give us an opportunity to build a <strong>cross-platform<\/strong> solution. Then &#8211; everything else: graphics, 3D, interactivity, and so on.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>First step is to prepare a placeholder for our project.<\/p>\n\n\n\n<p>*<strong>VERY IMPORTANT<\/strong> part missed in most tutorials \u2013 how to organize your folders.<\/p>\n\n\n\n<p>So, first &#8211; root folder, where we\u2019ll keep all our projects. I\u2019ll call it \u201cCPP\u201d (for C++). Do NOT create it from Visual Studio (VS will place it somewhere on it&#8217;s own discretion). Do NOT create it on your desktop or in Documents folder. Open <strong>Windows File Explorer<\/strong> and create &#8220;CPP&#8221; folder on your <strong>local hard drive<\/strong> (usually C:).<\/p>\n\n\n\n<p>Inside of \u201c\/CPP\u201d let\u2019s create a folder for our first project. Instead of \u201cProject1\u201d I\u2019ll better call it \u201ca999hello\u201d. Why \u201ca\u201d, why \u201c999\u201d? Well\u2026 In my case next project will be \u201ca998\u201d and so on, so the latest one will be always on top of the list. Inside of <em>a999hello <\/em>we&#8217;ll later add root folders for Android, PC (and later maybe for Mac, iPhone, etc.) versions of a999 project. So, the structure is: <strong>C:\/CPP\/a999hello\/<\/strong>.<\/p>\n\n\n\n<p>Done? Congratulations! Don\u2019t underestimate an importance of this little step. Mark today\u2019s date, maybe it\u2019s a START of your New Big Project!<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"mb-2\">1. Google \u201cVisual Studio download\u201d. Proceed to https:\/\/visualstudio.microsoft.com Continue to Download Visual Studio -&gt; Community 2022 (or whatever is current). Download and start installer. 2. On Workloads page pick \u201cDesktop development with C++\u201d. Don\u2019t need extra components so far, so use default settings (on the right-hand side panel). If necessary, we can install them later. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":213,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cross-platform-3d"],"_links":{"self":[{"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":14,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":61,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/posts\/42\/revisions\/61"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/media\/213"}],"wp:attachment":[{"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/writingagame.com\/index.php\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}