Recently, in an existing game to the Windows Phone platform porting, temporarily completed a small phase, to do a summary.
Development environment:
- Windows 8.1 System and above, if you like, with Windows 10 early adopters can also.
- Microsoft account to get a development certificate for free when you build a Windows Phone project. http://signup.live.com/
- Microsoft Development Account, for uploading applications to the store, http://dev.windowsphone.com/, 19 knives permanently works.
- Visual Studio 2013, if you use the flagship version, bring your own Windows Phone 8.1 SDK, as much as possible with the latest update.
- Windows Phone SDK, if you are using Express VS2013, you need to download the SDK for Windows Phone 8.1 separately, HTTPS://DEV.WINDOWSPHONE.COM/EN-US/DOWNLOADSDK
- Unity, Http://unity3d.com/unity/download, try to download the latest stable version.
- Windows Phone 8.1 Device, the game is relatively more memory to eat, try to buy more than 1G memory of the machine, such as 636,638.
Theory:
- Mono is an open-source, cross-platform framework with the goal of achieving an open source. NET Framework, called the Mono Runtime, develops languages primarily but not just C #.
- The bottom of unity is implemented in C + +, but embedded in the Mono runtime as its scripting engine.
- Unity's embedded mono is customized, meaning it is not exactly the same as the official mono, whose current mono version is 2.6 and is not open source.
- Unity's runtime on Windows Phone 8.1 is primarily Windows runtime, and Ms's own. NET subset, and mono, which can be compatible with this part of. NET subset.
- The official mono,unity. NET subset of Mono,ms. There is a overlap between the three, but the main process of migration is their non-intersecting parts.
- It is a shame that unity's mono cannot be directly run on the Windows Phone without modification, but can run on the ios/android.
Porting process:
- Open an existing game project with unity, and then switch Platform, file-building&settings, select Phone 8.1 under Windows Store. After this step, unity will change the conditional compilation symbol to Unity_wp_8_1
- Setting up the Player Settings, mainly setting the manifest file, is worth noting the compilation options.
- With Unity C # Projects and development build selected, click Build and create a new folder (such as WP81) to create a project that VS2013 can open.
- If the build succeeds, open the newly generated sln with VS2013 and continue with the VS2013 build.
- If the compilation is successful, you can deploy the generated game to your phone for testing.
- If you can run as normal as any other platform, you can upload the game to the Windows store.
Of course, except the 1th step will be smooth (depending on the number of assets in the game, it may take a long time), and depending on the game, the 2nd to 6th step will be a lot of trouble and confusion. This section is not in depth. The next step is to summarize and delve into the specifics of the process. A new group of Q groups devoted to the UNITY->WP transplant was created: 307409538, for the time being, it is necessary to have an actual game project for those who are in the crowd.
Porting an existing Unity3d game to Windows Phone 8.1 (Basic)