HTML5 Canvas——网站本地化交互和动画设计(第二版,影印版)
Steve Fulton, Jeff Fulton
出版时间:2013年12月
页数:726
“可能是HTML5最令人激动的标签,Canvas, 在这本不可或缺的书中受到全方位的检验。很多实际的示例启发思考,而对HTML5附带的功能如Video和Audio同样详细的讲解,则是令人出乎意料的奖品。”
——Raffaele Cecco
视频游戏的资深开发人员,
作品包括《Cybernoid》《Exolon》和《Stormlord》

Flash日渐衰弱而Canvas正逐步走强。这本畅销书的第二版为你展示了如何创建互动多媒体应用,带你上手HTML5 Canvas。
你将学到如何绘图、渲染文本、操纵图像和创建动画。这一切都包含在本书中构建交互网站游戏的课程里。
本版根据最新的Canvas实现和相关的HTML5技术做了修订,它包括清晰而且可重用的示例代码来帮助你快速学习基础知识——无论你现在正在使用Flash、Siverlight还是只用HTML和JavaScript。
探究为什么HTML5是创新Web开发的未来。

· 创建和修改2D制图、文本和bitmap图像
· 使用算法来实现基于数学的移动和物理碰撞
· 嵌入并操纵视频以及添加音频
· 构建用来创建多种游戏的基本框架
· 使用bitmap和tile表格开发动画游戏图像
· 走向移动设备:构建Web应用并将它们适配到iOS设备上
· 探索使用各种方式将Canvas运用于3D和多人游戏应用

Steve和Jeff Fulton在交互娱乐创作方面有超过16年的经验。Steve是Mattel Toys公司数字播放软件开发的资深经理,而Jeff则是Producto Studios工作室的CTO。他们还通过8bitrocket.com培养了一大批忠实读者,来了解有关Flash、Silverlight和现在的HTML5 Canvas的新闻、故事、博客和教程。
  1. Chapter 1: Introduction to HTML5 Canvas
  2. What Is HTML5?
  3. The Basic HTML5 Page
  4. Basic HTML We Will Use in This Book
  5. The Document Object Model (DOM) and Canvas
  6. JavaScript and Canvas
  7. HTML5 Canvas “Hello World!”
  8. Debugging with console.log
  9. The 2D Context and the Current State
  10. The HTML5 Canvas Object
  11. Another Example: Guess The Letter
  12. Hello World Animated Edition
  13. HTML5 Canvas and Accessibility: Sub Dom
  14. What’s Next?
  15. Chapter 2: Drawing on the Canvas
  16. The Basic File Setup for This Chapter
  17. The Basic Rectangle Shape
  18. The Canvas State
  19. Using Paths to Create Lines
  20. Advanced Path Methods
  21. Compositing on the Canvas
  22. Simple Canvas Transformations
  23. Filling Objects with Colors and Gradients
  24. Filling Shapes with Patterns
  25. Creating Shadows on Canvas Shapes
  26. Methods to Clear the Canvas
  27. Checking to See Whether a Point Is in the Current Path
  28. Drawing a Focus Ring
  29. What’s Next?
  30. Chapter 3: The HTML5 Canvas Text API
  31. Canvas Text and CSS
  32. Displaying Basic Text
  33. Setting the Text Font
  34. Text and the Canvas Context
  35. Text with Gradients and Patterns
  36. Width, Height, Scale, and toDataURL() Revisited
  37. Final Version of Text Arranger
  38. Animated Gradients
  39. The Future of Text on the Canvas
  40. What’s Next?
  41. Chapter 4: Images on the Canvas
  42. The Basic File Setup for This Chapter
  43. Image Basics
  44. Simple Cell-Based Sprite Animation
  45. Advanced Cell-Based Animation
  46. Applying Rotation Transformations to an Image
  47. Creating a Grid of Tiles
  48. Diving into Drawing Properties with a Large Image
  49. Pixel Manipulation
  50. Copying from One Canvas to Another
  51. Using Pixel Data to Detect Object Collisions
  52. What’s Next?
  53. Chapter 5: Math, Physics, and Animation
  54. Moving in a Straight Line
  55. Bouncing Off Walls
  56. Curve and Circular Movement
  57. Simple Gravity, Elasticity, and Friction
  58. Easing
  59. Box2D and the Canvas
  60. Interactivity with Box2D
  61. Box2D Further Reading
  62. What’s Next?
  63. Chapter 6: Mixing HTML5 Video and Canvas
  64. HTML5 Video Support
  65. Converting Video Formats
  66. Basic HTML5 Video Implementation
  67. Preloading Video in JavaScript
  68. Video and the Canvas
  69. Video on the Canvas Examples
  70. Animation Revisited: Moving Videos
  71. Capturing Video with JavaScript
  72. Video and Mobile
  73. What’s Next?
  74. Chapter 7: Working with Audio
  75. The Basic <audio> Tag
  76. Audio Formats
  77. Audio Tag Properties, Functions, and Events
  78. Playing a Sound with No Audio Tag
  79. Creating a Canvas Audio Player
  80. Case Study in Audio: Space Raiders Game
  81. Web Audio API
  82. What’s Next?
  83. Chapter 8: Canvas Games: Part I
  84. Why Games in HTML5?
  85. Our Basic Game HTML5 File
  86. Our Game’s Design
  87. Game Graphics: Drawing with Paths
  88. Animating on the Canvas
  89. Applying Transformations to Game Graphics
  90. Game Graphic Transformations
  91. Game Object Physics and Animation
  92. A Basic Game Framework
  93. Putting It All Together
  94. The Player Object
  95. Geo Blaster Game Algorithms
  96. The Geo Blaster Basic Full Source
  97. Rock Object Prototype
  98. Simple A* Path Finding on a Tile Grid
  99. What’s Next?
  100. Chapter 9: Canvas Games: Part II
  101. Geo Blaster Extended
  102. Creating a Dynamic Tile Sheet at Runtime
  103. A Simple Tile-Based Game
  104. Scrolling a Tile-Based World
  105. What’s Next?
  106. Chapter 10: Going Mobile!
  107. The First Application
  108. Retro Blaster Touch
  109. Mobilizing Retro Blaster Touch
  110. Beyond the Canvas
  111. What’s Next?
  112. Chapter 11: Further Explorations
  113. 3D with WebGL
  114. Multiplayer Applications with ElectroServer 5
  115. Creating a Simple Object Framework for the Canvas
  116. Windows 8 Apps and the HTML5 Canvas
  117. What’s Next in HTML5.1 and Canvas Level 2?
  118. Conclusion
  119. Appendix: Full Code Listings
  120. Code from Chapter 7
  121. Code from Chapter 9
  122. Code from Chapter 11
