Skip to main content
  • Book
  • © 2016

Python, PyGame and Raspberry Pi Game Development

Apress

Authors:

  • A first of its kind book on Python, PyGame and Raspberry Pi

  • Includes three fully functioning game application examples

  • Shows readers how to build games as templates such as Bricks, Snake, and Invaders

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (21 chapters)

  1. Front Matter

    Pages i-xviii
  2. What Is a Programming Language?

    • Sloan Kelly
    Pages 1-2
  3. What Is Python?

    • Sloan Kelly
    Pages 3-5
  4. Introducing Python

    • Sloan Kelly
    Pages 7-21
  5. Breaking Free from the Interpreter

    • Sloan Kelly
    Pages 23-25
  6. Making Decisions

    • Sloan Kelly
    Pages 27-35
  7. Making the Raspberry Pi Repeat Itself

    • Sloan Kelly
    Pages 37-41
  8. Containers

    • Sloan Kelly
    Pages 43-51
  9. Introduction to IDLE under LXDE

    • Sloan Kelly
    Pages 53-57
  10. Basic Introduction to PyGame

    • Sloan Kelly
    Pages 59-65
  11. Designing Your Game

    • Sloan Kelly
    Pages 67-71
  12. Game Project: Bricks

    • Sloan Kelly
    Pages 73-85
  13. User-Defined Functions

    • Sloan Kelly
    Pages 87-94
  14. File Input and Output

    • Sloan Kelly
    Pages 95-97
  15. Introducing Object-Oriented Programming

    • Sloan Kelly
    Pages 99-108
  16. Inheritance, Composition, and Aggregation

    • Sloan Kelly
    Pages 109-116
  17. Game Project: Snake

    • Sloan Kelly
    Pages 117-139
  18. Model View Controller

    • Sloan Kelly
    Pages 141-151
  19. Sound

    • Sloan Kelly
    Pages 153-154
  20. Finite State Machines

    • Sloan Kelly
    Pages 155-162

About this book

Gain the basics of Python and use PyGame to create fast-paced video games with great graphics and sounds. You'll also learn about object oriented programming (OOP) as well as design patterns like model-view-controller (MVC) and finite state machines (FSMs).

Python, PyGame and Raspberry Pi Game Development teaches you how to use Python and PyGame on your computer. Whether you use Windows, macOS, Linux, or a Raspberry Pi you can unleash the power of Python and PyGame to create great looking games. Included in the text are complete code listings and explanations for "Bricks," "Snake" and "Invaders"-- three fully-working games. These allow you to get started making your own great games. Modify them or build your own exciting titles.




What You'll Learn  


  • Gain the basics of Python and employ it for game development
  • Design your game
  • Build games using game projects as templates like Bricks, Snake, and Invaders
  • Work with user defined functions, inheritance, composition, and aggregation
  • Add sound to your games
  • Implement finite state machines 





Who This Book Is For
Experienced coders or game developers new to Python, PyGame and Raspberry Pi. This book is also for makers interested in getting into game development.



Authors and Affiliations

  • Niagara Falls, Canada

    Sloan Kelly

About the author

Sloan Kelly is an experienced software developer with over 18 years of progressive experience. Hands-on professional with a proven record of success and delivery.  Skills include C#, C/C++, Unity3D, Windows Presentation Foundation (WPF/MVVM), Windows Communication Foundation (WCF), Managed Extensibility Framework (MEF), DirectX, XNA, Collada, Java, HTML, CSS, JavaScript, XML.

Bibliographic Information

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access