You may post a comment or send me an e-mail through the form on right side of page. Stay with me on this journey to learn game programming, and feel free to communicate/ask questions.
In a few days I will write another blog post about how to run your Cocos2d-x indie game project on Android using NDK(Native Development Kit) and Eclipse IDE. Just yesterday I figured how to build and run a Cocos2d-x game project on my Android phone. Any change you make in Classes folder will be systematically used in Android, iOS,Windows, and Windows Phone Project(what?). This folder is utilized by Cocos2d-x framework to generate object files/dlls which are then used by all projects. What about Android, iOS and other platforms?įirst of all, refer to Fig-1 you will see there's a folder "Classes". Here's a short video demo to show off and make you jealous :Dįor places with Youtube blocked, Vimeo videoĬocos2dx Visual Studio Helloworld Demo from Naeem Akram on Vimeo. If you're going through the programmer guide doc, try your practice code in the C++ function mentioned below To start with we will put the code inside HelloWorldScene.cpp file. Open the folder "proj.win32", this folder will contain a solution file which will be named "indiegame.sln" or "M圜ppGame.sln" in my case.įig-4: Cocos2d-x new Windows(win32) Project contentsĪ screenshot of how the project looks inside Visual Studio is given below:įig-5: Inside Visual Studio 2012 Cocos2d-x C++ Project Go to the path which you specified in command line for creating a new project.
How to write Cocos2d-x code using Visual Studio 2012 To learn more about the Cocos2d-X console, type following command to get the list of Cocos2d-x console optionsĪ screenshot of the help description is shown below
Important: Please create the project path folders before running the command, i.e. Launch command prompt, and type the command given belowĬocos new - p - d "D:\Cocos\Projects" - l cpp Games will be judged on originality, innovation, and pushing the boundaries of creativity using Windows and the Cocos engine.The how-to guide present on Cocos website tells a different path, I couldn't find it on my PC and discovered this by just searching for. The contest will award $25,000 USD for first place, $15,000 USD for second place, and $3,000 USD for third place. The deadline has been extended to June 30. You now have more time to finalize your entry or submit a new entry of innovative mobile games built for Windows using the Cocos engine. If you haven’t already, check out the “Unleash the Power of Cocos and Windows” Game Developer Contest. More so, we would love to see what everyone creates, tweet a link to your game so we can try it out! We would love for you to start working with Cocos and give us your early feedback and report issues. Devils & Demons is a great RPG that lets you fight hordes of demons and undead with amazing quests!
For an example of a full blown game running Cocos, Devils & Demons by HandyGames in Germany is one of many examples. If you want to try out a more complex game, clone the repro for Rocket Man. This is just the beginning of our Cocos2d-x work on Windows 10.
In this example, it will be myWin10Game.sln.
If you cannot install this on your primary machine, you can set up a virtual machine on Windows 10 for Cocos2d-x development. With this new code contribution, users will automatically generate projects using Visual Studio 2015 that target the UWP when they create new projects. The Universal Windows Platform (UWP) makes it possible to target all Windows platforms (Desktop/Tablet, Phone and IoT devices) through one project with the new application model. With Microsoft’s latest open source code contribution to the Cocos2d-x project, Microsoft has enabled Cocos2d-x to run on Windows 10 on the Universal Windows Platform.