how to create project for wp8/winrt

in create_project.py

# Create cross-platform cocos2d-x project

# define global variables
PLATFORMS = {
    "cpp" : ["ios", "android", "win32", "mac", "linux"],

}

I can not find out the parameter to create the cocos2dx project for wp8/winrt.

Your comment welcome

which version of cocos2d-x do you use?
you should use at least 2.2.0

3.0 alpha

if I change in create_project.py

# define global variables
PLATFORMS = {
    "cpp" : ["ios", "android", "win32", "mac", "linux","winrt", "wp8" ],
    "lua" : ["ios", "android", "win32", "linux"],
    "javascript" : ["ios", "android", "win32"]
}

it reports

[[proj.ios : Done!
proj.android : Done!
proj.win32 : Done!
proj.mac : Done!
proj.linux : Done!
Traceback (most recent call last):
File “./create_project.py”, line 176, in
createPlatformProjects()
File “./create_project.py”, line 161, in createPlatformProjects
processPlatformProjects(context, platform)
File “./create_project.py”, line 100, in processPlatformProjects
f = open(conf_path)
IOError: [Errno 2] No such file or directory: ‘/Users/mymac/pj/cocos2d-x-3.0alpha0-pre/tools/project_creator/winrt.json’]]

porting to wp8/winrt is not ready in 3.X
So far,it just works in version 2.2.0 and 2.2.1

echo li wrote:

porting to wp8/winrt is not ready in 3.X
from now on,it just works in version 2.2.0 and 2.2.1

:frowning:

Hey, I want to make a game for windows phone in cocos2dx and I also have to integrate ads in it. So how can I do that ? How can we make a project for windows phone with XAML (ad control in XAML) ?

Hi, here is tutorials of using MS advertising [[https://github.com/cocos2d/cocos-docs/blob/master/manual/framework/native/sdk-integration/wp8-thirdSDK/zh.md]] in Chinise. You should use XAML with C++/CX.

Hey Muhammad, why don’t you try learning about coding for WP8 and cocos2dx… you will know that 2.2.2 comes with an XAML project already? Come back when you have sensible, specific questions…

i use cocos2d-x 2.2.2 it works well but has some problem.

It does not come with xaml project already. You can look for yourself. But I have already downloaded the wp8-xaml template from github repo. You do not have to be a jerk.