Running Cocos2d-x Games on Windows IoT Core

clip_image002Windows IoT core is coming with the Windows Universal Platform support, so Cocos2d-x games may also have the potential to become Windows IoT Core applications. I took the liberty of testing one on my Raspberry PI II…and it’s running!

 

System Setup

You can reference the steps to install IoT core on the Raspberry Pi II  in my previous post. Once Raspberry Pi II can boot correctly on the IoT core, the main screen will display the corresponding IP Address:

clip_image004

To develop for Windows 10, you will need to setup Visual Studio 2015, to leverage the necessary tools:

clip_image006

Alternately, you may use a Virtual Machine. See the complete setup process to create a bootable virtual machine here.

 

Running the Code

In my sample, I used a simple particles application with only one fixed sprite. When my code was able to compile and run well for x86 (run within a window on Windows 10), I then started to build for ARM to then deploy the application to Raspberry Pi II. Before deploying to Raspberry Pi II, I quickly completed the property of debugging in the project properties (you will need to select ARM before these properties are visible):

clip_image008

I then filled in the machine name field with the IP Address of the board, and selected No when asked whether to the Require Authentication dialogue request.

The result appeared a few seconds later on my screen:

clip_image010 

The frame rate is low, but the code is running! I encourage those of you who are interested to leverage this learning to start creating applications that you may be able to enjoy with Cocos2d-x on your devices running Windows IoT core.

Have fun!