Book Image

Kivy - Interactive Applications and Games in Python

By : Roberto Ulloa
Book Image

Kivy - Interactive Applications and Games in Python

By: Roberto Ulloa

Overview of this book

Table of Contents (13 chapters)
Kivy – Interactive Applications and Games in Python Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Shooter – multi-touch control


Kivy supports multi-touch interactions. This feature is always present but we haven't paid too much attention to it except when we used the Scatter widget in Chapter 4, Improving the User Experience. Additionally, we didn't clarify that the entire screen and GUI components are already capable of multi-touch, and that Kivy handles the events accordingly.

Note

Kivy handles multi-touch actions internally. This means that all the Kivy widgets and components support multi-touch interaction; we don't have to worry about it. Kivy solves all the possible conflicts of ambiguous situations that are common in multi-touch control, for example, touching two buttons at the same time.

That said, it is up to us to control particular implementations. Multi-touch programming introduces logic problems that we need to solve as developers. Nevertheless, Kivy provides the data related to each particular touch so we can work on the logic. The main problem is that we need to constantly...