书名:HTML5 Canvas——网站本地化交互和动画设计(第二版,影印版)
国内出版社:东南大学出版社
出版时间:2013年12月
页数:726
书号:978-7-5641-4600-9
原版书书名:HTML5 Canvas, 2nd Edition
原版书出版商:O'Reilly Media
Steve Fulton
 
steve fulton 是一位ria和网页游戏开发者,在过去的3年半中,他在他的网站http://www.8bitrocket.com上培养了很多关于他的新闻,故事,博客,关于flash,silverlight教程,以及现在的html5.canvas的读者。在flash游戏开发者中,steve在alexa网站的排名中名列前茅。steve在过去的十四年中担任mattel toys公司的网页开发经理,帮助公司创建了广泛的的在线用户。
 
 
Jeff Fulton
 
jeff fulton 在过去的17年中一直致力于ria(丰富性网络应用服务)并且只做了很多游戏。他目前是zynga的高级游戏工程师。之前他在mattel toys做贸易,并且为自己的8bitrocket工作室做自由撰稿人。jeff还与他的哥哥steve合著了一本关于高级flash游戏开发的书。现在他经营者一个成功且很受欢迎的博客网站--http://www.8bitrocket.com。这是一个致力于flash,html5,silverlight和复古游戏的网站。
 
 
The animal on the cover of HTML5 Canvas is the New Zealand kaka (Nestor meridionalis), a parrot endemic to that country. The kaka’s name comes from the Maori word for parrot (a duplication of the word ka, Maori for “to screech”). It is part of the Strigopidae family, which diverged from other parrots 80–100 million years ago when the landmass that is now New Zealand broke apart from the supercontinent Gondwana. A defining characteristic of this family of parrots is the bristles on their tongues, which are used to collect nectar.

A medium-sized parrot about 18 inches in length, the kaka is stocky and has a short, square tail. Its feathers are primarily olive-brown, with brighter splashes of crimson on the underwings and rump. It also has yellow-brown spots on its cheeks and a gray crown. It possesses the sharp curved beak common to many parrot species, which it uses to pry seeds loose from cones and dig up insects. The kaka also eats fruit, berries, nectar, and flowers.

These birds are primarily arboreal, living in the canopies of New Zealand forests. Very social creatures, kakas live in large flocks that sometimes include other local parrot species as well. In winter, breeding pairs build nests in hollow trees, and lay a clutch of two to four eggs. Both parents help feed their young.

The kaka is currently endangered due to deforestation, predators, and competition for food with non-native species. The closely related kea and kakapo parrots are facing similar challenges—and in fact, two species within the Nestor genus have already gone extinct (most recently in 1851).
购买选项
定价:96.00元
书号:978-7-5641-4600-9
出版社:东南大学出版社