html5 window.game,releasing html5 games for windows 8

摘要:

www.it-ebooks.infowww.it-ebooks.infoJesse FreemanReleasing HTML5 Games forWindows 8www.it-ebooks.infoReleasing HTML5 Games for Windows 8by Jesse FreemanCopyright 2014 Jesse Freeman. All rights reserved.Printed in the United States of America.Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions arealso available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com.Editor: Rachel RoumeliotisProduction Editor: Christopher HearseProofreader: Christopher HearseCover Designer: Randy ComerInterior Designer: David FutatoIllustrator: Rebeca DemarestNovember 2013: First EditionRevision History for the First Edition:2013-10-31: First releaseSee http://oreilly.com/catalog/errata.csp?isbn=9781449360504 for release details.Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'ReillyMedia, Inc. Releasing HTML5 Games for Windows 8, the image of an anglerfish, and related trade dress aretrademarks of O'Reilly Media, Inc.Many of the designations used by manufacturers and sellers to distinguish their products are claimed astrademarks. Where those designations appear in this book, and O'Reilly Media, Inc., was aware of a trade‐mark claim, the designations have been printed in caps or initial caps.While every precaution has been taken in the preparation of this book, the publisher and authors assumeno responsibility for errors or omissions, or for damages resulting from the use of the information containedherein.ISBN: 978-1-449-36050-4[LSI]www.it-ebooks.infoI would like to dedicate this book to Phyllis Straus who was my advisor and close friendat FSU. The news of her passing broke my heart and she will truly be missed by me andall the lives she had touched, influenced, and directed to reach their full potential.www.it-ebooks.infowww.it-ebooks.infoTable of ContentsPreface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix1.Getting Started with Windows 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Why Windows 8 1What You Need 2Windows 8 Hardware 2Devices 2Windows 8 Versus Windows RT 3Introduction to Windows 8 4Live Tiles 4Charms 5Settings 5Windows Store 6Shortcuts 7Windows 8.1 8BizSpark and DreamSpark 82.Getting Started with Visual Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9What Games Work Best 9Introduction to Visual Studio Express 11Understanding Visual Studio Project Structure 16Moving Your Code Over 19Understanding the App Lifecycle 20Running Your Game for the First Time 21Tips and Tricks for Running Your Game on Windows 8 22Disable Touch Behaviors via CSS 22File Paths and Loading Locally 22vwww.it-ebooks.infoAvoid Modernizr Libraries 233. Screen Resolution and Artwork. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Windows 8 Resolutions 25Scaling Games for Full Screen 26Understanding Snap View 29Upscaling Artwork 32Designing for Multiple Resolutions 34Live Tiles 36Splash Screen 38Tips and Tricks for Working with Artwork on Windows 8 39Use Sprite Sheets or Texture Atlases 39Render for Native Resolution 40Handling Edge Cases 40Set a Maximum Resolution 414. Handling Game Controls On Windows 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Working with Traditional Input 44Working with Touch 44Working with Controllers and Game Pads 47Knowing When to Use What 52Tips and Tricks for Windows 8 Game Input 53Contextual Controls 53Avoid Configuration Screens 53Instruction Screen 535.Debugging and Optimization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55Using the Console 55Debugging and Breakpoints 56DOM Explorer 58Remote Debugging 58Opt

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值