Kivy – Interactive Applications and Games in Python - Second Edition
eBook - ePub

Kivy – Interactive Applications and Games in Python - Second Edition

Roberto Ulloa

Compartir libro
  1. 206 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Kivy – Interactive Applications and Games in Python - Second Edition

Roberto Ulloa

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

About This Book

  • Utilize the power of Kivy to develop applications that run on all the major platforms
  • Build user interfaces (UI) and control multi-touch events to improve the user experience (UX)
  • A comprehensive tutorial with simplified code and lots of tips and tricks

Who This Book Is For

If you are a Python developer who wants to create exciting and dynamic UI/UX applications that are compatible with multiple platforms, then this is the book for you. No prior experience with Kivy is required, although you should be familiar with Python and have a fair understanding of software engineering concepts such as inheritance, classes, and instances.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Kivy – Interactive Applications and Games in Python - Second Edition un PDF/ePUB en línea?
Sí, puedes acceder a Kivy – Interactive Applications and Games in Python - Second Edition de Roberto Ulloa en formato PDF o ePUB, así como a otros libros populares de Informatique y Programmation en Python. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781785284380
Edición
2
Categoría
Informatique

Kivy – Interactive Applications and Games in Python Second Edition


Table of Contents

Kivy – Interactive Applications and Games in Python Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. GUI Basics – Building an Interface
Basic interface – Hello World!
Basic widgets – labels and buttons
Layouts
Embedding layouts
PageLayout – swiping pages
Our project – Comic Creator
Summary
2. Graphics – the Canvas
Understanding the canvas
Drawing basic shapes
Adding images, colors, and backgrounds
Structuring graphic instructions
Rotating, translating, and scaling the coordinate space
Comic Creator: PushMatrix and PopMatrix
Summary
3. Widget Events – Binding Actions
Attributes, ID, and root
Basic widget events – dragging the stickman
Localizing coordinates – adding stickmen
Binding and unbinding events – sizing limbs and heads
Binding events in the Kivy language
Creating your own events – the magical properties
Kivy and its properties
Summary
4. Improving the User Experience
ScreenManager – selecting colors for the figures
Color control on the canvas – coloring figures
StencilView – limiting the drawing space
Scatter – multi-touching to drag, rotate, and scale
Recording gestures – line, circle, and cross
Recognizing gestures – drawing with the finger
Behaviors – enhancing widget's functionality
Style – decorating the interface
Factory – replacing a vertex instruction
Summary
5. Invaders Revenge – an Interactive Multi-touch Game
Invaders Revenge – an animated multi-touch game
Atlas – An efficient management of images
Boom – simple sound effects
Ammo – simple animation
Invader – transitions for animations
Dock – automatic binding in the Kivy language
Fleet – infinite concatenation of animations
Scheduling events with the clock
Shooter – multi-touch control
Invasion – moving the shooter with the keyboard
Combining animations with '+' and '&'
Summary
6. Kivy Player – a TED Video Streamer
Video – play, pause, and stop
AsyncImage – creating a cover for the video
Subtitles – tracking the video progression
Control bar – adding buttons to control the video
Slider – including a progression bar
Animation – hiding a widget
Kivy inspector – debugging interfaces
ActionBar – a responsive bar
LoadDialog – displaying a directory of files
ScrollView – displaying a list of videos
Search – query the TED Developer API
Summary
Index

Kivy – Interactive Applications and Games in Python Second Edition

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: September 2013
Second edition: June 2015
Production reference: 1240615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-692-6
www.packtpub.com

Credits

Author
Roberto Ulloa
Reviewers
Takumi Adachi
Philip Bjorge
Joe Dorocak
Vijay Mahrra
Edward C. Delaporte V
Commissioning Editor
Nadeem N. Bagban
Acquisition Editor
Nikhil Karkal
Content Development Editor
Amey Varangaonkar
Technical Editor
Ankur Ghiye
Copy Editor
Adithi Shetty
Project Coordinator
Suzanne Coutinho
Proofreader
Safis Editing
Indexer
Priya Sane
Graphics
Sheetal Aute
Disha Haria
Jason Monteiro
Production Coordinator
Nitesh Thakur
Cover Work
Nitesh Thakur

About the Author

Roberto Ulloa has a diverse academic record in multiple disciplines within the field of computer science. Currently, he is working with artificial societies as part of his PhD thesis at the University of Western Ontario. He obtained an MSc degree from the University of Costa Rica and taught programming and computer networking there. He has earned a living as a web developer, working with Python/Django and PHP/Wordpress. He collaborates with various researchers while also working on his own projects, including his blog (http://robertour.com). He constantly worries that the Internet has already become aware of itself and that we are not able to communicate with it because of the improbability of it being able to speak any of the 6,000-plus odd human languages that exist on the planet.

Índice