微软:基于Cocos2d
Cocos2d-x for XNA 核心开发者张小明的演讲围绕以下三点展开:Cocos2d-x for XNA和Cocos2d的关系;Cocos2d-x for XNA提供哪些功能,怎么用;Cocos2d-x如何转换到Cocos2d-x for XNA。目前Windows Phone逐渐成为开发者关注的焦点,且Cocos2d-x也为XNA提供了支
Cocos2d-x for XNA 核心开发者张小明的演讲围绕以下三点展开:Cocos2d-x for XNA和Cocos2d的关系;Cocos2d-x for XNA提供哪些功能,怎么用;Cocos2d-x如何转换到Cocos2d-x for XNA。目前Windows Phone逐渐成为开发者关注的焦点,且Cocos2d-x也为XNA提供了支持,以便于Windows Phone的开发者能够使用多种类型的程序开发语言进行开发,而不用过多了解XNA的框架结构。
以下是张小明的演讲实录:
第一,Cocos2d-x跟Cocos2d-x for XNA的关系。
第二,提供哪些功能?怎么用?
第三,如果用Cocos2d-x版本开发游戏,怎么移植到Cocos2d-x forXNA。
讲这些内容照顾两方面的开发者,第一个是以前没有用过Cocos2d-x的游戏引擎,你们要知道有哪些功能。如果有使用过Cocos2d-x开发过游戏的话,你可以知道Cocos2d-x和Cocos2d-x for XNA之间有什么区别。
图:Cocos2d-x for XNA 核心开发者张小明
Cocos2d-x开发主要的目的之一就是要维护开发者的利益,保障开发者的知识可以传承,只要你使用了Cocos2d-x相关的引擎,那么我们就要为你负责。如果这个引擎有三部分,使用的语言、支持的平台和代码。-X是引擎的子类,语言使用是C++,平台是Android、iOS等等。它们的区别第一是语言不同;第二支持平台不同,但是有一个相同点,就是他们要支持相同的API。
Cocos2d-x for XNA版本支持那些内容?显示图片、动画效果、粒子效果、显示文本、添加菜单、播放音乐音效。显示图片基本上三、两个代码就可以做到了,以前有一个模板,添加代码就可以显示一张图片,这个例子其实已经包含了大部分 for XNA和-X之间的区别,大家可以看到在C++版本是有指针的,在XNA版本不需要内存管理,所以是没有指针的概念;对资源加载不同,-X对资源的路径包括文件的格式,在XNA版本只要传文件名字不需要格式。通过一张图片显示,设置位置,告诉引擎你需要渲染这张图片,引擎就会渲染。
动画效果:假设移动到某一个位置,第一个参数就是要几秒钟内做完这个动作,第二就是移动到哪里,引擎就会自动在每周帮你计算偏离量是多少,平滑的完成这个动作。引擎里面有各种各样的动作,只是举其中一个例子。
粒子效果:引擎里面实现了各种各样的种类,只要创建一个抬头,设计需要的纹理是什么,设置一个位置,引擎会自动帮你添加实现粒子效果。同样,需要三、四行代码。
显示文本:显示文本的内容,需要使用的字体,字体的大小,设置一个位置,把文本加进去。添加菜单:创建菜单,把菜单项加到菜单,设置菜单的位置加进去。播放音乐、音效:背景音乐、音效,引擎是音效模块,大家可以看到二者的区别和之前加载图片的区别是一样的,中间不需要格式后缀。
如果用Cocos2d-x开发的游戏一直到Windows Phone版本大家可以看到不同点和相同点。相同点:1、接口相同;2、引擎框架相同;3、同样的社区支持。不同点:1、内存管理方式不同;2、成员变量访问形式不同;3、资源访问方式不同;4、微软、诺基亚的大力支持。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Bing is an online search engine launched by Microsoft. The search function is very powerful and has two entrances: the domestic version and the international version. Where are the entrances to these two versions? How to access the international version? Let’s take a look at the details below. Bing Chinese version website entrance: https://cn.bing.com/ Bing international version website entrance: https://global.bing.com/ How to access Bing international version? 1. First enter the URL to open Bing: https://www.bing.com/ 2. You can see that there are options for domestic and international versions. We only need to select the international version and enter keywords.

According to news on June 3, Microsoft is actively sending full-screen notifications to all Windows 10 users to encourage them to upgrade to the Windows 11 operating system. This move involves devices whose hardware configurations do not support the new system. Since 2015, Windows 10 has occupied nearly 70% of the market share, firmly establishing its dominance as the Windows operating system. However, the market share far exceeds the 82% market share, and the market share far exceeds that of Windows 11, which will be released in 2021. Although Windows 11 has been launched for nearly three years, its market penetration is still slow. Microsoft has announced that it will terminate technical support for Windows 10 after October 14, 2025 in order to focus more on

According to news from this site on August 14, during today’s August Patch Tuesday event day, Microsoft released cumulative updates for Windows 11 systems, including the KB5041585 update for 22H2 and 23H2, and the KB5041592 update for 21H2. After the above-mentioned equipment is installed with the August cumulative update, the version number changes attached to this site are as follows: After the installation of the 21H2 equipment, the version number increased to Build22000.314722H2. After the installation of the equipment, the version number increased to Build22621.403723H2. After the installation of the equipment, the version number increased to Build22631.4037. The main contents of the KB5041585 update for Windows 1121H2 are as follows: Improvement: Improved

According to news from this website on March 11, source Yuki Yasuo-YuuKi_AnS recently shared a series of pictures of a Microsoft Z1000 solid-state drive sample on the X platform. From the label information, we learned that this Z1000 is an Engineering Sample (engineering sample) with a capacity of 960GB. It was produced on May 18, 2020. It is powered by DC3.3V and has a nominal power consumption of 15W. According to sources, it supports the NVMe1.2 protocol. ▲Microsoft Z1000 SSD front photo (with label) ▲Microsoft Z1000 SSD front photo (without label) ▲Microsoft Z1000 SSD back photo ▲Microsoft Z1000 SSD back photo - master control close-up reference Yuuki Yasuho-YuuKi_An

News on April 18th: Recently, some users of the Microsoft Edge browser using the Canary channel reported that after upgrading to the latest version, they found that the option to automatically save passwords was disabled. After investigation, it was found that this was a minor adjustment after the browser upgrade, rather than a cancellation of functionality. Before using the Edge browser to access a website, users reported that the browser would pop up a window asking if they wanted to save the login password for the website. After choosing to save, Edge will automatically fill in the saved account number and password the next time you log in, providing users with great convenience. But the latest update resembles a tweak, changing the default settings. Users need to choose to save the password and then manually turn on automatic filling of the saved account and password in the settings.

According to news on March 21, Microsoft recently updated its Microsoft Edge browser and added a practical "enlarge image" function. Now, when using the Edge browser, users can easily find this new feature in the pop-up menu by simply right-clicking on the image. What’s more convenient is that users can also hover the cursor over the image and then double-click the Ctrl key to quickly invoke the function of zooming in on the image. According to the editor's understanding, the newly released Microsoft Edge browser has been tested for new features in the Canary channel. The stable version of the browser has also officially launched the practical "enlarge image" function, providing users with a more convenient image browsing experience. Foreign science and technology media also paid attention to this

According to news from this site on April 27, Microsoft released the Windows 11 Build 26100 preview version update to the Canary and Dev channels earlier this month, which is expected to become a candidate RTM version of the Windows 1124H2 update. The main changes in the new version are the file explorer, Copilot integration, editing PNG file metadata, creating TAR and 7z compressed files, etc. @PhantomOfEarth discovered that Microsoft has devolved some functions of the 24H2 version (Germanium) to the 23H2/22H2 (Nickel) version, such as creating TAR and 7z compressed files. As shown in the diagram, Windows 11 will support native creation of TAR

In the second half of 2024, the official Microsoft Security Blog published a message in response to the call from the security community. The company plans to eliminate the NTLAN Manager (NTLM) authentication protocol in Windows 11, released in the second half of 2024, to improve security. According to previous explanations, Microsoft has already made similar moves before. On October 12 last year, Microsoft proposed a transition plan in an official press release aimed at phasing out NTLM authentication methods and pushing more enterprises and users to switch to Kerberos. To help enterprises that may be experiencing issues with hardwired applications and services after turning off NTLM authentication, Microsoft provides IAKerb and
