jQuery Game Development Essentials

Your knowledge of JavaScript and jQuery is just about all you need to start creating some stunning browser-based games. This guide shows you how, from the basics to advanced techniques. Whatever the genre, this is the book for you.
Preview in Mapt

jQuery Game Development Essentials

Selim Arsever

Your knowledge of JavaScript and jQuery is just about all you need to start creating some stunning browser-based games. This guide shows you how, from the basics to advanced techniques. Whatever the genre, this is the book for you.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


jQuery Game Development Essentials Book Cover
jQuery Game Development Essentials
$ 26.99
$ 18.90
jQuery Mobile Web Development Essentials - Third Edition Book Cover
jQuery Mobile Web Development Essentials - Third Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $27.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781849695060
Paperback244 pages

Book Description

jQuery is a leading multi-browser JavaScript library that developers across the world utilize on a daily basis to help simplify client-side scripting. Using the friendly and powerful jQuery to create games based on DOM manipulations and CSS transforms allows you to target a vast array of browsers and devices without having to worry about individual peculiarities.

"jQuery Game Development Essentials" will teach you how to use the environment, language, and framework that you’re familiar with in an entirely new way so that you can create beautiful and addictive games. With concrete examples and detailed technical explanations you will learn how to apply game development techniques in a highly practical context.

This essential reference explains classic game development techniques like sprite animations, tile-maps, collision detection, and parallax scrolling in a context specific to jQuery. In addition, there is coverage of advanced topics specific to creating games with the popular JavaScript library, such as integration with social networks alongside multiplayer and mobile support. jQuery Game Development Essentials will take you on a journey that will utilize your existing skills as a web developer so that you can create fantastic, addictive games that run right in the browser.

Table of Contents

Chapter 1: jQuery for Games
The way of jQuery
Moving things around
Handling of events
Associating data with DOM elements
Manipulating the DOM
Stay curious my friend!
Summary
Chapter 2: Creating Our First Game
How does this book work?
Let's get serious – the game
Learning the basics
Initializing the game
Main loop
Collision detection
Summary
Chapter 3: Better, Faster, but not Harder
Intervals and timeouts
Keyboard polling
HTML fragments
Avoiding reflow
Moving your sprite around using CSS Transforms
Using requestAnimationFrame instead of timeouts
Summary
Chapter 4: Looking Sideways
Offline divs
Groups
Sprite transformation
Tile maps
Collision detection
Coding the game
Basic setup of the game screen
Object-oriented code for the player
Player control
Parallax scrolling
Creating enemies
Summary
Chapter 5: Putting Things into Perspective
Optimizing tile maps for top-down games
Sorting the occlusion
Collision detection
The complete game
Isometric tiles
Summary
Chapter 6: Adding Levels to Your Games
Implementing a multi-file game
Modifying our platform game
Summary
Chapter 7: Making a Multiplayer Game
World of Ar'PiGi
Managing the player's account
Keeping the players in sync
Taking care of monsters
Summary
Chapter 8: Let's Get Social
Creating a simple leaderboard
Making cheating harder
Integrating with Twitter
Integrating with Facebook
Summary
Chapter 9: Making Your Game Mobile
Making your game run well on mobile devices
Touch control
Integrating our game with the springboard
Using device orientation
Using the offline application cache
Using web storage
Summary
Chapter 10: Making Some Noise
Abstracting audio
Embedding sound
HTML5 Audio element
Web Audio API
Flash fallbacks
Generating sound effects
Summary

What You Will Learn

  • Create sprite-based, multi-platform games using the latest web standards and jQuery
  • Use powerful techniques directly from the games industry to make your own games harness stunning visual effects without compromising on performance
  • Learn how you can develop real-time multiplayer games and integrate them with social networks
  • Overcome the limitations of mobile browsers allowing you to take full advantage of their various features with minimum hassle
  • Develop a platformer, an arcade game, or even your very own RPG with jQuery at the core
  • Discover how you can easily implement features like parallax scrolling
  • Utilize your existing skills in jQuery in a fun and exciting new context

Authors

Table of Contents

Chapter 1: jQuery for Games
The way of jQuery
Moving things around
Handling of events
Associating data with DOM elements
Manipulating the DOM
Stay curious my friend!
Summary
Chapter 2: Creating Our First Game
How does this book work?
Let's get serious – the game
Learning the basics
Initializing the game
Main loop
Collision detection
Summary
Chapter 3: Better, Faster, but not Harder
Intervals and timeouts
Keyboard polling
HTML fragments
Avoiding reflow
Moving your sprite around using CSS Transforms
Using requestAnimationFrame instead of timeouts
Summary
Chapter 4: Looking Sideways
Offline divs
Groups
Sprite transformation
Tile maps
Collision detection
Coding the game
Basic setup of the game screen
Object-oriented code for the player
Player control
Parallax scrolling
Creating enemies
Summary
Chapter 5: Putting Things into Perspective
Optimizing tile maps for top-down games
Sorting the occlusion
Collision detection
The complete game
Isometric tiles
Summary
Chapter 6: Adding Levels to Your Games
Implementing a multi-file game
Modifying our platform game
Summary
Chapter 7: Making a Multiplayer Game
World of Ar'PiGi
Managing the player's account
Keeping the players in sync
Taking care of monsters
Summary
Chapter 8: Let's Get Social
Creating a simple leaderboard
Making cheating harder
Integrating with Twitter
Integrating with Facebook
Summary
Chapter 9: Making Your Game Mobile
Making your game run well on mobile devices
Touch control
Integrating our game with the springboard
Using device orientation
Using the offline application cache
Using web storage
Summary
Chapter 10: Making Some Noise
Abstracting audio
Embedding sound
HTML5 Audio element
Web Audio API
Flash fallbacks
Generating sound effects
Summary

Book Details

ISBN 139781849695060
Paperback244 pages
Read More

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
HTML5 Games Development by Example: Beginner’s Guide Book Cover
HTML5 Games Development by Example: Beginner’s Guide
$ 26.99
$ 18.90
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Responsive Web Design by Example : Beginner's Guide Book Cover
Responsive Web Design by Example : Beginner's Guide
$ 26.99
$ 18.90
Learning jQuery - Fourth Edition Book Cover
Learning jQuery - Fourth Edition
$ 23.99
$ 4.80