© Graeme Stuart 2017

Graeme Stuart, Introducing JavaScript Game Development , https://doi.org/10.1007/978-1-4842-3252-1_1

1. HTML5 and the Canvas Element

Graeme Stuart

(1)Market Harborough, Leicestershire, UK

This chapter introduces some of the basics of HTML, CSS, and JavaScript. These are the core web technologies, and we’ll use them for developing our game throughout this book. In order to follow along, you’ll need a text editor to generate text files and a web browser to view the results with.

You won’t be learning everything there is to know about these technologies. We’ll focus on just enough to draw some stuff on an HTML canvas element. We’ll work with the HTML canvas element throughout this book, so pay attention.

HTML Primer

HTML (HyperText ...

Get Introducing JavaScript Game Development : Build a 2D Game from the Ground Up now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.