Game Programming with Code Angel: Learn How to Code in Python on Raspberry Pi or PC
- 1h 29m
- Mark Cunningham
- Apress
- 2020
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 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.
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.
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.
In this Book
-
Introduction
-
Forest Bomber Part 1: A First Level
-
Forest Bomber Part 2: Is it a Bird…?
-
Forest Bomber Part 3: Bombs Away…
-
Forest Bomber Part 4: Wrapping it Up
-
Snapper Part 1: In the Woods
-
Snapper Part 2: Say Cheese
-
Snapper Part 3: Snapped
-
Alien Invasion Part 1: Under Attack
-
Alien Invasion Part 2: Missile Launch is Go
-
Alien Invasion Part 3: And They Came from Outer Space
-
Save the Planet
-
Golf Part 1: On the Tee
-
Golf Part 2: On the Green
-
Golf Part 3: It's in the Hole