Pro HTML5 Games
برخلاف کتابهای دیگر که پر شده اند از مثالهای انتزاعی که هیچ وقت به کار نمیآیند، در این کتاب به شما نشان خواهیم داد که چگونه با استفاده از HTML5 بتوان بازیهای کارا و کاملی ساخت. مخصوصا یک موتور فیزیک بازی و استراتژی بلادرنگ را برای مثالها انتخاب کرده ام؛ چرا که امروزه هر کدام از آنها از محبوبیت زیادی برای توسعهی بازیهای مبتنی بر HTML5 برخوردارند.در این کتاب شما عناصر ضروری برای ساخت بازی به وسیلهی HTML5 را فرا خواهید گرفت و بعد از آن خواهید دید که چگونه این عنصر در کنار هم قرار گرفته و یک بازی حرفه ای را میسازند
Build your next game on a bigger scale with Pro HTML5 Games. This book teaches you the essentials of advanced game programming in HTML5. You’ll learn techniques that you can transfer to any area of HTML5 game development to make your own professional HTML5 games!
Led by an expert game programmer, you’ll build two complete games in HTML5: a strategy puzzle game based on the Box2d physics engine and in the style of Angry Birds and a real-time strategy (RTS) game complete with units, buildings, path-finding, artificial intelligence, and multiplayer support. In the process, you’ll learn how to do the following:
• Create realistic physics in your game by incorporating the Box2d physics engine
• Design large worlds with lots of characters and let users interact with them
• Use sprite sheets, panning, parallax scrolling, and sound effects to build a more polished game
• Incorporate pathfinding and steering to help characters navigate through your world
• Create challenging levels with intelligent enemies by using decision trees, state machines, and scripted events
• Add multiplayer in your games using Node.js and the WebSocket API
This book will help you take your HTML5/JavaScript programming experience to the next level. It gives you the knowledge and skills you need to develop more complex, bolder games and become an HTML5 games pro.
What you’ll learn
• Creating realistic physics in your game by incorporating the Box2d physics engine
• Designing large worlds with lots of characters and let users interact with them
• Using sprite sheets, panning, parallax scrolling, and sound effects to build a more polished game
• Incorporating pathfinding and steering to help characters navigate through your world
• Creating challenging levels with intelligent enemies by using decision trees, state machines, and scripted events
• Adding multiplayer in your games using Node.js and the WebSocket API
Table of Contents
1. HTML5 and JavaScript Essentials
2. Creating a Basic Game World
3. Physics Engine Basics
4. Integrating the Physics Engine
5. Creating the RTS Game World
6. Adding Entities to Our World
7. Intelligent Unit Movement
8. Adding More Game Elements
9. CreaAdding Weapons and Combat
10. Wrapping Up the Single-Player Campaign
11. Multiplayer with WebSockets
12. Multiplayer Gameplay