{"id":25228,"date":"2016-09-25T03:01:51","date_gmt":"2016-09-24T17:01:51","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=25228"},"modified":"2016-09-25T07:04:10","modified_gmt":"2016-09-24T21:04:10","slug":"cocos2d-mac-xcode-game-development-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/cocos2d-mac-xcode-game-development-primer-tutorial\/","title":{"rendered":"Cocos2d Mac Xcode Game Development Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/Cocos\/cocos2d_mac_test.pdf\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Cocos2d Mac Xcode Game Development Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/Cocos\/cocos2d_mac_test.jpg\" title=\"Cocos2d Mac Xcode Game Development Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Cocos2d Mac Xcode Game Development Primer Tutorial<\/p><\/div>\n<p>Games development involving &#8220;heavy&#8221; graphical usage usually requires more than you can do very professionally with Javascript client code in a web application that we did, last, for <a target=_blank title='Star Proteins versus Superbugs Game CSS Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/star-proteins-versus-superbugs-game-css-tutorial\/'>Star Proteins versus Superbugs Game CSS Tutorial<\/a>, and if you read that tutorial we did say &#8230;<\/p>\n<blockquote><p>\nThe &#8220;shoot &#8217;em up&#8221; aspects are, as you&#8217;d expect from a properly spent youth not playing Space Invaders, lame &#8230; oh so lame &#8230; just an HTML <a target=_blank title='HTML hr element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_hr.asp'>hr<\/a> (horizontal rule) element so far.  It&#8217;s early days.  Though wouldn&#8217;t count on too much here, and it is better to get the atmospherics by devoting your time to a gaming platform like Cocos  <a target=_blank le='Cocos blog post' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/cocos-open-source-game-development-primer-tutorial\/'>here<\/a>.\n<\/p><\/blockquote>\n<p> &#8230; and point you towards the <i>Cocos<\/i> games development framework, as an initial idea as to how to become more serious.  We discovered <i>Cocos<\/i> for the first time in a Windows 10 environment with Visual Studio 2015 Express IDE usage that we talked about, below, with <a title='Cocos Open-Source Game Development Primer Tutorial' href='#cogdpt'>Cocos Open-Source Game Development Primer Tutorial<\/a>.<\/p>\n<p>Today, we do some rudimentary Cocos2d games development framework work, but this time the environment is Mac OS X Yosemite (Version 10.10.3 (14D136)) on a MacBook Pro laptop under the auspices of the Xcode IDE (Version 6.4 (6E35b)).<\/p>\n<p>Initial research and development on this topic on the net led us to this GitHub <a target=_blank title='GitHib cocos2d-objc' href='https:\/\/github.com\/cocos2d\/cocos2d-objc'>cocos2d-objc<\/a> repository &#8230; thanks &#8230; used to interface to Xcode and Objective-C coding on a Mac OS X environment, though other iOS type platforms work with this repository as well.<\/p>\n<p>The major installation steps involved &#8230;<\/p>\n<ol>\n<li>Terminal application &#8220;cd&#8221; to place of interest to place an Xcode cocos2d project, then type, as per the advice at the bottom of that previous link&#8217;s webpage &#8230;<br \/>\n<code><br \/>\n$ git clone --recursive https:\/\/github.com\/cocos2d\/cocos2d-objc.git<br \/>\n$ cd cocos2d-objc<br \/>\n<\/code><br \/>\n&#8230;  (or clicking &#8220;Clone or download&#8221; button on that previous GitHub link, could be another option that is like the first command above)<\/li>\n<\/li>\n<li>Open Xcode<\/li>\n<li>File -&gt; Open (we made a copy of) cocos2d.xcodeproj<\/li>\n<li>Select &#8220;cocos2d-tests-mac&#8221; from the Schema selection list &#8230; again as advised near the bottom of the webpage of that previous link<\/li>\n<li>Product -&gt; Run &#8230; compiles and builds, hopefully successfully, then executes various testing scenarios useful to spark your imagination about where to go next &#8230;<\/li>\n<\/ol>\n<p> &#8230; and as far as &#8220;where to go next&#8221;, especially if you are new to this, you may need any\/all of &#8230;<\/p>\n<ul>\n<li>seek out Open-Source free cocos2d Xcode Objective-C source code<\/li>\n<li>sign up for a cocos2d Games Development course<\/li>\n<li>get yourself a good reference book, and we ended up buying &#8220;Learn cocos2d Game Development with iOS 5&#8221; by Steffen Itterheim and Andreas L\u00f6w (ISBN: 978-1-4302-3813-3)<\/li>\n<li>seek out the expertise of Game Developers out there, especially those with Mobile App development experience<\/li>\n<\/ul>\n<p>So, as you can see, we hope, this is a big topic, with large amounts of expertise required, so we wish you luck on your endeavours, learners and experts!<\/p>\n<p>We&#8217;ll leave you with a &#8220;stream of consciousness&#8221; view of our early days Cocos2d endeavours on Mac OS X and Xcode with this PDF <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/Cocos\/cocos2d_mac_test.pdf\" title='Click picture'>slideshow<\/a>.<\/p>\n<hr>\n<p id='cogdpt'>Previous relevant <a target=_blank title='Cocos Open-Source Game Development Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/cocos-open-source-game-development-primer-tutorial\/'>Cocos Open-Source Game Development Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/Cocos\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Cocos Open-Source Game Development Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Windows\/Cocos\/cocos-10of.jpg\" title=\"Cocos Open-Source Game Development Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Cocos Open-Source Game Development Primer Tutorial<\/p><\/div>\n<p>Games development is huge on the net, and so there are good reasons to get into &#8220;Open-Source&#8221; for collaborative purposes and to pick the brains of experts in forums and blogs and chatrooms about what is good and what is a waste of time.<\/p>\n<p>In our recent foray back into the Visual Studio world, we shaped to try out what was on offer with Visual Studio Express 2015 on Windows 10 related to a Games project, and stumbled on the &#8220;Cocos Open-Source Development System&#8221; based on the <a target=_blank title='Cocos2d Framework information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Cocos2d'>&#8220;Cocos2d Framework&#8221;<\/a> information from Wikipedia (thanks) &#8230;<\/p>\n<blockquote cite=\"https:\/\/en.wikipedia.org\/wiki\/Cocos2d\"><p>\nCocos2d is an open source software framework. It can be used to build games, apps and other cross platform GUI based interactive programs. Cocos2d contains many branches with the best known being Cocos2d-objc, Cocos2d-x, Cocos2d-html5 and Cocos2d-XNA. There are some independent editors in the cocos2d community, such as those contributing in the areas of SpriteSheet editing, particle editing, font editing and Tilemap editing as well as world editors including SpriteBuilder and CocoStudio.\n<\/p><\/blockquote>\n<p>We&#8217;ve got together a &#8220;Hello World&#8221; feeling of &#8220;stumbling along&#8221; getting a sample project to run an animation to dip our toes into the deep deep oceans of knowledge swirling around this topic &#8230; ie. we want you to know you can do it &#8230; and we don&#8217;t work for Nike?!<\/p>\n<p>If clicking today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/Cocos\/\" title='Click picture'>tutorial picture<\/a> is not your style, below, we&#8217;ve broken it into that approach&#8217;s two components &#8230;<\/p>\n<ol>\n<li><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/Cocos\/cocos-primer.pdf\" title='Preparatory installs and project creation and configurations'>Preparatory installs and project creation and configurations<\/a> &#8230; and &#8230;<\/li>\n<li><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/Cocos\/cocos-primer.mp4\" title=\"Running project's animation in situ\">Running project&#8217;s animation in situ<\/a> (recorded off a Windows laptop via an Android Phone Camera app&#8217;s Video option and emailed on and downloaded to MacBook Pro and uploaded to the website &#8230; so there, ngaaaaa! &#8230; sorry if you can&#8217;t play .mp4)<\/li>\n<\/ol>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d23907' onclick='var dv=document.getElementById(\"d23907\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/games\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d23907' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d25228' onclick='var dv=document.getElementById(\"d25228\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/xcode\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d25228' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Games development involving &#8220;heavy&#8221; graphical usage usually requires more than you can do very professionally with Javascript client code in a web application that we did, last, for Star Proteins versus Superbugs Game CSS Tutorial, and if you read that &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/cocos2d-mac-xcode-game-development-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,15,29,37,40],"tags":[1966,495,725,734,852,877,997,1319],"class_list":["post-25228","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-operating-system","category-tutorials","category-xcode","tag-cocos2d-framework","tag-github","tag-mac-os-x","tag-macbook-pro","tag-objective-c","tag-open-source","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/25228"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=25228"}],"version-history":[{"count":12,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/25228\/revisions"}],"predecessor-version":[{"id":25245,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/25228\/revisions\/25245"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=25228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=25228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=25228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}