Item Information
Estimated Shipping 1 - 3 Days
Item Description
These video and docs tutorials from will teach you
step by step from naive to advance and commercial usage.
Language: English

Type: Video & docs tutorials


Getting to know HTML5
Introducing JavaScript and the DOM: A Little Code
Events, Handlers and All That Jazz: A Little Interactivity
JavaScript Functions and Objects: Serious JavaScript
Making Your HTML Location Aware: Geolocation
Talking to The Web: Extroverted Apps
Bringing Out Your Inner Artist: Canvas
Not Your Father’s TV: Video With Special Guest Star “Canvas”
Storing Things Locally: Web Storage
Putting JavaScript to Work: Web Workers

Introduction to HTML5 Canvas
The Basic HTML Page

A Simple HTML5 Page
The Document Object Model (DOM) and Canvas
JavaScript and Canvas
JavaScript Frameworks and Libraries
Where Does JavaScript Go and Why?
HTML5 Canvas “Hello World!”
Encapsulating Your JavaScript Code for Canvas
Adding Canvas to the HTML Page
Testing to See Whether the Browser Supports Canvas
Retrieving the D Context
The drawScreen() Function
Debugging with Consolelog
The D Context and the Current State
The HTML5 Canvas Object
Another Example: Guess The Letter
How the Game Works
The “Guess The Letter” Game Variables
The initGame() Function
The eventKeyPressed() Function
The drawScreen() Function
Exporting Canvas to an Image
The Final Game Code
What’s Next
Drawing on the Canvas
The Basic File Setup for This Chapter
The Basic Rectangle Shape
The Canvas State
What’s Not Part of the State?
How Do We Save and Restore the Canvas State?
Using Paths to Create Lines
Starting and Ending a Path
The Actual Drawing
Examples of More Advanced Line Drawing
Advanced Path Methods
Bezier Curves
The Canvas Clipping Region
Compositing on the Canvas
Simple Canvas Transformations
Rotation and Translation Transformations
Scale Transformations
Combining Scale and Rotation Transformations
Filling Objects with Colors and Gradients
Setting Basic Fill Colors
Filling Shapes with Gradients
Filling Shapes with Patterns
Creating Shadows on Canvas Shapes
What’s Next
The HTML5 Canvas Text API
Displaying Basic Text
Basic Text Display
Handling Basic Text in Text Arranger
Communicating Between HTML Forms and the Canvas
Using measureText
fillText and strokeText
Setting the Text Font
Font Size, Face Weight, and Style Basics
Handling Font Size and Face in Text Arranger
Font Color
Font Baseline and Alignment
Text Arranger Version
Text and the Canvas Context
viii | Table of Contents
Global Alpha and Text
Global Shadows and Text
Text with Gradients and Patterns
Linear Gradients and Text
Radial Gradients and Text
Image Patterns and Text
Handling Gradients and Patterns in Text Arranger
Width, Height, Scale, and toDataURL() Revisited
Dynamically Resizing the Canvas
Dynamically Scaling the Canvas
The toDataURL() Method of the Canvas Object
Final Version of Text Arranger
What’s Next
Images on the Canvas
The Basic File Setup for This Chapter
Image Basics
Preloading Images
Displaying an Image on the Canvas with drawImage()
Resizing an Image Painted to the Canvas
Copying Part of an Image to the Canvas
Simple Cell-Based Sprite Animation
Creating an Animation Frame Counter
Creating a Timer Loop
Changing the Tile to Display
Advanced Cell-Based Animation
Examining the Tile Sheet
Creating an Animation Array
Choosing the Tile to Display
Looping Through the Tiles
Drawing the Tile
Moving the Image Across the Canvas
Applying Rotation Transformations to an Image
Canvas Transformation Basics
Animating a Transformed Image
Creating a Grid of Tiles
Defining a Tile Map
Creating a Tile Map with Tiled
Displaying the Map on the Canvas
Zooming and Panning an Image
Creating a Window for the Image
Drawing the Image Window
Panning the Image
Table of Contents | ix
Zoom and Pan the Image
Application: Controlled Pan and Zoom
Pixel Manipulation
The Canvas Pixel Manipulation API
Application Tile Stamper
Copying from One Canvas to Another
What’s Next
Math, Physics, and Animation
Moving in a Straight Line
Moving Between Two Points: The Distance of a Line
Moving on a Vector
Bouncing Off Walls
Bouncing a Single Ball
Multiple Balls Bouncing Off Walls
Multiple Balls Bouncing with a Dynamically Resized Canvas
Multiple Balls Bouncing and Colliding
Multiple Balls Bouncing with Friction
Curve and Circular Movement
Uniform Circular Motion
Moving in a Simple Spiral
Cubic Bezier Curve Movement
Moving an Image
Creating a Cubic Bezier Curve Loop
Simple Gravity, Elasticity, and Friction
Simple Gravity
Simple Gravity with a Bounce
Gravity with Bounce and Applied Simple Elasticity
Simple Gravity, Simple Elasticity, and Simple Friction
Easing Out (Landing the Ship)
Easing In (Taking Off)
What’s Next?
Mixing HTML5 Video and Canvas
HTML5 Video Support
Theora + Vorbis = ogg
H + $$$ = mp
VP + Vorbis = webm
Combining All Three
Converting Video Formats
Basic HTML5 Video Implementation
Plain-Vanilla Video Embed
x | Table of Contents
Video with Controls, Loop, and Autoplay
Altering the Width and Height of the Video
Preloading Video in JavaScript
A Problem with Events and Embedded Video in HTML5
Video and the Canvas
Displaying a Video on HTML5 Canvas
HTML5 Video Properties
Video on the Canvas Examples
Using the currentTime Property to Create Video Events
Canvas Video Transformations: Rotation
Canvas Video Puzzle
Creating Video Controls on the Canvas
Animation Revisited: Moving Videos
What’s Next?
Working with Audio
The Basic Tag
Audio Formats
Supported Formats
Example: Using All Three Formats
Audio Tag Properties, Functions, and Events
Audio Functions
Important Audio Properties
Important Audio Events
Loading and Playing the Audio
Displaying Attributes on the Canvas
Playing a Sound with No Audio Tag
Dynamically Creating an Audio Element in JavaScript
Finding the Supported Audio Format
Playing the Sound
Look Ma, No Tag!
Creating a Canvas Audio Player
Creating Custom User Controls on the Canvas
Loading the Button Assets
Setting Up the Audio Player Values
Mouse Events
Sliding Play Indicator
Play/Pause Push Button: Hit Test Point Revisited
Loop/No Loop Toggle Button
Click-and-Drag Volume Slider
Case Study in Audio: Space Raiders Game
Why Sounds in Apps Are Different: Event Sounds
Table of Contents | xi
Space Raiders Game Structure
Iteration #: Playing Sounds Using a Single Object
Iteration #: Creating Unlimited Dynamic Sound Objects
Iteration #: Creating a Sound Pool
Iteration #: Reusing Preloaded Sounds
What’s Next
Canvas Game Essentials
Why Games in HTML5?
Canvas Compared to Flash
What Does Canvas Offer?
Our Basic Game HTML5 File
Our Game’s Design
Game Graphics: Drawing with Paths
Needed Assets
Using Paths to Draw the Game’s Main Character
Animating on the Canvas
Game Timer Loop
The Player Ship State Changes
Applying Transformations to Game Graphics
The Canvas Stack
Game Graphic Transformations
Rotating the Player Ship from the Center
Alpha Fading the Player Ship
Game Object Physics and Animation
How Our Player Ship Will Move
Controlling the Player Ship with the Keyboard
Giving the Player Ship a Maximum Velocity
A Basic Game Framework
The Game State Machine
The Update/Render (Repeat) Cycle
The FrameRateCounter Object Prototype
Putting It All Together
Geo Blaster Game Structure
Geo Blaster Global Game Variables
The player Object
Geo Blaster Game Algorithms
Arrays of Logical Display Objects
Level Knobs
Level and Game End
Awarding the Player Extra Ships
Applying Collision Detection
xii | Table of Contents
The Geo Blaster Basic Full Source
Rock Object Prototype
What’s Next
Combining Bitmaps and Sound
Geo Blaster Extended
Geo Blaster Tile Sheet
Rendering the Other Game Objects
Adding Sound
Pooling Object Instances
Adding in a Step Timer
Geo Blaster Extended Full Source
Creating a Dynamic Tile Sheet at Runtime
A Simple Tile-Based Game
Micro Tank Maze Description
The Tile Sheet for Our Game
The Playfield
The Player
The Enemy
The Goal
The Explosions
Turn-Based Game Flow and the State Machine
Simple Tile Movement Logic Overview
Rendering Logic Overview
Simple Homegrown AI Overview
Micro Tank Maze Complete Game Code
What’s Next
Mobilizing Games with PhoneGap
Going Mobile!
Introducing PhoneGap
The Application
The Code
Examining the Code for BSBingohtml
The Application Code
Creating the iOS Application with PhoneGap
Installing Xcode
Installing PhoneGap
Creating the BS Bingo PhoneGap Project in Xcode
Testing the New Blank Application in the Simulator
Integrating BS Bingo into the Project
Setting the Orientation
Changing the Banner and Icon
Table of Contents | xiii
Testing on the Simulator
Adding in an iPhone “Gesture”
Adding the Gesture Functions to indexhtml
Testing on a Device
Using Xcode to Target a Test Device
Beyond the Canvas
What’s Next
Further Explorations
D with WebGL
What Is WebGL?
How Do I Test WebGL?
How Do I Learn More About WebGL?
What Does a WebGL Application Look Like?
Full Code Listing
Further Explorations with WebGL
WebGL JavaScript Libraries
Multiplayer Applications with ElectroServer
Installing ElectroServer
The Basic Architecture of a Socket-Server Application
The Basic Architecture of an ElectroServer Application
Creating a Chat Application with ElectroServer
Testing the Application in Google Chrome
Further Explorations with ElectroServer

These tutorials are copyrights to and licensed for
personal use only.

online, once ordering you will get links to down-load the tutorials to your PC.