1584 pro HTML5 games

357 115 0
1584 pro HTML5 games

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

... www.adityaravishankar.com /pro- html5- games/ He can also be reached via e-mail at prohtml 5games@ adityaravishankar.com xviii www.it-ebooks.info Chapter HTML5 and JavaScript Essentials HTML5, the latest... resources to start making amazing games of your own in HTML5 Who This Book Is For Pro HTML5 Games is meant for programmers who already have some HTML and JavaScript programming experience and who... this book no matter how much game programming experience you have How This Book Is Structured Pro HTML5 Games takes you through the process of building two complete games over the course of 12 chapters

Ngày đăng: 12/07/2018, 08:24

Từ khóa liên quan

Mục lục

  • Pro HTML5 Games

    • Contents at a Glance

    • Contents

    • About the Author

    • About the Technical Reviewers

    • Introduction

    • Chapter 1: HTML5 and JavaScript Essentials

      • The canvas Element

        • Drawing Rectangles

        • Drawing Complex Paths

        • Drawing Text

        • 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 Layout

      • Creating 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 Listeners

      • Drawing 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 Screen

      • Implementing 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

      • Pathfinding

      • Defining 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

      • Implementing the Combat System

        • Adding Bullets

        • Combat-Based Orders for Turrets

        • Combat-Based Orders for Aircraft

        • Combat-Based Orders for Vehicles

      • Building Intelligent Enemy

      • Adding a Fog of War

        • Defining the Fog Object

        • Drawing the Fog

        • Making Fogged Areas Unbuildable

      • Summary

    • Chapter 10: Wrapping Up the Single-Player Campaign

      • Adding Sound

        • Setting Up Sounds

        • Acknowledging Commands

        • Messages

        • Combat

      • Building the Single-Player Campaign

        • The Rescue

        • Assault

        • Under Siege

      • Summary

    • Chapter 11: Multiplayer with WebSockets

      • Using the WebSocket API with Node.js

        • WebSockets on the Browser

        • Creating an HTTP Server in Node.js

        • Creating a WebSocket Server

      • Building the Multiplayer Game Lobby

        • Defining the Multiplayer Lobby Screen

        • Populating the Games List

        • Joining and Leaving a Game Room

      • Starting the Multiplayer Game

        • Defining the Multiplayer Level

        • Loading the Multiplayer Level

      • Summary

    • Chapter 12: Multiplayer Gameplay

      • The Lock-Step Networking Model

        • Measuring Network Latency

        • Sending Commands

      • Ending the Multiplayer Game

        • Ending the Game When a Player Is Defeated

        • Ending the Game When a Player Is Disconnected

        • Ending the Game When a Connection Is Lost

      • Implementing Player Chat

      • Summary

    • Index

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan