I have been offered the chance to review this book by FriendsOfEd.
No experience with programming languages is needed to get started with this book.
The book promises to teach you the canvas element, audio and video implementation, event handling, form input validation and the usage of information storing. These are all new functions in HTML5.
Chapter two starts with the basics of the game you’re going to program – a simple dice rolling game. It explains the rules and how to write these in a programmers way. Next step is programming these functions followed by drawing the dice using the canvas element. Next is adding a second dice and programming this into the already existing code.
Creating a game with a bouncing ball and collision is the main target in chapter three. This chapter explains how to draw a ball and walls using the canvas element, create the game logics (including the collision engine) and using form input validation.
The second game is slingshot. The difference compared to cannonball is that this uses mouse moments to aim, and the target is an image.
The seventh chapter teaches how to create a game where you can draw walls and create mazes. This game uses HTML5`s local storage API. In the first part of the game the walls are drawn, in the second part you have to move a ball through this maze.
Chapter nine explains how to create your own browser-based hangman game. The game uses the same codes as in previous chapters to create a game, and includes some new CSS styles and functions.
The last game of this book is blackjack – another card game. The chapter starts with explaining the footer and header tags and includes new game logics and more canvas features.
After reading the book, everything explained in the book was clear to me, and I had no questions.
What I really liked about the book is that every single line of code is explained. Every? Yes every line, but only once or twice. This makes sure that you fully understand the thing your programming.
If you want to learn HTML5 and CSS3 from the scratch I recommend that you take a look at Beginning HTML5 and CSS3: Next Generation Web Standards.
More information about this book can be found at the publishers site.
Paperback: 376 pages
Publisher: Apress; 1 edition (November 2, 2010)
Product Dimensions: 9.2 x 7.4 x 1.1 inches