Cocos2d-x for Windows Phone 8 is out!

By walzer Posted 2012-10-31 08:53 Comments 65

With the launch of Windows Phone 8, Microsoft Open Technologies, Inc pushed hard to get this port out which is branched off from Cocos2d-x for Windows 8 metro. Now you can get your game onto Windows Phone 8 before anybody else! It has the same API set as Cocos2d-x C*+ so porting your game is a breeze, and of course as always, it is licensed under MIT, so its free as in beer, and there will be no royalty or what so ever!
WP8 port is mainly written in C*+, with the same API set as cocos2d-x v0.13, which means you can port your cocos2d-x 0.1x games onto wp8 easily and smoothly.

Source Code

Development Environment Requirements

  • Windows 8 (can not work on Windows 7)
  • Visual Studio 2012 (tested on VS2012 Professional)
  • Windows Phone 8 SDK (tested on LKG35)

Status of test cases:

|Test case|Status|
|Actions Test|Pass|
|Transitions Test|Pass, but has a few DirectX warnings|
|ProgressActions Test|Pass|
|Effects Test|Pass|
|ClickAndMove Test|Pass|
|RotateWorld Test|Pass|
|Particle Test|Pass|
|EaseActions Test|Pass|
|MotionStreak Test|Pass|
|DrawPrimitives Test|Pass|
|CocosNode Test|Pass|
|Touches Test|Pass|
|Menu Test|Pass|
|ActionManager Test|Pass|
|Layer Test|Pass|
|Scene Test|Pass|
|Parallax Test|Pass|
|TileMap Test|Pass|
|Interval Test|Pass|
|Chipmunk Test|NA|
|Label Test|Pass|
|TextInput Test|NA|
|Sprite Test|Pass|
|Scheduler Test|Pass|
|RenderTexture Test|The 1st test case is a bit wacky. rest of them are OK.|
|Texture2D Test|Some texture pixel formats are not supported: RGB5A1 (16bit), A8 (8bit), RGBA 4444 (16bit)|
|Box2d Test|Pass|
|HiRes Test|NA|
|Accelerometer Test|NA|
|Keypad Test|NA|
|CocosDenshion Test|Only support .wav format|
|Performance Test|Some texture formats are not supported|
|Zwoptex Test|Pass|
|Curl Test|Failed|
|UserDefault Test|Pass|
|Director Test|Pass|
|Font Test|Text alignment has not been implemented|
|CurrentLanguage Test|Pass|
|TextureCache Test|CCTextureCache::addImageAsync has not been implemented|
|Extensions Test|only CCNotificationCenter is available|
|Lua binding|NA|
|Javascript binding|NA|
|CocosBuilder Support|NA|

What’s next?

