Skip to main content
  • Book
  • © 2020

Game Programming with Code Angel

Learn how to code in Python on Raspberry Pi or PC

Apress

Authors:

  • Learn computer science concepts and Python programming via six engaging games
  • Gain an understanding of how to design and write your own computer games
  • Take your development further with the Code Angel website
  • 19k Accesses

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

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 (15 chapters)

  1. Front Matter

    Pages i-xiii
  2. Introduction

    • Mark Cunningham
    Pages 1-8
  3. Forest Bomber part 1: A first level

    • Mark Cunningham
    Pages 9-24
  4. Forest Bomber part 2: Is it a bird…?

    • Mark Cunningham
    Pages 25-31
  5. Forest Bomber part 3: Bombs away…

    • Mark Cunningham
    Pages 33-47
  6. Forest Bomber part 4: Wrapping it up

    • Mark Cunningham
    Pages 49-60
  7. Snapper part 1: In the woods

    • Mark Cunningham
    Pages 61-70
  8. Snapper part 2: Say cheese

    • Mark Cunningham
    Pages 71-85
  9. Snapper part 3: Snapped

    • Mark Cunningham
    Pages 87-99
  10. Alien Invasion part 1: Under attack

    • Mark Cunningham
    Pages 101-108
  11. Alien Invasion part 2: Missile launch is Go

    • Mark Cunningham
    Pages 109-117
  12. Save the planet

    • Mark Cunningham
    Pages 127-138
  13. Golf part 1: On the tee

    • Mark Cunningham
    Pages 139-147
  14. Golf part 2: On the green

    • Mark Cunningham
    Pages 149-159
  15. Golf part 3: It’s in the hole

    • 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 (mycodeangel.com). Code Angel Code Angel largely serves students and new developersand 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.

What You'll Learn

  • Integrate the fundamentals of the Python 3 programming language
  • Program fun, classic computer games you can then play
  • Develop computational thinking skills and abilities that can be applied to other ventures

Who This Book Is For


Students, hobbyists, new developers or anyone wishing to learn how to design and write computer games.

Authors and Affiliations

  • Edinburgh, UK

    Mark Cunningham

About the author

Mark Cunningham is the founder of Code Angel and has over 20 years experience of teaching coding in high schools. In teaching Computing Science to high school students, he has learned which coding concepts new coders find difficult to understand, learn, and master. He has also found that students learn better when writing programs that they can engage with rather than simple programs they find boring and pointless. Teaching is his passion and in particular teaching computer programming and developing computational skills. His work with Code Angel has allowed him to take his teaching beyond the classroom and offer a wealth of resources for developing new programmers.

Bibliographic Information

  • Book Title: Game Programming with Code Angel

  • Book Subtitle: Learn how to code in Python on Raspberry Pi or PC

  • Authors: Mark Cunningham

  • DOI: https://doi.org/10.1007/978-1-4842-5305-2

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Mark Cunningham 2020

  • Softcover ISBN: 978-1-4842-5304-5Published: 01 December 2019

  • eBook ISBN: 978-1-4842-5305-2Published: 30 November 2019

  • Edition Number: 1

  • Number of Pages: XIII, 177

  • Number of Illustrations: 131 b/w illustrations

  • Topics: Hardware and Maker, Python

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access