About the Author
Makzan is the founder of 42games Limited. He has been designing games since he was a child. He likes to see how the well-designed interactions in his games can trigger the emotions and influence the player. He believes that games should let a player share joyful times with friends. Therefore, his favorite game type is multiplayer casual games.
Makzan also wrote a book named Flash Multiplayer Virtual World . It is about developing a virtual world to play with friends in real time with Adobe Flash and socket server.
I would like to thank the entire team from Packt Publishing. The book would not have been possible without the help from all the editors and proofreaders. I thank all the reviewers for providing useful comments from which I have learned a lot. I thank my family for giving me support during the book writing process.
About the Reviewers
Matteo Ferretti is a software engineer, an amateur comic-book artist, and an occasional graphic designer, who was drawn into software development since he played his first video game.
He fell in love with JavaScript at the end of the 20th century, and he still loves it with the same passion.
Currently he is working for Mozilla, after more than two years in TomTom as a Senior Software Engineer and Tech Leader.
I wish to thank my love, Elisa, for her patience and understanding. I also want to thank my parents, for their continuous support throughout my whole life.
Henk Jurriens is a software developer and developer evangelist, experienced with Java, Groovy and Grails, and HTML5. Henk is passionate about new technologies and loves to talk about it, and so gives different presentations about HTML5, Linked Data, and Groovy and Grails.
In addition, Henk founded an HTML5 User Group to promote and share knowledge about HTML5. During the year, different meetups are organized. Together with the Google Technology User Group, he organized for example, a HTML5 Hackathon.
Last year, Henk also helped with a HTML5 Game Jam and there he saw the potential of HTML5 Games and this was the reason for him to review this book. With the help of this book, great HTML5 games can be built!
William Malone is a software developer specializing in dialects of ECMAScript (ActionScript and JavaScript). He has written many articles about Flash and HTML5 which are available at http://www.williammalone.com.
www.PacktPub.com
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why Subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print and bookmark content
- On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Preface
HTML5 promises to be the hot new platform for online games. HTML5 games work on computers, smartphones, and tablets, including iPhones and iPads. Be one of the first developers to build HTML5 games today and be ready for tomorrow!
This book will show you how to use the latest HTML5 and CSS3 web standards to build card games, drawing games, physics games, and even multiplayer games over the network. With this book, you will build six example games with clear systematic tutorials.
HTML5, CSS3, and the related JavaScript API are the latest hot topics in web. These standards bring us the new game market, HTML5 Games. With the new power from them, we can design games with HTML5 elements, CSS3 properties, and JavaScript to play in browsers.
This book is divided into nine chapters with each one focusing on one topic. We will create six games and specifically learn how we draw game objects, animate them, add audio, connect players, and build a physics game with a Box2D physics engine.
What this book covers
, Introducing HTML5 Games , introduces the new features from HTML5, CSS3, and related JavaScript API. It also demonstrates what games we can make with these features and its benefits.
, Getting Started with DOM-based Game Development , kick-starts the game development journey by creating a traditional Ping Pong game in DOM and jQuery.
, Building Memory Matching Game in CSS3 , walks through the new features from CSS3 and discusses how we can create a memory card matching game in DOM and CSS3.
, Building Untangle Game with Canvas and Drawing API , introduces a new way to draw games and interact with them in a web page with the new Canvas element. It also demonstrates how to build a puzzle solving game with Canvas.
, Building a Canvas Game Masterclass