Game Programming with Code Angel

Learn how to code in Python on Raspberry Pi or PC

  • Mark Cunningham

Table of contents

  1. Front Matter
    Pages i-xiii
  2. Mark Cunningham
    Pages 1-8
  3. Mark Cunningham
    Pages 9-24
  4. Mark Cunningham
    Pages 25-31
  5. Mark Cunningham
    Pages 33-47
  6. Mark Cunningham
    Pages 49-60
  7. Mark Cunningham
    Pages 61-70
  8. Mark Cunningham
    Pages 71-85
  9. Mark Cunningham
    Pages 87-99
  10. Mark Cunningham
    Pages 101-108
  11. Mark Cunningham
    Pages 109-117
  12. Mark Cunningham
    Pages 127-138
  13. Mark Cunningham
    Pages 139-147
  14. Mark Cunningham
    Pages 149-159
  15. Mark Cunningham
    Pages 161-171
  16. Back Matter
    Pages 173-177

About this book


Program in Python on a Raspberry Pi or PC by developing six computer games. Each game project is split into several chapters of the book. Rather than taking you through programming techniques as standalone concepts, this book explains concepts as they are used within a game.

You'll learn about variables; integer, real, Boolean and string data types; conditional if statements; fixed loops and conditional loops; modularity; arrays and lists; and predefined functions. You’ll also discover the PyGame library, which is popularly used in the development of 2D games.

Key programming concepts are revisited in subsequent projects in the book to consolidate prior learning. Beyond teaching you how to code, this book explains the programming logic behind each project—exemplifying the process of designing and writing a computer game.

All the projects in this book are supported by Code Angel ( Code Angel Code Angel largely serves students and new developers and the projects work by encouraging you to ‘Learn…then play’. Taking this approach, you'll be able to build fun 2D games and enjoy playing them by yourself or with friends. Developing games in this way keeps you engaged, gives a purpose as you work through each project, and offers a sense of achievement when each game is finished.


code coding Raspberry Pi Python game programming game development graphics PyGame

Authors and affiliations

  • Mark Cunningham
    • 1
  1. 1.EdinburghUK

Bibliographic information

Industry Sectors
IT & Software