Skip to Content
Practical Game Design
book

Practical Game Design

by Adam Kramarzewski, Ennio De Nucci
April 2018
Beginner content levelBeginner
476 pages
14h 4m
English
Packt Publishing
Content preview from Practical Game Design

Analog input

Analog input can return one or more continuous values. The most popular example would be an analog stick found on any modern console controller. When a stick is tilted, the controller tracks separate values for up/down and left/right positions as well as the degree of the tilt. The formatting could look like this: (0, -1) for a stick that's turned left all the way, (-0.5, 0.3) for a stick that's tilted down halfway and 30% to the right. This allows for more subtle and natural control over things like movement or cursor speed.

Just because the controller grants you access to continuous states does not mean you should always use them. You could program the game to detect simple up and down states based on a single value, a tilt ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Game Design - Second Edition

Practical Game Design - Second Edition

Adam Kramarzewski, Ennio De Nucci
Game Design Essentials

Game Design Essentials

Briar Lee Mitchell
Designing Games

Designing Games

Tynan Sylvester

Publisher Resources

ISBN: 9781787121799Other