
Introducing JavaScript Game Development
Build a 2D Game from the Ground Up
Graeme Stuart(Author)
APress
Published on 7. December 2017
Book
Paperback/Softback
XI, 209 pages
978-1-4842-3251-4 (ISBN)
Description
Learn to build a fully-functional 2D game inspired by the 1979 Atari classic, Asteroids, using just HTML5, CSS and JavaScript. Developing games has never been easier than it is now. New web technology allows even beginner developers to turn their hand to game development. Developed from an undergraduate course module,
Introducing JavaScript Game Development
teaches each new technology as it is introduced so can be followed by enthusiastic beginners as well as intermediate coders.
You will learn how to work with HTML5 and the canvas element, how to understand paths, how to draw to a design and create your spaceship and asteroids. You'll then move on to animating your game, and finally building. You will work step-by-step through the game design process, starting with only what is necessary to complete each step, and refactoring the code as necessary along the way, reflecting the natural progression that code follows in the real world. Each chapter is designed to take yourcode base to the next level and to add to your skills. After completing the examples in this book you will have the tools necessary to build your own, high-quality games.
Make the process of creating object-oriented 2D games more fun and more productive and get started on your game development journey.
More details
Edition
1st ed.
Language
English
Place of publication
Berkeley
United States
Target group
Professional and scholarly
Illustrations
8 s/w Abbildungen, 45 farbige Abbildungen
XI, 209 p. 53 illus., 45 illus. in color.
Dimensions
Height: 235 mm
Width: 155 mm
Thickness: 13 mm
Weight
347 gr
ISBN-13
978-1-4842-3251-4 (9781484232514)
DOI
10.1007/978-1-4842-3252-1
Schweitzer Classification
Other editions
Additional editions

E-Book
12/2017
APress
€46.99
Available for download
Person
Graeme Stuart
is a self-taught developer mainly building web-based applications using JavaScript and Python. He's has a PhD in energy management and much of his programming skill was originally developed to this end. He currently teaches JavaScript games programming to first year undergraduates.
Content
Section 1. Drawing.- 1. HTML5 and the Canvas Element.- 2. Understand Paths.- 3. Drawing to a Design.- 4. Drawing a Spaceship.- 5. Drawing an Asteroid.- Section 2. Animation.- 6. Basic Animation.- 7. Animating Asteroids.- 8. Practicing Objects.- 9. Inheritance.- Section 3. Building the Game.- 10. Simple Keyboard Interaction.- 11. Controlling the Ship.- 12. Collision Detection.- 13. Death or Glory.