1/2/2023 0 Comments Ccmenu add child cocos2dxLuckily there is an easy workaround: you’ll make a link from $PROJECT_HOME\proj.android\Resources to $PROJECT_HOME\Resources – this way the files are where they need to be, but Eclipse can see them. However, there’s one problem with this plan: the Eclipse project will only show files inside $PROJECT_HOME\android. (But don’t copy them yet – there’s a trick I’ll tell you about soon). To add images and other resources into your project, you need to add them into $PROJECT_HOME\Resources (Remember that $PROJECT_HOME is the location of your Android Cocos2D-X project – samplecocos2dxandroid). To do this, you’ll add the files to the Android project’s Resources directory, and add relative links to this directory from your iOS project. You want to add these in a way so the same files can be used in both the Android and iOS projects, much like you did for the reusable C classes. So put on your Star Wars CD to set the mood, and let’s get started! Getting Startedįirst things first – go ahead and download the space game resources ZIP file and unzip them to your hard drive. So if you haven’t already, read that project first and get your project set up the way described there. This Cocos2D-X tutorial picks up where the Cocos2D-X Tutorial for iOS and Android: Getting Started left off. And with a little more work, you could get it running on other platforms as well – from Windows to Linux to the Mac! This means you’ll be able to run this game on both your iPhone and Android by the end of this Cocos2D-X tutorial. There will be one major difference – this will be written in beautiful cross-platform C , using Cocos2D-X! #Ccmenu add child cocos2dx how toIn this Cocos2D-X tutorial, I will show you how to build a space game similar to the one was built in the How to Make a Space Shooter iPhone Game. Update : You can find the code for this tutorial updated to Cocos2D-X 3.0 by here. (original post by Jean-Yves Mengant, update by Jorge Jordán). Update : Fully updated for Cocos2D-X 2.1 and iOS 6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |