Abstract
This chapter deals with adapting games to different devices. Until now, you’ve been developing examples that will only work on devices that have a keyboard and a mouse, such as laptop or desktop machines. One of the nice things about JavaScript programs is that they also run on smartphones and tablets, which currently is a booming market. Making your games run on such platforms will result in a lot of extra players for your games. In order to play games on smartphones or tablets, you need to handle touch input, in a way very similar to dealing with keyboard and mouse input.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Arjan Egges
About this chapter
Cite this chapter
Egges, A. (2014). Adapting to Different Devices. In: Building JavaScript Games. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6539-9_13
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6539-9_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6538-2
Online ISBN: 978-1-4302-6539-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books