(Canvas is one of the new elements of HTML5. It is used to draw graphics on Web pages. It is equivalent to embedding a canvas in HTML, which is convenient for graphic operation directly on HTML, and has great application value. If we master the method of drawing with canvas, we can get twice the result with half the effort when developing the game. This book will gradually unveil the veil of canvas and help readers get started quickly and master the usage of canvas. This book not only introduces the basic API of HTML5 canvas, but also focuses on how to use object-oriented programming ideas in JavaScript for game development. At the same time, the book also explains in detail how to use HTML5 canvas to make various common types of games, such as stone, scissors, paper, Tetris "If you are a man, go down to the next hundred layers", etc. in the process of introducing each game development, it will cover game analysis, development process, source code analysis and summary, so as to help readers quickly and deeply understand the complete steps of each game. Type game development allows readers to deeply grasp the development ideas and design skills of various games.)