The essential guide to HTML5 : using games to learn HTML5 and JavaScript /
Gain a deep, practical knowledge of the basic tools used for webpages: hypertext markup language (HTML5), cascading style sheets (CSS), and JavaScript. This updated version includes new and improved games and exercises, and will serve total beginners as well as people with some programming language...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[New York, New York] :
Apress,
[2022]
|
Edición: | Third edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Intro
- Table of Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: The Basics
- Keywords
- Introduction
- Critical Requirements
- HTML5, CSS, and JavaScript Features
- Basic HTML Structure and Tags
- Using Cascading Style Sheets
- JavaScript Programming
- Using a Text Editor
- Building the Applications
- Testing and Uploading the Application
- Summary
- Chapter 2: Dice Game
- Introduction
- Critical Requirements
- HTML5, CSS, and JavaScript Features
- Pseudorandom Processing and Mathematical Expressions
- Variables and Assignment Statements
- Programmer-Defined Functions
- Conditional Statements: if and switch
- Drawing on the Canvas
- Displaying Text Output Using a Form
- Building the Application and Making It Your Own
- Throwing a Single Die
- Throwing Two Dice
- The Complete Game of Craps
- Making the Application Your Own
- Testing and Uploading the Application
- Summary
- Chapter 3: Bouncing Ball
- Introduction
- Critical Requirements
- HTML5, CSS, and JavaScript Features
- Drawing a Ball or an Image or Images
- Gradients with a Side Trip to Explain Arrays
- Setting Up a Timing Event
- Calculating a New Position and Collision Detection
- Starting, Positioning and Restarting the video with use of an anonymous function
- Validation
- Stopping and Resuming Animation Triggered by Buttons
- HTML Page Reload
- Preloading Images
- Building the Application and Making It Your Own
- Testing and Uploading the Application
- Summary
- Chapter 4: Cannonball and Slingshot
- Introduction
- Critical Requirements
- HTML5, CSS, and JavaScript Features
- Arrays and Programmer-Defined Objects
- Rotations and Translations for Drawing
- Drawing Line Segments
- Mouse Events for Pulling on the Slingshot
- Changing the List of Items Displayed Using Array Splice
- Distance Between Points
- Building the Application and Making It Your Own
- Cannonball: With Cannon, Angle, and Speed
- Slingshot: Using a Mouse to Set Parameters of Flight
- Testing and Uploading the Application
- Summary
- Chapter 5: The Memory (aka Concentration) Game
- Introduction
- Critical Requirements
- HTML5, CSS, JavaScript Features
- Representing Cards
- Using Date for Timing
- Providing a Pause
- Drawing Text
- Drawing Polygons
- Shuffling Cards
- Implementing Clicking on a Card
- Preventing Certain Types of Cheating
- Building the Application and Making It Your Own
- Testing and Uploading the Application
- Summary
- Chapter 6: Quiz
- Introduction
- Critical Requirements for a Quiz Game
- HTML5, CSS, and JavaScript Features
- Storing and Retrieving Information in Arrays
- Creating HTML During Program Execution
- Using CSS in the Style Element
- Responding to Player Moves
- Presenting Audio and Video
- Checking the Player's Answer
- Building the Application and Making It Your Own