Introduction to the development of 2D Windows 8 games using Direct X and C++ Markus Jost CEO, Lead Programmer, Codebox GmbH
Agenda
Dream Build Play 2008 The Path of Go – Xbox LIVE Arcade Various Indie Titles for Mobiles
The Platform Chapter 1/3
Direct X
Differences in game development between the phone and the desktop: Supported Direct3D APIs for Windows Phone 8:
The Basics Chapter 2/3
Lifecycle of a Videogame
Translating 3D points into Screen-space (2d)
Sample 0 Creating a new project
Sample 0.5 From 3D to 2D
Pipeline Direct3D 11:
Sample 1 Loading Texture Rendering Sprite
Reading user input with DirectX Source:
Sample 2 Reading User Input Moving Sprite
Basic Collision Detection float denom = ((B2.Y – B1.Y) * (A2.X – A1.X)) – ((B2.X – B1.X) * (A2.Y - A1.Y)); if (denom == 0) { return null; } else { float ua = (((B2.X – B1.X) * (A1.Y – B1.Y)) – ((B2.Y – B1.Y) * (A1.X – B1.X))) / denom; float ub = (((A2.X – A1.X) * (A1.Y – B1.Y)) – ((A2.Y – A1.Y) * (A1.X – B1.X))) / denom; if (ua 1) || (ub 1) return null ; return A1 + ua * (A2 – A1) }
Sample 3 Basic Collision
Sample 4 Audio
Questions? Chapter 3/3