Trò chơi trên windows phone



This tutorial is licensed under CC BY 4.0. Please refer lớn the license text if you wish khổng lồ reuse, giới thiệu or remix the nội dung contained within this tutorial.

Bạn đang xem: Trò chơi trên windows phone

Windows Phone 8 has been retired

Microsoft have retired Windows Phone 8. This article is preserved for archival reasons only.

Creating a game for Windows Phone 8 is easy with 2. If you haven"t already, download the không lấy phí edition and get going with the Beginner"s guide!

Note: we strongly recommend exporting a Windows Store Universal tiện ích instead, which supports Windows Phone 8.1+. Support for 2 games is significantly better in Windows Phone 8.1. For more information, see How to export Windows Store apps. The rest of this tutorial covers Windows Phone 8.0 only, which has some compatibility issues with 2 games.


You need to download and install Visual Studio 2012 Express for Windows Phone 8 lớn be able khổng lồ build apps for the Windows Phone store. It"s a free download. Obviously having an actual Windows Phone 8 device is very useful for testing, so you may want to lớn try & borrow or purchase one.


You"ll need to showroom touch controls. See this tutorial on cảm ứng controls for help on that.

Different devices have different size screens. See supporting multiple screen sizes.

Note that despite the name, 2"s Windows 8 object does not currently work for Windows Phone 8. This is because Windows 8 và Windows Phone 8 are still currently two separate platforms, but they may be merged in future.

Exporting from 2

First, ensure your project has the right Name, DescriptionAuthor properties set, since these will be used in the exported app. You"ll also need to set a Fullscreen-in-browser mode, since mobile apps have to run fullscreen.

Xem thêm: Top 9 Bài Thuyết Minh Về Chiếc Kính Đeo Mắt Hay Nhất, Giới Thiệu Về Chiếc Kính Đeo Mắt

Then click Export project, và choose the Windows Phone 8 option. Continue with the next steps as you would for exporting an ordinary project.

In the export directory you will find a Visual Studio project. Lưu ý there are some icons và tiles in the Assets subfolder; you"ll want to lớn replace these with your own artwork with the same dimensions.

The main project tệp tin has the extension .sln (solution). Double-click it in Windows Explorer and Visual Studio should open it.

Testing from Visual Studio

If you"ve not used Visual Studio before, it"s a complex & sophisticated tool for application development. However, you only need khổng lồ use a small number of commands khổng lồ test & build your app. To run the app and kiểm tra how it works, click the run button in the toolbar, which should look something like this:


Visual Studio 2012 for Windows Phone 8 also includes a complete emulator for a Windows Phone 8. It may take a moment to start up, but once it"s running it should start your ứng dụng fairly quickly. This allows you to lớn verify it is working OK on the Windows Phone 8 platform.


Next khổng lồ the run button on the toolbar should be a dropdown saying Debug. This is good for testing, but not for publishing. Lớn release your app, click the dropdown và select Release. Then choose BUILD -> Build solution. When the build finishes, xuất hiện the BinRelease subfolder in Windows Explorer. This contains your .xap file, which is a compiled Windows Phone application.


To submit an phầm mềm to the Windows Phone store, visit this URL:

If you haven"t published before, you"ll need to sign up an account. This costs $99/year, but is also miễn phí if you"re a DreamSpark student.

Once you"re in the dashboard, click the Submit app button!

For more information such as setting up IAP và some other Windows Phone 8 specific tweaks, see Henry Hoffman"s tutorial on Windows Phone games with 2.