Skip to Main Content
Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas
book

Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas

by Dev Ramtal, Adrian Dobre
June 2014
Intermediate to advanced content levelIntermediate to advanced
508 pages
15h 11m
English
Apress
Content preview from Physics for JavaScript Games, Animation, and Simulations: with HTML5 Canvas

CHAPTER 2

image

JavaScript and HTML5 Canvas Basics

This chapter gives a brief review of the elements of JavaScript and HTML5 that we will make the most use of in the rest of this book. It is not meant to be a comprehensive tutorial on JavaScript; instead, it is a summary of what you need to know to understand the code examples in the book. The other aim of this chapter is to cover relevant aspects of the HTML5 canvas element and JavaScript that will set the context for applying physics.

This chapter was written with the assumption that the reader has at least a basic knowledge of HTML and JavaScript. If you are an experienced JavaScript programmer, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Building a 2D Game Physics Engine: Using HTML5 and JavaScript

Michael Tanaya, Huaming Chen, Jebediah Pavleas, Kelvin Sung

Publisher Resources

ISBN: 9781430263371Purchase book