Next up, we will firstly merge Windows Phone 8 port with Win8 metro port, then upgrade this branch to the same API set as v2.0.3. expect 1~2 months for this job.


  • fabiobh

    Cocos2d-x team are incredible, work fast.
    I’ll try to develop for wp8, but only for test purposes, because all my app are updated to v2.0.3.
    When the API is set to V2.0.3, I’ll release all my games in wp8.
    Please, continue the good work.

    2012-10-31 09:33
  • samurai9x

    good job! :)

    2012-11-01 03:34
  • Wriggler

    Excellent work chaps - appreciate it!

    2012-11-01 09:30
  • cegparamesh


    2012-11-01 15:27
  • pinky2012

    Thank you []() Great work!

    I’ve been playing around with the framework a bit today. Scaling (design resolution to screen resolution) appears not be be working correctly yet (just try running HelloWorld on the 720p emulator to see what I mean). Also; my game has a design resolution of 1900x1200 (yes I know..). Setting 1200x1900 as the design resolution results in a black screen. After lowering the design resolution to 1200x1700 it does work but it runs out-of-memory really quickly (and crashes). I guess I’ll just have to redesign my game to a lower resolution for WP8.

    2012-11-02 19:02
  • akralj

    Awesome[]()! Congrats! :)

    After few hours of work I was able to run my cocos2d-x 0.13.0-beta based game on windows phone 8 emulator.
    I looks like everything works fine except this screen resolution issue.

    It looks to me a bit strange since CCDirector::sharedDirector()->getWinSize(); returns “480 × 853” screen resolution on 720p emulator. Which as I see on is referred to as scaled resolution, but then CONTENT_SCALE_FACTOR gives me value of “1.0”. I did not set design resolution, since I would like work with device native screen resolution and load textures based on that resolution. Am I missing something, or this is not yet fully supported?

    2012-11-05 09:04
  • xuanquyen46dp

    hi !

    i want to create new project use cocos2D for WP8 but I don’t see template cocos2d-x for vs 2012 pro.

    please help me !.


    2012-11-06 06:04
  • pinky2012

    B.t.w. it would be great if you guys could make this combined Win8 version of Cocos2d-x a XAML/DirectX hybrid project (see the topic " SwapChainBackgroundPanel and gaming" on MSDN). This way we will have all the benefits of DirectX but also the ability to include platform specific controls through XAML, like an Appbar, ads, input dialogs, etc.. It is also the only way of having the onscreen keyboard popup (impossible with just DirectX, which would result in a rejection by Microsoft as every store app should be useable by mouse/keyboard and touch).

    I’ve been experimenting myself to make a hybrid project, but thusfar the screen stays black (largely due to the fact that I have no clue of what I’m doing in the DirectX code and I do not yet fully comprehend the Cocos2d-x dependencies).

    It should (for someone that knows what he/she is doing) be relatively easy to accomplish (CCApplication basically becomes an XAML/CPP hybrid and the DirectX surface that’s being drawn to changes to the SwapChainBackgroundPanel.. that should be about it).

    2012-12-03 07:40
  • gzach

    Awesome work to support WP8[]()

    Is there a roadmap for merging WP8 port with the current 2.x branch ?
    Right now it would be extremely painful to backport existing cocos 2d x apps to WP8 with the different API levels…
    The guys at Microsoft are probably extremely busy right now given the recent WP8 launch but the Windows Store could absolutely do with some additional titles…

    2012-12-11 22:47
  • xuanquyen46dp

    hi Gaylord Zach,

    do you get me your email ?

    I have some problem to WP8. can you support me ?

    2012-12-19 04:24
  • vedi

    Thanks, it’s awesome.
    What’s about v2.x? Do you have a roadmap for that?

    2012-12-25 20:15
  • yuchicoc

    Can this version work on wp7.5? Thanks

    2013-01-07 03:21
  • gzach

    No, it won’t work on WP7.5. Cocos 2Dx requires C*+ support, which was only introduced on WP8.
    Even the announced WP7.8 upgrade doesn’t seem to support C*+.
    If you do require WP7 support, take a look at the older C# port….not ideal, I know.

    2013-01-07 15:24
  • lucav

    Hi, it’s a great job!
    I was wondering if there’s any news regarding the Version 2.x

    2013-01-11 09:46
  • yashu

    Hi,great job when will you release cocos2d-x 2.1.1 API for windows 8 and windows phone 8

    2013-02-13 04:35
  • BananaGames

    Thanks, that’s really awesome!

    2013-05-12 15:44
  • Paresh

    hi Zhe Wang,

    Thanks for such amazing port.
    I am planning to port my new game to windows 8 platform, but I can’t use it right now because all my games are updated to v2.0.3.
    when will you release cocos2d-x 2.x for windows phone 8?

    Please let me know so that I can take a call to port my game to Windows 8 or not.


    2013-06-21 08:14
  • hussain.ali

    Hi Zhe Wang,

    I’ve been going through the Windows Phone 8 Port and its brilliant. What I’ve understood is that you’re using a native C++ application for WP8, is there a way we can integrated third party SDKs (Facebook SDK etc) in it, since all of them are written in C#?


    2013-07-10 05:46
  • hafiz.ubaidullah

    Is there any way to integrate any third-party Crash reporting in my game or anyone have their own custom crash reporting?
    All the third party crash-reproting are supported on C# but not on C++.

    2013-11-19 12:44
  • slim24pro

    Slim 24 Pro contains whey proteins and vital nutrients which melts away body fat and provides great shape.Slim24Pro is a 100% herbal product.Buy slim 24 pro online

    2013-12-28 06:47
  • JuneAftee

    This game looks awesome! I am also developing game like this. Was this made in Unity? What version? <a href="">All State Van Lines Relocation</a>

    2013-12-30 03:57
  • JuneAftee

    This game looks awesome! I am also developing game like this. Was this made in Unity? What version? [[]]

    2013-12-30 03:59
  • dearymz

    The word OUT really confused me. Orz

    2013-12-30 09:51
  • goldy1212

    Brilliant game and loved playing it on the windows phone!
    Handmade wedding invitations

    2014-01-02 12:47
  • northgatewebhosting

    I will definately take a look at this - thanks! Northgate Web Hosting

    2014-01-28 13:46
  • albertgitu

    i have bookmark your blog.. thank you for sharing.. i would like sharing your blog to my friend in our country..
    obat pelangsing badan
    suplemen fitness
    obat pelurus rambut
    obat pelangsing badan

    2014-02-05 16:47
  • albertgitu

    The first time I saw this blog I was immediately impressed because this is very good blog.. I hope you can publish useful articles again.. Very usefull information.. thx for sharing
    suplemen fitness
    baju batik
    obat penumbuh rambut
    suplemen fitness

    2014-02-05 16:48
  • aainakhan

    This game looks awesome! I am also developing game like this. [[<a href="">slim 24 pro</a>]]

    2014-02-13 12:26
  • aainakhan

    great work i will sure have a look at this game thank <a href="">step up height increaser</a>

    2014-02-13 12:27
  • aainakhan

    Hi, it’s a great job!
    I was wondering if there’s any news regarding the Version 2.x
    <a href="">sandhi sudha</a> <a href="">no addiction</a>

    2014-02-13 12:28
  • aainakhan

    Thanks for such amazing post. <a href="">step up height increaser</a>

    2014-02-13 12:29
  • aainakhan

    greattt gameeee <a href="">fair look</a>

    2014-02-13 12:30
  • aainakhan

    No, it won’t work on WP7.5. Cocos 2Dx requires C+ support, which was only introduced on WP8 <a href=">air sofa</a> <a href="">aire bra</a>

    2014-02-13 12:32
  • leesa

    I am totally agree with fertilizer companies*[[]]* your opinion.this blog post high nitrogen fertilizer*[[]]* is very encouraging to organic fertilizer for vegetables*[[]]* people who want to know increase cow milk*[[]]* these topics.
    animal feed*[[]]*

    2014-02-19 06:57
  • leesa
    2014-02-19 09:03
  • leesa
    2014-02-19 09:04
  • leesa
    2014-02-19 09:06
  • leesa
    2014-02-19 09:08
  • hemiltonbrian

    Rapidly, we ascertain that the composer of the assault is Sihem Jaafari, the bride of a surgeon. Hellos confidential circumstance topples. <a href=""><strong>Metal casting manufacturer</strong></a>

    2014-02-24 05:57
  • hemiltonbrian

    The prospect is decelerate, immovable on the psychiatrist who ruminates the destructions. It does hardly converge some of the residents, no chat, moreover no alone distinguishs what could betide there. <a href=""><strong>Casting Engineering Works</strong></a>

    2014-02-24 05:58
  • hemiltonbrian

    I receive always considered this process as unique of the supreme fable true to the Israeli-Palestinian contest. The composition is watery, industrious, you never obtain bored, moreover everywhere the fiddle gropes submerge toward the essence of the Intermediate East. The recital itself is a accomplishment. <a href=""><strong>Patterns Manufacture</strong></a>

    2014-02-24 05:59
  • hemiltonbrian

    Khadra ultimately contact, primary, the prominent. The reader, the unfamiliar person in order to turmoil, very easily identifies these groups of sufferers ravaged by sadness in addition to craze, take pleasure in wishes pertaining to revenge. Easily, many of us find out which the publisher with the episode is Sihem Jaafari, the girl of the doctor. His or her individual predicament upsets. <a href=""><strong>Hotel Towels exporters</strong></a>

    2014-02-24 06:00
  • hemiltonbrian

    As part of an assignment for research I have to find an article with relevant information on this topic and give the teacher our opinion and the article. <a href=""><strong>Socks manufacturers</strong></a>

    2014-02-24 06:01
  • hemiltonbrian

    All the contents you mentioned in post are too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts. <a href=""><strong>Sports socks manufacturer</strong></a>

    2014-02-24 06:03
  • shahbaz123

    Khadra in the end contact, main, the actual prominent. The actual target audience, the actual unfamiliar particular [url=]Digital wallet[/url] person so that you can hardship, simply discovers these kinds of groups of affected individuals ravaged by simply depression in addition to phenomenon, appreciate wishes regarding reprisal. Simply, a number of us uncover which the manager with all the show is Sihem Jaafari, the woman on the doctor.

    2014-02-28 09:07
  • albertgitu

    wawww very damn awsome about what your write for... thank you...
    suplemen fitness

    2014-03-07 07:57
  • albertgitu

    The first time I saw this blog I was immediately impressed because this is very good blog.. I hope you can publish useful articles again.. Very usefull information.. thx for sharing
    sepatu crocs
    obat pelurus rambut
    obat asam urat

    2014-03-09 14:54
  • Cliff

    We provide advisory, compliance and litigation services to Indian and foreign companies We have an in-depth understanding of tax issues and our professional team is capable of designing integrated solutions to minimize overall tax burden. "Nri Consultant In India":

    2014-03-10 09:46
  • jenis56

    Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles.
    <a href="">Panorama history and relax holiday bed and breakfast in Tuscany</a>

    2014-03-15 06:00
  • jenis56

    Panorama history and relax holiday bed and breakfast in Tuscany.
    Romantic exclusive B&B in Tuscany

    2014-03-15 06:01
  • leesa

    I thought it was going to [[Soda machine]] be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.

    2014-03-20 10:38
  • leesa

    I was very pleased to find this [**Soda shop machine price India**[]] site.I wanted to thank you for this great read !! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post

    2014-03-20 10:39
  • leesa

    I thought it was going to [[Kitchen equipments]] be some boring old [[chicken drinkers]] post, but it really [[duplex filters manufacturers in Hyderabad]] compensated for my time. I will post [[Roti making machine]] a link to this page on [[Cone ice cream machine manufacturer]] my blog. I am sure my visitors will find [[Softy maker manufacturer]] that very useful.

    2014-03-20 10:43
  • RoshanBhargav


    Unfortunately I get an error > > > ' string ' not found when installing
    for this line > > #include

    CCDataVisitor. (h)
    I do not know why ...
    My site:

    2014-03-25 22:59
  • albertgitu

    I've seen your awareness about this theme whenever you post it and it really gives an informational message to us readers. I am hoping that you'll continue writing this kind of blog. Thanks for sharing this information
    obat asam urat
    toko kosmetik online
    teh peluntur lemak
    obat peninggi badan
    obat pembesar payudara
    body slim herbal
    abc acai berry

    2014-03-30 16:57
  • filco1961

    :) love this blog, reaaly great posts from a great team.
    <a href="">Tablet Messenger Bag</a>

    2014-04-05 11:11
  • filco1961

    Tablet Bags
    Great article from pete

    2014-04-05 11:12
  • filco1961

    A really interesting article once again.
    DSLR Camera Case

    2014-04-05 11:16
  • jlukeadan

    One more time please! this is all i could say to request you for posting some more great contents like this again.
    where to buy garcinia cambogia

    2014-04-16 10:19
  • comment

    Very interesting article. It touches many urgent problems of our society. We can not be indifferent to these challenges. This article gives the light in which we can observe the life. <a href="">See more</a>

    2014-04-21 12:33
  • comment

    Very interesting article. It touches many urgent problems of our society. We can not be indifferent to these challenges Thanks Regards See more

    2014-04-21 12:34
  • affiya

    Slim Pro is a must buy product for all. It has got great benefits for your body and is definitely to try at least once.
    "Effective Hair Regrowth Treatment":

    2014-04-22 08:31
  • albertgitu

    you have an interesting way of drawing people in. Keep up the good works..
    obat perangsang wanita
    obat pembesar penis
    vimax asli
    parfum original
    whey protein
    fruit plant

    2014-04-24 17:04

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps