microsoft: Создание игр на directx для windows 8 и windows phone 8
DESCRIPTION
Речь пойдет об особенностях создания игр для платформ Windows 8 и Windows Phone 8, начиная от возможностей интеграции с платформой, и заканчивая «смешиванием» DirectX кода на C++ с интерфейсными элементами на XAML/С#.TRANSCRIPT
![Page 1: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/1.jpg)
Создание игр для Windows 8 и Windows Phone 8
Сергей Байдачный специалист по разработке программного обеспечения
Майкрософт Украина
![Page 2: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/2.jpg)
О платформе Windows 8
![Page 3: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/3.jpg)
Central and Eastern Europe
Зачем это нужно? С момента начала продаж Windows 7 по март 2012. Данные IDC
690M
Windows 7
345M
Android
196M
iOS
32M
Mac
![Page 4: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/4.jpg)
Central and Eastern Europe
![Page 5: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/5.jpg)
![Page 6: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/6.jpg)
2D graphics 3D graphics
Segoe UI Fonts, text analysis, layout Image & video decoding
![Page 7: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/7.jpg)
HTML5, CSS3 & Direct2D Direct3D
Segoe UI HTML5, CSS3 & DirectWrite HTML5, Direct2D effects,
WIC & Media Foundamon
DirectCompute & C++AMP
![Page 8: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/8.jpg)
Архитектура графической подсистемы в Windows 8
![Page 9: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/9.jpg)
Немного о DirectX
![Page 10: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/10.jpg)
Версии DirectX • Windows XP DirectX 9 hardware DirectX 9 API • Windows Vista DirectX 10 hardware DirectX 10 API • Windows 7 DirectX 11 hardware DirectX 11 API
• Как разрабатывать игры для всех этих версий DirectX?
![Page 11: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/11.jpg)
Feature levels • DirectX11 API предлагает унифицированный механизм разработки приложений
• Feature levels по отношению к оборудованию – Feature level 9 DirectX 9 hardware (ARM/power efficient machines) – Feature level 10 DirectX 10 hardware (many laptops) – Feature level 11 DirectX 11 hardware (high end gaming machines)
![Page 12: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/12.jpg)
DirectX 11.1 • DirectX11.1 это DirectX 11 для Windows 8J • Интеграция в стек технологий платформы • DirectX11+ использует tessellamon и stereoscopic 3D
![Page 13: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/13.jpg)
Windows SDK • The DirectX SDK is now part of the Windows SDK
– Use the Windows SDK to pass cermficamon
• This offers new opportunimes for Windows Store Apps – Build-‐mme shader compilamon with Visual Studio’s HLSL compiler, FXC.exe
– Try the Visual Shader Designer in Visual Studio 2012 • Check out MSDN for more informamon
![Page 14: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/14.jpg)
Немного о Windows Phone 8
![Page 15: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/15.jpg)
Windows Phone
Две модели приложений
Управляемая • Использование уже существующих подходов (C#/XAML)
• Большое количество элементов управления
• Поддержка XNA
Нативная • Разработка приложений на С++
• Переносимость некоторых библиотек и кода с Windows 8
• Повышение производительности игр при утилизации DirectX
![Page 16: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/16.jpg)
Windows Phone
Две модели приложений
• Допускается встраивание DirectX компонент в XAML интерфейс
• Создание приложений на HTML 5 не поддерживается, но …
![Page 17: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/17.jpg)
Windows Phone
C++ в Windows Phone 8 • Visual C++ 2012 • Тот же С++, что и в Windows 8
• Новые возможности C++11 RValue references Forward declared enums Bidirectional fences
static_assert Alignment Data-‐dependency ordering
Auto Standard-‐layout and trivial types exception_ptr
Trailing return types Extended friend declarations Thread-‐local storage
Lambdas Local and unnamed types as template arguments __func__
Decltype Range-‐based for-‐loop C99 preprocessor
Right angle brackets override and final long long
extern templates Minimal GC support
nullptr Atomics
Strongly typed enums Strong compare and exchange
![Page 18: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/18.jpg)
Windows Phone
Что же можно делать на С++
Networking Proximity In-‐App Purchase Sensors Locamon File System Core app model Threading
![Page 19: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/19.jpg)
Windows Phone
Немного о DirectX • C++/DirectX – поддержка нативных приложений • XNA продолжает поддерживаться • Поддержка DirectX 11.1, но уровень 9.3 • Возможность интеграции XAML и DirectX
![Page 20: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/20.jpg)
И еще о C++
![Page 21: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/21.jpg)
Windows Phone
C++ reimagined C++ 11
auto
shared_ptr
decltype
. . . . . h�p://msdn.microso�.com/en-‐us/library/hh567368.aspx
C++/CX Улучшение производительности С++ разработчика на платформе Windows 8 и Windows Phone 8
![Page 22: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/22.jpg)
Windows Phone
C++ Component Extensions (C++/CX) Key Bindings Feature Summary
1. Data Types ref class Reference type
value class Value type
interface class Interface
property Property with get/set
event “Delegate property” with add/remove/raise
delegate Type-‐safe funcmon pointer
generic Type-‐safe generics
2. AllocaEon gcnew Garbage-‐collected allocamon
ref new Reference-‐counted allocamon
3. Pointer & Reference
^ Strong pointer (“hat” or “handle”)
% Strong reference
![Page 23: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/23.jpg)
Поговорим о фреймворках
![Page 24: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/24.jpg)
Ogre3d
![Page 25: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/25.jpg)
SharpDX
![Page 26: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/26.jpg)
PhoneGap
![Page 27: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/27.jpg)
Trigger.io
![Page 28: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/28.jpg)
![Page 29: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/29.jpg)
CROSS PLATFORM • Desktop -‐ Mac and PC
![Page 30: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/30.jpg)
53.1% • Game Developer Magazine survey of mobile developers
![Page 31: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/31.jpg)
CROSS PLATFORM • Desktop -‐ Linux (Ubuntu 32-‐bit / 64-‐bit)
![Page 32: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/32.jpg)
CROSS PLATFORM • Web Browsers
![Page 33: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/33.jpg)
CROSS PLATFORM • Mobile -‐ iOS and Android
![Page 34: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/34.jpg)
CROSS PLATFORM • Adobe Flash Player
![Page 35: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/35.jpg)
CROSS PLATFORM • Consoles -‐ Playstamon 3, Nintendo Wii, Xbox 360
![Page 36: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/36.jpg)
CROSS-PLATFORM Consoles - Nintendo Wii U
![Page 37: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/37.jpg)
CROSS-‐PLATFORM • New Windows pla¡orms
![Page 38: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/38.jpg)
Builds to Visual Studio 2012 Windows Editor only
Script in c#
![Page 39: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/39.jpg)
WINDOWS RT • Intel and ARM processors supported • Plugins available to support Live Tiling, Xbox Live
![Page 40: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/40.jpg)
PRODUCT STATUS • Product in closed beta at the moment • Titles already available on App Store • Going to open beta early 2013
![Page 41: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/41.jpg)
PRODUCT STATUS Product going to closed beta in December 2012 Going to open beta early 2013
![Page 42: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/42.jpg)
LICENSING • Not finalised as yet • Windows desktop and tablet in Unity/Unity Pro • Windows Phone 8 add-‐on $400/$1500
![Page 44: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/44.jpg)
THANKS
![Page 45: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/45.jpg)
Публикация приложений
![Page 46: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/46.jpg)
Central and Eastern Europe
Магазин
![Page 47: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/47.jpg)
Store policy • ARM or Neutral packages must support feature level 9_1
• You may specify a higher feature level when submi¥ng app – Check the feature level at the launch of your app – Nomfy the user if their machine is not the appropriate feature level
• Specify feature level in app descripmon • More informamon about feature level store policy on MSDN
![Page 48: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/48.jpg)
Central and Eastern Europe
Регистрация h�p://dev.windowsphone.com – Windows Phone h�ps://appdev.microso�.com/StorePortals -‐ Windows 8 Бесплатная регистрация для студентов Можно регистрироваться как компания или как отдельный разработчик
![Page 49: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/49.jpg)
Конкурс приложений для Windows Phone
• h�p://wp8.promorc.com
![Page 50: Microsoft: Создание игр на DirectX для Windows 8 и Windows Phone 8](https://reader033.vdocument.in/reader033/viewer/2022052315/548429085806b595588b45c4/html5/thumbnails/50.jpg)
Вопросы?