My Account Log in

1 option

Pro HTML5 games / Aditya Ravi Shankar.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Shankar, Aditya Ravi.
Series:
Expert's voice in Web development.
The expert's voice in web development
Language:
English
Subjects (All):
Video games--Programming.
Video games.
HTML (Document markup language).
Physical Description:
1 online resource (355 p.)
Edition:
1st ed. 2012.
Other Title:
Pro HTML five games
Place of Publication:
[New York] : Apress : Distributed to the book trade worldwide by Springer Science+Business Media New York, c2012.
Language Note:
English
System Details:
text file
Summary:
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.
Contents:
Title Page; Copyright Page; Table of Contents; Drawing Text; About the Author; About the Technical Reviewers; Introduction; Who This Book Is For; How This Book Is Structured; Downloading the Code; Contacting the Author; Chapter 1: HTML5 and JavaScript Essentials; The canvas Element; Drawing Rectangles; Drawing Complex Paths; Customizing Drawing Styles (Colors and Textures); Drawing Images; Transforming and Rotating; The audio Element; The image Element; Image Loading; Sprite Sheets; Animation: Timer and Game Loops; requestAnimationFrame; Summary; Chapter 2: Creating a Basic Game World
Basic HTML LayoutCreating the Splash Screen and Main Menu; Level Selection; Loading Images; Loading Levels; Animating the Game; Handling Mouse Input; Defining Our Game States; Summary; Chapter 3: Physics Engine Basics; Box2D Fundamentals; Setting Up Box2D; Defining the World; Adding Our First Body: The Floor; Drawing the World: Setting Up Debug Drawing; Animating the World; More Box2D Elements; Creating a Rectangular Body; Creating a Circular Body; Creating a Polygon-Shaped Body; Creating Complex Bodies with Multiple Shapes; Connecting Bodies with Joints; Tracking Collisions and Damage
Contact ListenersDrawing Our Own Characters; Summary; Chapter 4: Integrating The Physics Engine; Defining Entities; Adding Box2D; Creating Entities; Adding Entities to Levels; Setting Up Box2D Debug Drawing; Drawing the Entities; Animating the Box2D World; Loading the Hero; Firing the Hero; Ending the Level; Collision Damage; Drawing the Slingshot Band; Changing Levels; Adding Sound; Adding Break and Bounce Sounds; Adding Background Music; Summary; Chapter 5: Creating the RTS Game World; Basic HTML Layout; Creating the Splash Screen and Main Menu; Creating Our First Level
Loading the Mission Briefing ScreenImplementing the Game Interface; Implementing Map Panning; Summary; Chapter 6: Adding Entities to Our World; Defining Entities; Defining Our First Entity: The Main Base; Adding Entities to the Level; Drawing the Entities; Adding the Starport; Adding the Harvester; Adding the Ground Turret; Adding the Vehicles; Adding the Aircraft; Adding the Terrain; Selecting Game Entities; Highlighting Selected Entities; Summary; Chapter 7: Intelligent Unit Movement; Commanding Units; Sending and Receiving Commands; Processing Orders; Implementing Aircraft Movement
PathfindingDefining Our Pathfinding Grid; Implementing Vehicle Movement; Collision Detection and Steering; Deploying the Harvester; Smoother Unit Movement; Summary; Chapter 8: Adding More Game Elements; Implementing the Basic Economy; Setting the Starting Money; Implementing the Sidebar; Generating Money; Purchasing Buildings and Units; Adding Sidebar Buttons; Enabling and Disabling Sidebar Buttons; Constructing Vehicles and Aircraft at the Starport; Constructing Buildings at the Base; Ending a Level; Implementing the Message Dialog Box; Implementing Triggers; Summary
Chapter 9: Adding Weapons and Combat
Notes:
Includes index.
ISBN:
9781430247111
1430247118
OCLC:
831115694

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account