Build an HTML5 Game: A Developer's Guide with CSS and JavaScript (Paperback)

Karl Bunyan

  • 出版商: No Starch Press
  • 出版日期: 2015-03-23
  • 售價: $990
  • 貴賓價: 9.5$941
  • 語言: 英文
  • 頁數: 224
  • 裝訂: Paperback
  • ISBN: 1593275757
  • ISBN-13: 9781593275754
  • 相關分類: CSSHTMLJavaScript
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

If you already have even basic familiarity with HTML, CSS, and JavaScript, you're ready to learn how to build a browser-based game. In Build an HTML5 Game, you'll use your skills to create a truly cross-platform bubble-shooter game - playable in both desktop and mobile browsers.

As you follow along with this in-depth, hands-on tutorial, you'll learn how to:

  • Send sprites zooming around the screen with JavaScript animations
  • Make things explode with a jQuery plug-in
  • Use hitboxes and geometry to detect collisions
  • Implement game logic to display levels and respond to player input
  • Convey changes in game state with animation and sound
  • Add flair to a game interface with CSS transitions and transformations
  • Gain pixel-level control over your game display with the HTML canvas
The programming starts right away in Chapter - no hemming and hawing, history, or throat clearing. Exercises at the end of each chapter challenge you to dig in to the bubble shooter's code and modify the game.

Go ahead. Take the plunge. Learn to create a complete HTML5 game right now and then use your newfound skills to build your own mega-popular, addictive game.

商品描述(中文翻譯)

如果您已經對HTML、CSS和JavaScript有基本的了解,那麼您已經準備好學習如何建立一個基於瀏覽器的遊戲了。在《建立一個HTML5遊戲》中,您將使用這些技能來創建一個真正跨平台的泡泡射擊遊戲 - 可在桌面和移動瀏覽器中遊玩。

在這個深入且實踐性的教程中,您將學習如何:
- 使用JavaScript動畫使精靈在屏幕上飛快移動
- 使用jQuery插件使物體爆炸
- 使用碰撞檢測和幾何學來檢測碰撞
- 實現遊戲邏輯以顯示關卡並對玩家輸入作出反應
- 通過動畫和聲音傳達遊戲狀態的變化
- 使用CSS過渡和變形為遊戲界面增添風格
- 通過HTML畫布對遊戲顯示進行像素級控制

本書的編程內容從第一章就開始,沒有拖泥帶水、歷史介紹或前言。每章末尾的練習都會挑戰您深入研究泡泡射擊遊戲的代碼並修改遊戲。

請勇往直前,立即學習創建一個完整的HTML5遊戲,然後利用您新學到的技能來建立自己的超級受歡迎、令人上癮的遊戲。